中文(繁体)
<!-- bbs http://www.downcodes.com/bbs--> <!-- 將以下程式碼加入<head>區域內 --> <SCRIPT language=JavaScript> var isCSS = false; var isW3C = false; var isIE4 = false; var isNN4 = false; var isIE6 = false; var isGecko = false; var isOpera = false; var isDHTML = false; var 抑制選單 = false;函數 autoconfig() { if(document && document.images) { isCSS = (document.body && document.body.style) ?真:假; isW3C = (isCSS && document.getElementById) ?真:假; isIE4 = (isCSS && document.all && readIEVer() >= 4.0) ?真:假; isNN4 = (文檔.層) ?真:假; isGecko = (isCSS && navigator && navigator.product && navigator.product == "Gecko"); isOpera = (isCSS && navigator.userAgent.indexOf( "Opera") != -1 ); isIE6CSS = (document.compatMode && document.compatMode.indexOf("CSS1") >= 0) ?真:假; isIE6 = ( isIE6CSS && readIEVer() >= 6.0 ); isDHTML = isCSS && ( isIE4 || isGecko || isOpera ); if(suppressMenus || ( isOpera && readOperaVer() < 7 ) || ( isGecko && navigator.productSub <= 20011022 ) || ( isGecko && navigator.productSub == 20030 107 月 307 月)似乎沒有喜歡 OpductSub 1003030) 1076030)> ... // Netscape 6.2 將選單放在錯誤的位置... // Safari,選單不會消失... ResetMenu 中的問題isDHTML = false; } } } function readIEVer() { var agent = navigator.userAgent; var offset = agent.indexOf( "MSIE" ); if( 偏移量 < 0 ) { 回傳 0; return parseFloat( agent.substring( offset + 5, agent.indexOf( ";", offset ) ) ); } function montage( href, src, title, width, animate ) { // 這是不支援過濾器的瀏覽器的情況... var Cycle = Math.floor( Math.random() * href.length ); // 如果我們沒有使用寬頻,則關閉動畫 var m_montage = ( typeof(animate) != "undefined" ? animate : hasBroadband() ); if( m_montage == false || src.length <= 1 || !( isIE4 || isW3C ) ) { montagePicker( href, src, 標題, 週期 );返回; } // 建構所有巢狀的 DIV monIdx = Cycle; document.writeln( "<div id="容器" style="寬度:" + 寬度 +"px;高度:112px">" ); for( i = 0; i < src.length; i++ ) { // 設定佔位符 document.writeln( "t<div id="montage" + i + "" style="display:none ”>”); montagePicker( href, src, 標題, i ); document.writeln( "t</div>" ); } document.writeln( "</div>" ); // 取出圖片 monBlock = new Array( src.length ); monImg = 新數組( src.length ); for( i = 0; i < src.length; i++ ) { monBlock[i] = document.getElementById( "montage" + i ).style; monImg[i] = document.getElementById( "monimg" + i ); if( monImg[i] == null ) { montagePicker( href, src, 標題, i );返回; } // 警報(「foo」); monContainer = document.getElementById("容器");蒙太奇效果(); } 函數 montageEffects() { var nextImage = (monIdx + 1) % monImg.length; // 執行過渡 if( readIEVer() >= 4.0 ) { monContainer.style.filter = "blendTrans(duration=1.5) RevealTrans(duration=1.0,transition=7)"; monContainer.filters(0).apply(); monContainer.filters(1).apply();蒙太奇選擇(下一個圖像); monContainer.filters(0).play(); monContainer.filters(1).play(); } else { 蒙太奇選擇( nextImage ); } // 要求稍後再呼叫 setTimeout( "montageSwap()", monTimeout ); } function montageSelect( nextImage ) { //alert( monImg[monIdx].style.visibility ); monBlock[monIdx].display = "無"; monIdx = 下一個映像; monBlock[monIdx].display = "區塊"; } function montageSwap() { if( monImg[monIdx].complete ) { // 沿著 montageEffects() 移動影像索引; } else { // 3秒後再檢查 setTimeout( "montageSwap()", 3000 ); } } function montagePicker( href, src, Caption, Cycle ) { if( href[cycle] != null ) { document.writeln( "tt<A HREF="" + href[cycle] + "" ><IMG SRC="" + src[週期] + "" alt="" + 標題[週期] + "" BORDER="0" ID="monimg" + 週期+ "" ></a>"); } else { document.writeln( "tt<IMG SRC="" + src[cycle] + "" ID="monimg" + Cycle + "">" ); } } 函數 hasBroadband() { if( readIEVer() < 5.0 ) { return false; } 嘗試{ document.body.addBehavior ("#default#clientCaps"); return ( typeof(document.body.connectionType) != "undefined" && document.body.connectionType == "lan" ); } catch( e ) { 回傳 false; } } //來自http://www.downcodes.com的更多javascript </SCRIPT> <!-- 將以下程式碼加入<body>區域內--> <TABLE cellSpacing=0 cellPadding=0 border=0 > < TBODY> <TR> <TD width=122> <SCRIPT 語言=JavaScript 類型=text/javascript> autoconfig(); monTimeout = 2000; var urls = new Array(); var imgs = new Array(); var caps = new Array(); urls[0] = "http://www.downcodes.com"; imgs[0] = "/img/200406301.jpg"; caps[0] = "說明一"; urls[1] = "http://www.downcodes.com"; imgs[1] = "/img/200406302.jpg"; caps[1] = "說明二"; urls[2] = "http://www.downcodes.com"; imgs[2] = "/img/200406303.jpg"; caps[2] = "說明三"; urls[3] = "http://www.downcodes.com"; imgs[3] = "/img/200406304.jpg"; caps[3] = "說明四"; urls[4] = "http://www.downcodes.com"; imgs[4] = "/img/200406305.jpg"; caps[4] = "說明五";蒙太奇( urls, imgs, caps, 461 ); </腳本> </TD> </TR> </TBODY></表>