已阅读5页,还剩4页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
JS图片幻灯 焦点图 te 用JS图片幻灯6焦点图 body background: #0000; ul padding: 0; margin: 0; li list-style: none; img border: 0; .play width: 400px; height: 430px; margin: 50px auto 0; background: #999; font: 12px Arial; .big_pic width: 400px; height: 320px; overflow: hidden; border-bottom: 1px solid #ccc; background: #222; position: relative; .big_pic li width: 400px; height: 320px; overflow: hidden; position: absolute; top: 0; left: 0; z-index: 0; background: url(/d/demo/flashjs/loading.gif) no-repeat center center; .mark_left width: 200px; height: 320px; position: absolute; left: 0; top: 0; background: red; filter: alpha(opacity:0); opacity: 0; z-index:3000; .mark_right width: 200px; height: 320px; position: absolute; left: 200px; top: 0; background: green; filter: alpha(opacity:0); opacity: 0; z-index:3000; .big_pic .prev width: 60px; height: 60px; background: url(/d/demo/flashjs/btn.gif) no-repeat; position: absolute; top: 130px; left: 10px; z-index: 3001; display: none; cursor: pointer; .big_pic .next width: 60px; height: 60px; background: url(/d/demo/flashjs/btn.gif) no-repeat 0 -60px; position: absolute; top: 130px; right: 10px; z-index: 3001; display: none;cursor: pointer; .big_pic .text position: absolute; left: 10px; top: 302px; z-index: 3000; color: #ccc; .big_pic .length position: absolute; right: 10px; bottom: 4px; z-index: 3000; color: #ccc; .big_pic .bg width: 400px; height: 25px; background: #000; filter: alpha(opacity=60); opacity: 0.6; position: absolute; z-index: 2999; bottom: 0; left: 0; .small_pic width: 380px; height: 94px; position: relative; top: 7px; left: 10px; overflow: hidden; .small_pic ul height: 94px; position: absolute; top: 0; left: 0; .small_pic li width: 120px; height: 94px; float: left; padding-right: 10px; background: url(/d/demo/flashjs/loading.gif) no-repeat center center; cursor: pointer; filter: alpha(opacity=60); opacity: 0.6; .small_pic img width: 120px; height: 94px; var g_aImgInfo=info: 都市魅力, href: /,info: 古香古色, href: /,info: 沉浸舞步的舞者, href: /,info: 名贵跑车, href: /,info: 聆听天籁的精灵, href: /,info: 绚彩光芒, href: /;var oDiv=null;var oUlContent=null;var oUlBtn=null;var aLiImg=null;var aLiBtn=null;var oBtnPrev=null;var oBtnNext=null;var oTxtInfo=null;var oTxtLength=null;var oMarkPrev=null;var oMarkNext=null;var g_aTimerImg=;var g_aTimerBtn=;var g_oTimerUl=null;var g_oTimerAutoPlay=null;var g_aLiBtnAlpha=;var g_iNowImg=0;var g_iZIndexBase=2;window.onload=function ()var i=0;/获取各类元素oDiv=document.getElementById(playimages);oUlContent=oDiv.getElementsByTagName(ul)0;oUlBtn=oDiv.getElementsByTagName(ul)1;oBtnPrev=oDiv.getElementsByTagName(div)0;oBtnNext=oDiv.getElementsByTagName(div)1;oTxtInfo=oDiv.getElementsByTagName(div)2;oTxtLength=oDiv.getElementsByTagName(div)3;oMarkPrev=oDiv.getElementsByTagName(a)0;oMarkNext=oDiv.getElementsByTagName(a)1;aLiImg=oUlContent.getElementsByTagName(li);aLiBtn=oUlBtn.getElementsByTagName(li);/为元素添加属性oTxtInfo.innerHTML=g_aImgI;oTxtLength.innerHTML=1/+aLiImg.length;oMarkPrev.href=g_aImgInfo0.href;oMarkNext.href=g_aImgInfo0.href;oBtnPrev.miaovOpacity=0;oBtnNext.miaovOpacity=0;oBtnPrev.miaovTime=0;oBtnNext.miaovTime=0;oUlBtn.style.width=aLiBtn0.offsetWidth*aLiBtn.length+px;/为元素添加事件function showPrev()showBtn(oBtnPrev);hideBtn(oBtnNext);stopAutoPlay();function showNext()hideBtn(oBtnPrev);showBtn(oBtnNext);stopAutoPlay();function hideAll()hideBtn(oBtnPrev);hideBtn(oBtnNext);startAutoPlay();oMarkPrev.onmouseover=showPrev;oBtnPrev.onmouseover=showPrev;oMarkNext.onmouseover=showNext;oBtnNext.onmouseover=showNext;oBtnPrev.onmouseout=hideAll;oBtnNext.onmouseout=hideAll;oMarkPrev.onmouseout=hideAll;oMarkNext.onmouseout=hideAll;oBtnPrev.onmousedown=gotoPrev;oBtnNext.onmousedown=gotoNext;oUlBtn.onmouseover=stopAutoPlay;oUlBtn.onmouseout=startAutoPlay;for(i=0;iaLiBtn.length;i+)aLiBtni.miaovIndex=i;aLiBtni.onmouseover=function ()if(g_iNowImg!=this.miaovIndex)showLiBtn(this.miaovIndex);aLiBtni.onmouseout=function ()if(g_iNowImg!=this.miaovIndex)hideLiBtn(this.miaovIndex);aLiBtni.onmousedown=function ()gotoImg(this.miaovIndex);g_aTimerBtni=null;g_aLiBtnAlphai=60;g_aLiBtnAlpha0=100;startAutoPlay();function showBtn(oBtn)if(oBtn.miaovTimer)clearInterval(oBtn.miaovTimer);oBtn.miaovTimer=setInterval(function ()if(oBtn.miaovOpacity0)oBtn.miaovOpacity-=10;oBtn.style.filter=alpha(opacity:+oBtn.miaovOpacity+);oBtn.style.opacity=oBtn.miaovOpacity/100;elseoBtn.style.display=none;oBtn.style.filter=;oBtn.style.opacity=;clearInterval(oBtn.miaovTimer);oBtn.miaovTimer=0;, 30);function gotoImg(index)if(index=g_iNowImg)return;aLiImgindex.style.height=0px;aLiImgindex.style.display=block;aLiImgindex.style.zIndex=g_iZIndexBase+;if(g_aTimerImgindex)clearInterval(g_aTimerImgindex);g_aTimerImgindex=setInterval(slideDown(+index+), 30);for(i=0;i=oUlContent.offsetHeight)h=oUlContent.offsetHeight;clearInterval(g_aTimerImgindex);g_aTimerImgindex=null;aLiImgindex.style.height=h+px;function gotoNext()gotoImg(g_iNowImg+1)%aLiImg.length);function gotoPrev()gotoImg(g_iNowImg-1+aLiImg.length)%aLiImg.length);function showLiBtn(index)if(g_aTimerBtnindex)clearInterval(g_aTimerBtnindex);g_aTimerBtnindex=setInterval(showLiBtnInner(+index+), 30);function showLiBtnInner(index)var alpha=g_aLiBtnAlphaindex+10;if(alpha=100)aLiBtnindex.style.filter=;aLiBtnindex.style.opacity=1;clearInterval(g_aTimerBtnindex);g_aTimerBtnindex=null;elseaLiBtnindex.style.filter=alpha(opacity:+alpha+);aLiBtnindex.style.opacity=alpha/100;g_aLiBtnAlphai
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026年枣庄职业学院高职单招职业适应性测试模拟试题及答案详细解析
- 2026广东第二师范学院基础教育集团招聘4人考试重点题库及答案解析
- 2026年南充科技职业学院单招综合素质考试备考试题含详细答案解析
- 2026年台州温岭市箬横镇中心卫生院招聘编制外工作人员2人备考考试题库及答案解析
- 2026年江苏城市职业学院单招职业技能考试备考试题含详细答案解析
- 2026年江苏医药职业学院高职单招职业适应性测试备考题库及答案详细解析
- 2026年长白山职业技术学院单招职业技能考试模拟试题含详细答案解析
- 2026年河南推拿职业学院单招综合素质笔试模拟试题含详细答案解析
- 2026年贵州食品工程职业学院单招综合素质考试模拟试题含详细答案解析
- 2026江西南昌富昌石油燃气有限公司招聘1人参考考试题库及答案解析
- 2026年数字化管理专家认证题库200道及完整答案(全优)
- 铁路除草作业方案范本
- 2026届江苏省常州市生物高一第一学期期末检测试题含解析
- 2026年及未来5年市场数据中国高温工业热泵行业市场运行态势与投资战略咨询报告
- 教培机构排课制度规范
- 2026年检视问题清单与整改措施(2篇)
- 国家开放大学《基础教育课程改革专题》形考任务(1-3)试题及答案解析
- 2025年邮政社招笔试题库及答案
- 个税挂靠协议书
- 车载HUD产业发展趋势报告(2025)-CAICV智能车载光显示任务组
- 重症科患者的康复护理
评论
0/150
提交评论