




已閱讀5頁,還剩4頁未讀, 繼續(xù)免費(fèi)閱讀
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
JS圖片幻燈 焦點(diǎn)圖 te 用JS圖片幻燈6焦點(diǎn)圖 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. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 中國安全教育試題及答案
- 浙江省樂清外國語學(xué)院2025屆物理高二第二學(xué)期期末經(jīng)典試題含解析
- 重慶市開州區(qū)開州中學(xué)2025年生物高二第二學(xué)期期末質(zhì)量跟蹤監(jiān)視模擬試題含解析
- 浙江省杭州市名校協(xié)作體2025屆生物高二下期末復(fù)習(xí)檢測試題含解析
- 云南省耿馬縣第一中學(xué)2025屆高二數(shù)學(xué)第二學(xué)期期末統(tǒng)考試題含解析
- 生態(tài)小區(qū)物業(yè)管理與生態(tài)保護(hù)合同范本
- 體育館場租賃合同范本及服務(wù)條款
- 房地產(chǎn)項(xiàng)目財(cái)務(wù)擔(dān)保貸款合同風(fēng)險(xiǎn)管理協(xié)議
- 餐飲酒店與體育賽事餐飲贊助合同
- 跨境電商物流中心廠房土地租賃及倉儲服務(wù)合同
- MOOC 跨文化交際通識通論-揚(yáng)州大學(xué) 中國大學(xué)慕課答案
- 有機(jī)植物生產(chǎn)中允許使用的投入品
- 湘教版八年級下學(xué)期數(shù)學(xué)第4章一次函數(shù)復(fù)習(xí)第1課時(shí)課件
- 會計(jì)知識大賽初賽題庫
- 廣州一模讀后續(xù)寫+Ben+打破古董花瓶【核心素養(yǎng)提升+備課精講精研】 高三英語寫作專項(xiàng)
- 上消化道出血的護(hù)理ppt
- GB/T 28799.2-2020冷熱水用耐熱聚乙烯(PE-RT)管道系統(tǒng)第2部分:管材
- 施工現(xiàn)場監(jiān)控設(shè)備安裝驗(yàn)收單
- 小學(xué)常用教學(xué)方法-講授法課件
- GB∕T 7543-2020 一次性使用滅菌橡膠外科手套
- 《聊齋志異》原文及翻譯
評論
0/150
提交評論