当前位置:Gxlcms > PHP教程 > 亟需修改扩展下一个jquery插件

亟需修改扩展下一个jquery插件

时间:2021-07-01 10:21:17 帮助过:18人阅读

需要修改扩展下一个jquery插件
本帖最后由 amu1433 于 2013-08-07 16:23:59 编辑

http://www.0917cc.com/Upfiles/rar/GlideView/

这是预览地址


我自己写的
  1. $("#idGlideView img").each(function(){<br>
  2. $(this).css('opacity', '0.5');<br>
  3. }).hover(function(){<br>
  4. $(this).animate({opacity:1.0});<br>
  5. }, function(){<br>
  6. $(this).animate({opacity:0.5});<br>
  7. });


我希望加到插件里面..就是显示哪个图片,哪个图片就是高亮的.其他的都是暗淡的!

不做的怎么加进去... jQuery插件

分享到:


------解决方案--------------------
  1. /*#idGlideView div img{filter:alpha(opacity=70); -moz-opacity:0.7; -khtml-opacity: 0.7; opacity: 0.7;}*/<br>
  2. #idGlideView div img{filter:alpha(opacity=50); -moz-opacity:0.5; -khtml-opacity: 0.5; opacity: 0.5;}<br>
  3. #idGlideView div.focus img{filter:alpha(opacity=100); -moz-opacity:1; -khtml-opacity: 1; opacity: 1;}



  1. //相关设置<br>
  2. Set: function (index) {<br>
  3. if (index < 0) {<br>
  4. //鼠标移出容器返回默认状态<br>
  5. this.Each(function (oList, oText, i) {<br>
  6. oList._target = this._width * i;<br>
  7. if (oText) { oText._target = this._height_text; } <br>
  8. })<br>
  9. } else {<br>
  10. //鼠标移到某个滑动对象上

人气教程排行