2010-12-22 131 views
0
 In my application i need to use some plugins for make the image 

幻灯片一样coinslider.But我需要 通过设置使用这个插件中的所有 分辨率(即)1280 * 900,1024 * 768800 * 600 等图像幻灯片支持宽度属性为 的插件为auto.Is是否有插件 可用于支持此功能?jQuery插件所有分辨率

回答

1

也许这个http://www.shadowbox-js.com/是你所需要的。 它打开的窗口的标准大小与导航窗口的大小成正比。 ;)

我希望它可以帮助你!

编辑:

这是配置为与自然而然卷自动启动的一个太极拳的代码:

<script type="text/javascript" src="jquery-1.4.2.min.js"></script> 
<script language="JavaScript" type="text/javascript" src="./shadowbox-3.0.3/shadowbox.js"></script> 
<link rel="stylesheet" type="text/css" href="./shadowbox-3.0.3/shadowbox.css"> 

<script type="text/javascript"> 
$(document).ready(function() 
{ 
    Shadowbox.init(
    { 
     continuous: true, 
     slideshowDelay: 2 
    }, function() //make the auto start, if you dont want it, just remove this function 
     { 
      setTimeout(function() //give a little time to shadowbox to be initialized 
      { 
       $('#first_image').trigger('click'); 
      }, 50); 
     }); 

}); 
</script> 
<a id="first_image" href="img_example_1.jpg" rel="lightbox[group]" style="display:none;"> 
    <img src="img_example_1.jpg" style="display:none;" /> 
</a> 
<a href="img_example_1.jpg" rel="lightbox[group]" style="display:none;"> 
    <img src="img_example_1.jpg" style="display:none;" /> 
</a> 

哦!我隐藏了imgs,但没有真正的需要去做。 ;)

+0

嗨Jayme,谢谢你的答复。我需要一个像coin.slider自动翻转。是否有人利用这个功能? – 2010-12-23 03:10:38