中文(繁体)
<!-- 將以下程式碼放到body區域內--> <script language=javascript> leftformat="";右格式=“”; liumeitiformat="左"; liumeiti="/images/banner1.swf";//flash檔案路徑 liumeititime="5000"; </script> <SCRIPT language=javascript> //來自 http://www.downcodes.com 的更多 javascript document.write('<SCRIPT LANGUAGE=VBScript> n'); document.write('出錯時繼續下一個n'); document.write('Sub liumeiti_FSCommand(ByVal command, ByVal args)n'); document.write('呼叫 liumeiti_DoFSCommand(command, args)n'); document.write('結束子n'); document.write('</SCRIPT> n'); window.screen.width>800?leftsuspentl=30:leftsuspentl=145; window.screen.width>800?rightsuspentl=900:rightsuspentl=570;函數 liumeiticode(liumeitiurl,liumeitiformat){ suspendcode="<div id=liumeitidiv style='POSITION: 絕對; LEFT:300px; TOP: 200px; VISIBILITY: 可見;'>";掛起程式碼=掛起程式碼+「<物件classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'程式碼庫='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash. cab#version=5 ,0,0,0'寬度='208'高度='250'>";掛起程式碼=掛起程式碼 + "<參數名稱=電影值='" + liumeitiurl + "'>";掛起程式碼=掛起程式碼 + "<參數名稱=品質值=高>";暫停代碼=暫停代碼+“<嵌入src='”+liumeitiurl+“'id=liumeiti品質=高pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'類型= ' application/x-shockwave-flash' width='208' height='227'>";掛起程式碼=掛起程式碼 + "</embed></object></div>"; nsuspentcode="<圖層 id=liumeitidiv left=300 top=200>"; nsuspentcode=nsuspentcode + "<EMBED src='" + liumeitiurl + "' id=liumeiti 質量=高 TYPE='application/x-shockwave-flash' wmode='透明' 寬度='208' 高度='227'>< /嵌入></層>"; if(document.all) { document.write(掛起程式碼); } if(document.layers) { document.write(nsuspentcode); } if(liumeitiformat=="right" && rightformat !="" ){ if(document.all){ rightuspent.style.visibility="hidden"; } else{ document.rightsuspent.visibility="隱藏"; } } else if(liumeitiformat=="left" && leftformat !=""){ if(document.all){ leftsuspent.style.visibility="hidden"; } else{ document.leftsuspent.visibility="隱藏"; } } else{} } if(liumeitiformat =="左" || liumeitiformat =="右"){ liumeiticode(liumeiti,liumeitiformat) } function liumeiti_DoFSCommand() { if(document.all){ liumeitidiv.style.visibility="隱藏";} else{ document.liumeitidiv.visibility="隱藏"; } if(liumeitiformat=="right" && rightformat !=""){ if(document.all){ rightuspent.style.visibility="visible"; } else{ document.rightsuspent.visibility="show"; } } else if(liumeitiformat=="left" && leftformat !=""){ if(document.all){ leftsuspent.style.visibility="visible"; } else{ document.leftsuspent.visibility="show"; } } else{ } } if(liumeititime==""){liumeititime=10000;} if(liumeitiformat =="左" || liumeitiformat =="右"){ setTimeout("liumeiti_DoFSCommand()",liumeititime);最後捲動X = 0;最後捲動Y = 0;函數 heartBeat() { if(document.all) { diffY = document.body.scrollTop+150; diffYr = document.body.scrollTop+170; diffX = document.body.scrollLeft; } if(document.layers) { diffY = self.pageYOffset+170; diffX = self.pageXOffset; } if(diffY != lastScrollY) { if(document.all){ if(leftformat !=""){ document.all.leftsuspent.style.pixelTop = diffY; } if(rightformat !=""){ document.all.rightsuspent.style.pixelTop = diffYr; } } if(document.layers){ if(leftformat !=""){ document.leftsuspent.top = diffY; } if(rightformat !=""){ document.rightsuspent.top = diffY; } } } if(diffX != lastScrollX) { if(document.all){ if(leftformat !=""){ document.all.leftsuspent.style.pixelLeft = diffX; } if(rightformat !=""){ document.all.rightsuspent.style.pixelLeft = diffX; } } if(document.layers){ if(leftformat !=""){ document.leftsuspent.left = diffX; } if(rightformat !=""){ document.rightsuspent.left = diffX; } } } } action = window.setInterval("heartBeat()",1); </腳本>