1、*.fla button中代码: on (release) { getURL("FSCommand:SohuCLFS", "hidecouplet"); } 2、*.js var rightbar; var coupletcode; rightbar = window.screen.width-140;
coupletcode = "<DIV id=sidebar style='LEFT: 0px; POSITION: absolute; TOP: 100px; VISIBILITY: hidden;' width=117>32</div><DIV id=sidebar2 style='LEFT: " + rightbar + "px; POSITION: absolute; TOP: 100px; VISIBILITY: hidden' width=117>32</div>";
if (window.screen.width>=1024) { document.write(coupletcode); }
function InsertCouplet() { if (window.screen.width>=1024){ document.all.sidebar.style.visibility = "visible"; document.all.sidebar2.style.visibility = "visible"; document.all.sidebar.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=120 HEIGHT=270 id=leftFF ALIGN=> <PARAM NAME=movie value=1.swf> <PARAM NAME=quality value=high><PARAM NAME=wmode> <EMBED id=leftFFG src=http://images.sohu.com/cs/button/xiandaibj3-949/duilian1118.swf?clickthru=http://goto.sohu.com/goto.php3?code=xiandai-bj949-chiduilian quality=high WIDTH=117 HEIGHT=270 NAME=you ALIGN= TYPE=application/x-shockwave-flash PLUGINSPAGE=http://www.macromedia.com/go/getflashplayer></EMBED></OBJECT>"; document.all.sidebar2.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=120 HEIGHT=270 id=youFF ALIGN=> <PARAM NAME=movie value=1.swf> <PARAM NAME=quality value=high> <PARAM NAME=wmode><EMBED id=youFFG src=http://images.sohu.com/cs/button/xiandaibj3-949/duilian1118.swf?clickthru=http://goto.sohu.com/goto.php3?code=xiandai-bj949-chiduilian quality=high WIDTH=117 HEIGHT=270 NAME=you ALIGN= TYPE=application/x-shockwave-flash PLUGINSPAGE=http://www.macromedia.com/go/getflashplayer></EMBED></OBJECT>";
} }
InsertCouplet(); function leftFFG_DoFSCommand(command,args){ if ((command == "SohuCLFS")&&(args =="hidecouplet")){ document.all.sidebar.style.visibility = "hidden"; document.all.sidebar2.style.visibility = "hidden"; } } function youFFG_DoFSCommand(command,args){ leftFFG_DoFSCommand(command,args); } <!-- if (document.all){ document.write("<Script language=\"javascript\" For=\"youFF\" Event=\"FSCommand(command,args)\">\n"); document.write(" leftFFG_DoFSCommand(command,args);\n"); document.write("</Script>\n"); document.write("<Script language=\"javascript\" For=\"leftFF\" Event=\"FSCommand(command,args)\">\n"); document.write(" leftFFG_DoFSCommand(command,args);\n"); document.write("</Script>\n"); } //--> 3、*.html <HTML> <HEAD> <meta http-equiv=Content-Type content="text/html; charset="> <TITLE>me</TITLE> <!--对联代码--> <script language=javascript src=*.js></script> <!--对联代码结束--> </HEAD> <BODY bgcolor="#FFFFFF"> <!-- URL's used in the movie--> <p><A HREF=FSCommand:quit></A> <A HREF=javascript:self.close()></A> <!-- text used in the movie--> </BODY> </HTML>
----------------------------------------
|