& lthead & gt
& lttitle & gt弧形搜索IT頻道滑動切換特效源代碼
& ltbody & gt
& lt表格單元格間距= 0 cell padding = 0 width = " 100% " border = 0 & gt;
& ltTBODY & gt
& ltTR & gt
& ltTD & gt
& ltDIV align = center & gt
& lt腳本類型= text/JavaScript & gt;
& lt!-
t = 3;//每張幻燈片的秒數
//促銷+鏈接
prmo = new Array();
link = new Array();
prmo[1]= "/js ";
prmo[2]= "/js ";
//prmo[2]= "/js ";
prmo[4]= "/js ";
prmo[0]= "/js ";
prmo[3]= "/js ";
//初始化
promos =
links =
//構建flashvars
for(x = 0;x & ltprmo .長度;x++) {
promos+=(x+1 & lt;prmo.length)?prmo[x]+" | ":prmo[x];
links+=(x+1 & lt;prmo.length)?link[x]+" | ":link[x];
}
var MM _ content version = 6;
var插件=(navigator . mime types & amp;& ampnavigator . mime types[" application/x-shock wave-flash "])?navigator . mime types[" application/x-shock wave-flash "]。已啟用插件:0;
如果(插件){
var words = navigator . plugins[" shock wave Flash "]. description . split(" ");
for(var I = 0;我& ltwords.length++i)
{
if (isNaN(parseInt(words[i]))
繼續;
var MM _ plug inversion = words[I];
}
var MM _ FlashCanPlay = MM _ plug inversion & gt;= MM _ contentVersion
}
else if(navigator . user agent & amp;& ampnavigator . user agent . index of(" MSIE ")& gt;=0
& amp& amp(navigator . appversion . index of(" Win ")!= -1)) {
document . write(' & lt;SCR' + 'IPT語言= VBScript & gt\ n’);//FS通過拆分標簽對IE4.5 Mac隱藏這壹點
document . write(' on error resume next \ n ');
document . write(' MM _ flash can play =(is object(CreateObject(" shock wave flash . shock wave flash . " & amp;MM _ content version)))\ n’);
document . write(' & lt;/SCR '+' IPT & gt;\ n’);
}
if ( MM_FlashCanPlay ) {
document . write(' & lt;object classid = " clsid:d 27 CDB 6 e-ae6d-11cf-96b 8-444553540000 " code base = "/pub/shock wave/cabs/flash/SW flash . cab # version = 6,0,0,0,0 " width = " 410 " height = " 200 " align = " middle " > ");
document . write(' & lt;param name = " allowScriptAccess " value = " same domain "/& gt;& ltparam name = " movie " value = "/js/img . swf "/& gt;& ltparam name = " quality " value = " high "/& gt;& ltparam name = " bgcolor " value = " # ffffff "/& gt;& lt' param name = " wmode " value = " transparent "/& gt;');
document . write(' & lt;param name = " flash vars " value = " p = '+promos+' & amp;l = '+links+' & amp;t=' + t +' " >);
document . write(' & lt;embed src = "/js/img . swf " flash vars = " p = '+promos+' & amp;l = '+links+' & amp;' t = '+t+' " quality = " high " bgcolor = " # ffffff " width = " 410 " height = " 200 " align = " middle " allowScriptAccess = " same domain " type = " application/x-shock wave-flash " plugin page = "/go/getflash player " wmode = " transparent "/> ');
document . write(' & lt;/object & gt;');
}
//-& gt;
& lt/SCRIPT & gt;
& lt/DIV & gt;& lt/TD & gt;& lt/TR & gt;& lt/TBODY & gt;& lt/TABLE & gt;
& ltbody & gt
& lt/html & gt;