特效介绍
仿迅雷影视幻灯片轮播js代码,共七屏,图片左右滚动,带标题和链接,有利于优化,兼容IE6。
使用方法
1、在head区引入下面的代码:
1 | < link href = "images/5imoban.net.css" rel = "stylesheet" type = "text/css" media = "all" > |
2 | < script type = "text/javascript" src = "images/5imoban.net.js" ></ script > |
2、在body引入下面相应的代码:
02 | < div class = "scrollimg" > |
03 | < div id = "SwitchBigPic" style = "margin-left: 0px; " > |
04 | < div class = "scrollimg_div" > |
05 | < a href = "http://www.5imoban.net" class = "scrollimg_img" blockid = "2997" >< img id = "bigpic_0" src = "images/01.jpg" ></ a > |
06 | < h3 >< a href = "http://www.5imoban.net" class = "scrollimg_txt" blockid = "2997" >《小姨多鹤》经典名作改编 孙俪姜武演绎年代催泪苦情大戏</ a ></ h3 > |
07 | < div class = "bg" ></ div > |
09 | < div class = "scrollimg_div" > |
10 | < a href = "http://www.5imoban.net" class = "scrollimg_img" blockid = "2997" >< img id = "bigpic_1" src = "images/07.jpg" ></ a > |
11 | < h3 >< a href = "http://www.5imoban.net" class = "scrollimg_txt" blockid = "2997" >《决战华岩寺》谜中藏谜 首部反映僧人抗日电视剧 集抗战、夺宝、谍战等热点元素于一身</ a ></ h3 > |
12 | < div class = "bg" ></ div > |
14 | < div class = "scrollimg_div" > |
15 | < a href = "http://www.5imoban.net" class = "scrollimg_img" blockid = "2997" >< img id = "bigpic_2" src = "images/02.jpg" ></ a > |
16 | < h3 >< a href = "http://www.5imoban.net" class = "scrollimg_txt" blockid = "2997" >风雨沙坡头》谍战情感悬疑剧 入围“影响中国旅游的电视剧”三强(35集全)</ a ></ h3 > |
17 | < div class = "bg" ></ div > |
19 | < div class = "scrollimg_div" > |
20 | < a href = "http://www.5imoban.net" class = "scrollimg_img" blockid = "2997" >< img id = "bigpic_3" src = "images/03.jpg" ></ a > |
22 | < div class = "bg" ></ div > |
24 | < div class = "scrollimg_div" > |
25 | < a href = "http://www.5imoban.net/" class = "scrollimg_img" blockid = "2997" >< img id = "bigpic_4" src = "images/04.jpg" ></ a > |
27 | < div class = "bg" ></ div > |
29 | < div class = "scrollimg_div" > |
30 | < a href = "http://www.5imoban.net" class = "scrollimg_img" blockid = "2997" >< img id = "bigpic_5" src = "images/05.jpg" ></ a > |
32 | < div class = "bg" ></ div > |
34 | < div class = "scrollimg_div" > |
35 | < a href = "http://www.5imoban.net" class = "scrollimg_img" blockid = "2997" >< img id = "bigpic_6" src = "images/06.jpg" ></ a > |
37 | < div class = "bg" ></ div > |
53 | < div class = "scrollimg_tigger" > |
54 | < a id = "big_pic_nav_0" href = "javascript://" target = "_self" title = "" class = "on" >1</ a > |
55 | < a id = "big_pic_nav_1" href = "javascript://" target = "_self" title = "" class = "" >2</ a > |
56 | < a id = "big_pic_nav_2" href = "javascript://" target = "_self" title = "" class = "" >3</ a > |
57 | < a id = "big_pic_nav_3" href = "javascript://" target = "_self" title = "" class = "" >4</ a > |
58 | < a id = "big_pic_nav_4" href = "javascript://" target = "_self" title = "" class = "" >5</ a > |
59 | < a id = "big_pic_nav_5" href = "javascript://" target = "_self" title = "" class = "" >6</ a > |
60 | < a id = "big_pic_nav_6" href = "javascript://" target = "_self" title = "" class = "" >7</ a > |
65 | bigpic:"SwitchBigPic", //大图DIV之ID通用部分 |
67 | smallpic:"big_pic_nav",//小图之ID通用部分 |
68 | selectstyle:"currA", //小图被选中之后的CSS |
72 | objname:"MovieRecom" //对象名称 |
74 | BigNews.init(MovieRecom); |
调用代码相关参数的作用上面的注释已经说得非常清楚。