




下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、js、jquery图片动画、动态切换示例代码_ 这篇文章主要介绍了通过js、jquery实现的图片动画、图片动态切换,需要的伴侣可以参考下。 代码如下: styletype=text/css #banner padding:5px; position:relative; width:968px; height:293px;/*border:1pxsolid#666;*/ overflow:hidden; font-size:16px; #banner_listimg border:0px; #banner_bg margin-bottom:5px; position:absolute; bot
2、tom:0; background-color:#000; height:30px; filter:Alpha(Opacity=30); opacity:0.3; z-index:1000; cursor:pointer; width:968px; #banner_info position:absolute; bottom:4px; left:0px; height:22px; color:#fff; z-index:1001; cursor:pointer; #banner_text position:absolute; width:120px; z-index:1002; right:3
3、px; bottom:3px; #bannerul position:absolute; list-style-type:none; filter:Alpha(Opacity=80); opacity:0.8; z-index:1002; margin:0; padding:0; bottom:10px; right:5px; height:20px; #bannerulli padding:08px; line-height:18px; float:left; display:block; color:#FFF; border:#e5eaff1pxsolid; background-colo
4、r:#6f4f67; cursor:pointer; margin:0; font-size:16px; #banner_lista /*position:absolute;*/ width:968px; height:293px; margin:0px; padding:0px; #banner_list margin:0px; padding:0px; width:968px; height:293px; border:#e7e7e71pxsolid; /style 代码如下: scripttype=text/javascript vart=n=0,count; $(function()
5、count=$(#banner_lista).length; $(#banner_lista:not(:first-child).hide(); $(#banner_info).html($(#banner_lista:first-child).find(img).attr(alt); $(#banner_info).click(function()window.open($(#banner_lista:first-child).attr(href),_blank); $(#bannerli).click(function() vari=$(this).text()-1;/猎取Li元素内的值,
6、即1,2,3,4 n=i; if(i=count)return; $(#banner_info).html($(#banner_lista).eq(i).find(img).attr(alt); $(#banner_info).unbind().click(function()window.open($(#banner_lista).eq(i).attr(href),_blank) $(#banner_lista).filter(:visible).fadeOut(500).parent().children().eq(i).fadeIn(1000); $(this).css(backgrou
7、nd:#be2424,color:#000).siblings().css(background:#6f4f67,color:#fff); ); t=setInterval(showAuto(),4000); $(#banner).hover(function()clearInterval(t),function()t=setInterval(showAuto(),4000););/4秒钟切换一张图片); functionshowAuto() n=n=(count-1)?0:+n; $(#bannerli).eq(n).trigger(click); /script 代码如下: divid=b
8、anner divid=banner_bg /div !-标题背景- divid=banner_info /div !-标题- ul li1/li li2/li li3/li li4/li /ul divid=banner_list ahref=%:DicFlashImg!=null?DicFlashImgPFI_FlashImgoneURL:%target=_blank imgsrc=%:DicFlashImg!=null?DicFlashImgPFI_FlashImgone:Images/Singapore.jpg% title=alt=width=968pxheight=293pxbor
9、der=0/aahref=%:DicFlashImg!=null?DicFlashImgPFI_FlashImgtowURL:% target=_blank imgsrc=%:DicFlashImg!=null?DicFlashImgPFI_FlashImgtow:Images/Malaysia.jpg% title=alt=width=968pxheight=293pxborder=0/aahref=%:DicFlashImg!=null?DicFlashImgPFI_FlashImgthreeURL:% target=_blank imgsrc=%:DicFlashImg!=null?DicFlashImgPFI_FlashImgthree:Images/HongKong.jpg% title=alt=width=968pxheight=293pxborder=0/a ahref=%:DicFlashImg!=null?DicFlashImgPFI_FlashImgfourURL:%target=
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 骗子的心理测试题及答案
- 教育法学试题及答案
- 项目管理软技能框架试题及答案
- 企业督导管理制度
- 服装质量考核管理制度
- 批发水果档口管理制度
- 化工厂夜班管理制度
- 如何高效率备考中级社会工作者考试的应试策略试题及答案
- 李宁公司存货管理制度
- 物业市场拓展管理制度
- 基于PLC的药房取药系统设计
- 安徽省汽车维修行业车辆维修合同
- GB/T 16447-2004烟草及烟草制品调节和测试的大气环境
- 公司劳务派遣人员工资薪酬发放暂行规定
- 建筑大师伊东丰雄简介及作品集课件
- 公司二次经营创效管理实施细则
- BRCGS食品安全全球标准第9版全套程序文件
- 2023年福建省高一数学竞赛试题参考答案
- 2023年最新的马季吹牛相声台词
- 一年级英语下册素材-Unit 1 Lets count!课文翻译 译林版(一起)
- 幼儿园大班数学口算练习题可打印
评论
0/150
提交评论