中文(繁体)
<!-- 把以下程式碼加入<body>區域 --> <!-- Saved From url=http://www.downcodes.com/js --> <!-- 網頁設計論壇 url=http:/ /www.downcodes.com/bbs--> <style type="text/css"> <!-- .topnewstitle { font-family: 體;字體大小:10pt; A:hover {color:blue;text-decoration:underline } } #topdeck { display:block;左:0px;頂部:0px;位置:絕對;可見性:隱藏; z 索引:100; } .content { 字體大小:10pt; font-family: 宋體;顏色:#000000; } //--> </style> <script> var isNS4=(document.layers) ? 1:0; var isIE4=(document.all)? 1:0; var isMoz=((document.getElementById) && !(isIE4)) ? 1:0;函數 ShowNavigateur() { 警報(isNS4);警報(是IE4);警報(isMoz); } 函數 activate_mousemove(function_mouse) { if(isNS4||isMoz) document.captureEvents(Event.MOUSEMOVE); document.onmousemove = function_mouse; } function get_mouse(e) { var mouse=new Array();滑鼠.x=0;滑鼠.y=0; if(isNS4||isMoz){ mouse.x=e.pageX; mouse.y=e.pageY; }否則 if(isIE4){ mouse.x=event.x+document.body.scrollLeft; mouse.y=event.y+document.body.scrollTop;返回滑鼠; } 函數 get_layer(name) { if(isNS4){ 層=findLayer(名稱, 文件); //if(layer==null) //alert('Pb de layer');返回層; } else if (isIE4){ //window.status=document.all[name];返回文檔.all[名稱]; } else if (isMoz) { return document.getElementById(name); } //alert('Pb de noms');返回空值; } 函數 findLayer(name, doc) { var i, 層; //警報(doc.layers.length); for (i = 0; i < doc.layers.length; i++) { 層 = doc.layers[i]; //警報(圖層名稱); if (layer.name == name) 返回圖層; if (layer.document.layers.length > 0) if ((layer = findLayer(name, layer.document)) != null) 傳回圖層;返回空值; } function hide_layer(layer) { if(layer==null){ //window.status="圖層快取?cacher";返回; } if (isNS4){ layer.visibility = "隱藏"; } if (isIE4||isMoz){ layer.style.visibility = "隱藏"; } } 函數 show_layer(layer) { if(isNS4){ layer.visibility = "show"; } if(isIE4||isMoz){ layer.style.visibility = "可見"; } } function move_layer_to(layer, x, y) { //window.status=layer; if (isNS4) { 層.moveTo(x, y); } if (isIE4||isMoz){ //window.status=layer.style;圖層樣式.left = x;圖層樣式.top = y; } } function setzIndex(layer, z) { if(isNS4) layer.zIndex = z; if(isIE4||isMoz) layer.style.zIndex = z; } 函數modify_content_layer(layer,content) { if(isNS4){ layer.document.write(content);圖層.文檔.關閉(); } else if(isIE4||isMoz){ layer.innerHTML=content; } } </script> <div class="popup" id="topdeck"></div> <palign="center"> <script language="Javascript"> <!-- var adroite = false; activate_mousemove(get_mouse2);函數 tux(標題、文字、estadroite) { adroite = estadroite;變數內容; if (adroite) content = "<table border=0 width=300 cellpadding=0 cellspacing=0><tr><td width=100> </td><td width=200><table border=0 cellpadding= 0 個單元格間距=0 bgcolor="#000000" width=200><tr height=2><td><img src="../wydh/images/135/pixel.gif">< /td> </tr><tr><tdalign=center><table border=0 cellpadding=2 cellspacing=0 width=196 bgcolor=white class="content"><tr><td bgcolor=white>< center> <b>“+標題+”</b></center>“+文字+”</td></tr></table></td></tr></table></td ></tr ><tr><td><img src="../wydh/images/135/w15.gif"></td><td valign=top><img src=".. /wydh/images /135/bulle-g.gif"></td></tr></table>"; else content = "<表格邊框=0 寬度=300 cellpadding=0 cellspacing=0><tr><td 寬度=200><表格邊框=0 cellpadding=0 cellspacing=0 bgcolor=黑色寬度=200><tr height=0 cellspacing=0 bgcolor=黑色寬度=200><tr height= 2><td></td></tr><tr><tdalign=center><table border=0 cellpadding=2 cellspacing=0 width=196 bgcolor=white class="content">< tr>< td bgcolor=white><center><b>"+標題+"</b></center>"+text+"</td></tr></table></td></tr> </ table></td><td width=100></td></tr><tr><td valign=top></td><td></td></tr></table> ”; l=get_layer("topdeck");修改_內容_層(l,內容)show_layer(l); } 函數 get_mouse2(e) { 滑鼠=get_mouse(e); l=get_layer("topdeck"); var x = 滑鼠.x; var y = 滑鼠.y;如果(熟練)x=x+15;否則x=x-315; move_layer_to(l,x,y); } 函數kill() { l=get_layer("topdeck");隱藏層(l); } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=新影像; d.MM_p[j++].src=a[i];}} } function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; } function MM_findObj(n, d) { //v3.0 var p,i,x; if(!d) d=文檔; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);返回x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=新陣列; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } // --> </script> <a href="#" class="topnewstitle" onmouseout="kill()" onmouseover="javascript:tux('鏈接title可以這樣喲', '用onmouseover來冒充一下title,你可以再美化一下這個介面', false)">滑鼠移過來看看</a>