sky_flash_120x600_pop.js

来自「2006年一级操作题」· JavaScript 代码 · 共 43 行

JS
43
字号

var ua,an,ie,mac,win,ns,ns6,ge;
ua=navigator.userAgent;
an=navigator.appName;
ie=ua.indexOf('MSIE')>=0;
mac=ua.indexOf('Mac')>=0;
win=ua.indexOf('Windows')>=0;
unx=ua.indexOf('Unix')>=0;
ns=an.indexOf('Netscape')>=0;
ns6=ua.indexOf('Netscape6')>=0;
ge=ua.indexOf('Gecko')>=0;
function banner_click_sky_DoFSCommand(command, args) {
 if (command == "banner_click")
 {
 window.open(sky_URL);
 }
 else if (command == "banner_click2")
 {
 window.open(sky_URL2);
 }
 else if (command == "banner_click3")
 {
 window.open(sky_URL3);
 }
 else if (command == "banner_click4")
 {
 window.open(sky_URL4);
 }
 else if (command == "banner_click5")
 {
 window.open(sky_URL5);
 }
}
if (ie&&win) {
 document.write('<script language=vbscript\>\non error resume next\nSub banner_click_sky_FSCommand(ByVal command, ByVal args)\ncall banner_click_sky_DoFSCommand(command, args)\nend sub</script\>\n');
 document.write('<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id=banner_click_sky width='+sky_width+' height='+sky_height+'><param name=movie value="'+sky_flashfile+'"><param name=quality value=high><param name=wmode value=opaque><param name=loop value=true>');
 document.write('<a href="'+sky_URL+'"><img src="'+sky_altimg+'" width='+sky_width+' height='+sky_height+' border=0></a>');
 document.write('</object>')
} else if (ns && !unx && !ns6 && !ge && navigator.mimeTypes && navigator.mimeTypes['application/x-shockwave-flash'] && navigator.mimeTypes['application/x-shockwave-flash'].enabledPlugin && navigator.plugins && navigator.plugins['Shockwave Flash']) {
 document.write('<embed src="'+sky_flashfile+'" name=banner_click_sky swLiveConnect=true width='+sky_width+' height='+sky_height+' quality=high wmode=opaque loop=true type="application/x-shockwave-flash"><noembed><a href="'+sky_URL+'" target=_blank><img src="'+sky_altimg+'" width='+sky_width+' height='+sky_height+' border=0></a></noembed></embed>');
} else {
 document.write('<a href="'+sky_URL+'" target=_blank><img src="'+sky_altimg+'" width='+sky_width+' height='+sky_height+' border=0 alt="'+sky_alt+'"></a>');
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?