var rightbar;
var coupletcode;
//定义FLASH的地址
var left_flash="http://adbanner.n169.com/swf/LR_20050916_newIndex.swf";
var right_flash="";
//如果右边的FLASH地址为空则与左边的相同
if(right_flash=="")


{
right_flash=left_flash;
}

rightbar = window.screen.width-150+20;

//coupletcode = "<DIV id=leftbar style='LEFT: 0px; POSITION: absolute; TOP: 110px; VISIBILITY: hidden;' width=130>32</div><DIV id=rightbar style='LEFT: " + rightbar + "px; POSITION: absolute; TOP: 110px; VISIBILITY: hidden' width=130>32</div>";
coupletcode = "<DIV id=leftbar style='LEFT: 5px; POSITION: absolute; TOP: 110px; VISIBILITY: hidden;' width=130>32</div><DIV id=rightbar style='right: 5px; POSITION: absolute; TOP: 110px; VISIBILITY: hidden' width=130>32</div>";

if (window.screen.width>=800)


{
document.write(coupletcode);
}

function InsertCouplet()


{

if (window.screen.width>=800)
{
document.getElementById("leftbar").style.visibility = "visible";
document.getElementById("rightbar").style.visibility = "visible";
document.getElementById("leftbar").innerHTML = "<OBJECT classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0 WIDTH=110 HEIGHT=270 id=leftB ALIGN=> <PARAM NAME=movie VALUE="+left_flash+"> <PARAM NAME=quality VALUE=high><EMBED id=leftBG src="+left_flash+" quality=high WIDTH=110 HEIGHT=270 NAME=left ALIGN= TYPE=application/x-shockwave-flash PLUGINSPAGE=http://www.macromedia.com/go/getflashplayer></EMBED></OBJECT>";
document.getElementById("rightbar").innerHTML = "<OBJECT classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0 WIDTH=110 HEIGHT=270 id=rightB ALIGN=> <PARAM NAME=movie VALUE="+right_flash+"> <PARAM NAME=quality VALUE=high> <EMBED id=rightBG src="+right_flash+" quality=high WIDTH=110 HEIGHT=270 NAME=right ALIGN= TYPE=application/x-shockwave-flash PLUGINSPAGE=http://www.macromedia.com/go/getflashplayer></EMBED></OBJECT>";

}
}
InsertCouplet();

function leftBG_DoFSCommand(command,args)
{

if (command == "quit")
{
document.all.leftbar.style.visibility = "hidden";
document.all.rightbar.style.visibility = "hidden";
}
}

function rightBG_DoFSCommand(command,args)
{
leftBG_DoFSCommand(command,args);
}
<!--

if (document.all)
{
document.write("<Script language=\"JavaScript\" For=\"rightB\" Event=\"FSCommand(command,args)\">\n");
document.write(" leftBG_DoFSCommand(command,args);\n");
document.write("</Script>\n");
document.write("<Script language=\"JavaScript\" For=\"leftB\" Event=\"FSCommand(command,args)\">\n");
document.write(" rightBG_DoFSCommand(command,args);\n");
document.write("</Script>\n");
}
//-->

http://www.yaosansi.com/blog/default.asp?cateID=5
posted on
2007-02-12 13:19
mbskys
阅读(
139)
评论()
收藏
举报