




版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
用腳本語(yǔ)言實(shí)現(xiàn)樹(shù)形菜單在網(wǎng)頁(yè)中,用js腳本實(shí)現(xiàn)的樹(shù)形菜單:可以新建html直接運(yùn)行.方便自己查看〈「■Modifybyfor2007-03-19<!DOCTYPEhtmlPUBLIC”?//W3C〃DTDXHTML1.0Transitional//EN"Hhttp://www./TR/xhtmll/DTD/xhtmll-transitional.dtd"><htmlxmlns=,,/1999/xhtml,l><head><metahttp-equiv=,,Content-TypeHcontent="text/html;charset=gb2312H/><title>刷新不變化樹(shù)形菜單-js樹(shù)形菜單_樹(shù)形菜單代碼</title><styletype=,ltext/css,l>body,td,th(font-size:14px;).leftmenul(font-weight:bold;cursor:hand;padding-top:4px;height:29px;text-align:left;}.Ieftmenu2(PADDING-LEFT:15px;height:21px;text-align:left;}div(margin-top:90px;width:100%;text-align:center;}</style></head><body><div><scriptlanguage=,,JavaScriptHtype=,,text/javascript,,>functionShow(idJJd)(varonjmg=,,/member/pic/ass04.gif,1;//打開(kāi)時(shí)圖片varoff_img=”http:〃www?/member/pic/ass03.gif";〃隱藏時(shí)圖片varobj=document.getElementByld('cJ+id);if(obj.style.display==,,none,,){obj.style.display」'”;ijd.src=onjmg;〃將子菜單Id放入CookiesvarcurShow=readCookie(,curShow,);if(curShow!="){vararr_curShow=curShow.split(7);varfound=false;for(i=0;i<arr_curShow.length-l;i++){if(arr_curShow[i].toString()==id)(found=true;)}if(!found)(writeCookie(,curShow,/curShow+,/+id,12))}else(writeCookie('curShow',id,12)〃將子菜單Id放入CookiesEnd)else(obj.style.display=,,noneH;ijd.src=offjmg;〃將子菜單Id從Cookies中移除varcurShow=readCookie('curShow');if(curShow!="){vararr_curShow=curShow.split(7);for(i=0;i<arr_curShow.length;i++){if(arr_curShow[i].toString()==id)(arr_curShow=arr_curShow.del(i-);}}curShow=arr_curShow.join(7);//alert(curShow);writeCookie('curShow',curShowl2)}〃將子菜單Id從Cookies中移除End}}functionreadCookie(name)(varcookieValue=,,n;varsearch=name+官;if(document.cookie.length>0)offset=document.cookie.indexOf(search);if(offset!=-1)offset+=search.length;end=document.cookie.indexOf(,,;H,offset);if(end==-1)end=document.cookie.length;cookieValue=unescapefdocument.cookie.substringfoffset,end))}}returncookieValue;}functionwriteCookie(name,value,hours)(varexpire=,,H;if(hours!=null)(expire=newDate((newDate()).getTime()+hours*3600000);expire=expires=M+expire.toGMTString();}document.cookie=name+"=H+escape(value)+expire;}Atotype.del=function(n)(//n表示第幾項(xiàng),從0開(kāi)始算起。//prototype為對(duì)象原型,注意這里為對(duì)象增加自定義方法的方法。if(n<0)〃如果n<0,則不進(jìn)行任何操作。returnthis;elsereturnthis.slice(0,n).concat(this.slice(n+l,this.length));}window.onload=functiona()(varcurShow=readCookie(,curShow,);vartotalshow=5;〃自己修改一共有多少個(gè)二級(jí)分類if(curShow!="&&curShow!=null)for(i=l;i<=totalShow;i++)document.getElementByld(,cJ+i).display=,,none,';}vararr_curShow;arr_curShow=curShow.split。');for(i=0;i<=arr_curShow.length-l;i++)(if(arr_curShow[iJ!=l,)(document.getElementByld(,cJ+arr_curShow[i]).style.display="11;}}}}</script><tablewidth=,,10%"border=,,0"align=,,centerHcellpadding="O"cellspacing=,,O"><tbody><tr><tdclass=,,leftmenul,,><astyle="cursor:pointer1'onclick=,,Show(l,imgl),,ximgsrc=”http:〃www?/member/pic/ass03.gif"width=,,16Hheight」'16”align="absmiddle”id="imgl7><spanclass=llft_white,,>個(gè)人資料</spanx/ax/tdx/tr></tbody><tbodyid="c_l,1style=Mdisplay:noneH><tr><tdclass="leftmenu2,,ximgsrc=”http:〃www?/member/pic/ass06.gif”width*"height*"/><ahref=1111>基本信息</ax/tdx/tr><tr><tdclass="leftmenu2Hximgsrc=”http://www?/member/pic/ass06.gif”width*"height*"/><ahref=,,,,>修改密碼</ax/tdx/tr></tbody><tbody><tr><tdclass=,,leftmenul,,><astyle="cursor:pointer1'onclick=,,Show(2Jmg2),,ximgsrc=”http:〃www?/member/pic/ass03.gif"width=,,16Hheight」'16”align="absmiddle”id=,,img2,,/><spanclass=llft_white,,>我的簡(jiǎn)歷</spanx/ax/tdx/tr></tbody><tbodyid="c_2”style=Mdisplay:noneH><tr><tdclass=,,leftmenu2,,ximgsrc=,,/member/pic/ass06.gif"width*"height=,,9"/><ahref=,,#">求職簡(jiǎn)歷</ax/tdx/tr><tr><tdclass=,,leftmenu2,,ximgsrc=,,/member/pic/ass06.gif"width*"height*"/><ahref=,,#">求職意向</ax/tdx/tr><tr><tdclass=,,leftmenu2nximgsrc=”http:〃/member/pic/ass06.gif”width=,,9nheight=,,9"/><ahref="#">上傳照片</ax/tdx/tr><tr><tdclass=,,leftmenu2nximgsrc=”http:〃/member/pic/ass06.gif”width=,,9nheight=,,9"/><ahref="#">簡(jiǎn)歷預(yù)覽</ax/tdx/tr></tbody><tbody><tr><tdclass=,,leftmenul,,><astyle="cursor:pointer"onclick=,,Show(3Jmg3),lximgsrc=”http:〃www?/member/pic/ass03.gif"width=,,16Hheight」'16”align="absmiddle”id=,,img3,,/><spanclass=llft_white">職位搜索</spanx/ax/tdx/tr></tbody><tbodyid="c_3”style=Mdisplay:noneH><tr><tdclass=,,leftmenu2nximgsrc=”/member/pic/ass06.gif”width=,,9Hheight=,,9"/><ahref="#">快速搜索</ax/tdx/tr></tbody><tbody><tr><tdclass=,,leftmenul,,><astyle="cursor:pointer"onclick=,,Show(4,img4),,ximgsrc=”http:〃www?/member/pic/ass03.gif"width=H16Hheight=,,16Halign=,,absmiddle,1id=,,img4,,/><spanclass=llft_white">應(yīng)聘管理</spanx/ax/tdx/tr></tbody><tbodyid="c_4”style=Mdisplay:noneH><tr><tdclass=,,leftmenu2nximgsrc=”http:〃/member/pic/ass06.gif”width=,,9nheight=,,9"/><ahref="#">應(yīng)聘記錄</ax/tdx/tr><tr><tdclass=,,leftmenu2nximgsrc=”http:〃/member/pic/ass06.gif”width=,,9nheight=,,9"/><ahref="#">企業(yè)邀請(qǐng)</ax/tdx/tr><tr><tdclass=,,leftmenu2nximgsrc=”http:〃/member/pic/ass06.gif”width=H9Hheight=,,9"/><ahref="#">收藏職位</ax/tdx/tr></tbody><tbody><tr><tdclass=,,leftmenul,,><astyle="cursor:pointer"onclick=,,Show(5Jmg5),,ximgsrc=”http:〃www?/member/pic/ass03.gif"width=,,16Hheight」'16”align="absmiddle”id=,,img5,,/><spanclass="ft_white,,>我的知識(shí)</spanx/ax/td></tr></tbody><tbodyid="c_5”style="display:noneH><tr><tdclass=,,leftmenu2,,ximgsrc=,,/member/pic/ass06.gif"width=,,9"height=,,9"/><ahref=,,#">我要提問(wèn)</ax/tdx/tr><tr><tdclass=,,leftmenu
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 出售土方沙子合同范本
- 2024西安咸陽(yáng)國(guó)際機(jī)場(chǎng)招聘(第四批)筆試參考題庫(kù)附帶答案詳解
- 2025年鍍鉻板(卷)項(xiàng)目規(guī)劃申請(qǐng)報(bào)告模稿
- 2025年胺類項(xiàng)目規(guī)劃申請(qǐng)報(bào)告模稿
- 2024年山東省煙臺(tái)市招遠(yuǎn)市中考語(yǔ)文一模試卷
- 2025年金屬門窗及類似制品項(xiàng)目規(guī)劃申請(qǐng)報(bào)告模范
- 2025年金屬制建筑裝飾、散熱器及其零件項(xiàng)目發(fā)展計(jì)劃
- 第四單元第20課 魏晉南北朝的科技與文化2023-2024學(xué)年七年級(jí)上冊(cè)歷史同步教學(xué)設(shè)計(jì)(部編版)
- 第四單元 民族團(tuán)結(jié)與祖國(guó)統(tǒng)一(單元教學(xué)設(shè)計(jì))-2023-2024學(xué)年八年級(jí)歷史下冊(cè)新課標(biāo)核心素養(yǎng)一站式同步教與學(xué)
- 全國(guó)人教版信息技術(shù)八年級(jí)下冊(cè)第一單元第2課《改變線型和顏色》教學(xué)設(shè)計(jì)
- 江蘇2025年01月江蘇省揚(yáng)州生態(tài)科技新城管委會(huì)2025年招考6名勞務(wù)派遣人員筆試歷年典型考題(歷年真題考點(diǎn))解題思路附帶答案詳解
- 2024年湖南外貿(mào)職業(yè)學(xué)院?jiǎn)握新殬I(yè)適應(yīng)性測(cè)試題庫(kù)及答案解析
- 中國(guó)兒童幽門螺桿菌感染診治專家共識(shí)2022
- introduction to pipeline pilot在處理數(shù)據(jù)中的一些應(yīng)用
- 智能中臺(tái)數(shù)據(jù)底座解決方案
- 《財(cái)政與金融》課程教學(xué)大綱
- 突發(fā)性聾診療指南 (2015版)
- 光伏發(fā)電工程施工組織設(shè)計(jì)施工工程光伏發(fā)電工程光伏發(fā)電施工組織設(shè)計(jì)
- 11鋼的表面淬火解析
- 導(dǎo)數(shù)應(yīng)用舉例
- 第三講文獻(xiàn)的形成與流布1
評(píng)論
0/150
提交評(píng)論