翱翔.Net

释放.Net的力量
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

类似网易首页两边FLASH

Posted on 2004-07-28 10:40  Hover  阅读(971)  评论(0编辑  收藏  举报

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>

<BODY>
<SCRIPT language=JavaScript type=text/JavaScript>
<!-- 
function MM_findObj(n, d) { //v4.01
var p,i,x;if(!d) d
=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d
=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
var i,p,v,obj,args
=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
obj.visibility
=v; }
}

var vote_win 
= null
function vote_open(vote_url)

if (! vote_win || vote_win.closed)
{
vote_win 
= window.open(vote_url,"votewin","width=330,height=230");
}else
{
vote_win.focus();
}
}

function topimg(showAdNumber,SpanIdPrefix,SpanStarSerial){

 var ads
="";
 for (var n
=0;n <= showAdNumber-1;n++){
  
var number= parseInt((showAdNumber+1)* Math.random()) + 1;
    if(ads.indexOf(number) 
== -1){
   var adx
=eval(SpanIdPrefix + SpanStarSerial);
   var sa
=eval(SpanIdPrefix+"s" + number);
   adx.innerHTML
=sa.innerHTML;
   
SpanStarSerial += 1;
  
}
  else{
   n -
= 1;
  
}
 ads +
= "|" + number;
 }
}

//--
>
var rightbar;
var coupletcode;
rightbar 
= window.screen.width-120;

coupletcode 
= "<DIV id=sidebar style='LEFT: 1px; POSITION: absolute; TOP: 1px; VISIBILITY: hidden; z-index:50;' width=100>32</div><DIV id=sidebar2 style='LEFT: " + rightbar + "px; POSITION: absolute; TOP: 1px; VISIBILITY: hidden' width=110>32</div>";

if (window.screen.width>=800)
{
document.write(coupletcode);
}


function InsertCouplet()
{
if (window.screen.width>=800)
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=100 HEIGHT=300 id=leftFF ALIGN=> <PARAM NAME=movie VALUE=http://adimg.163.com/homepage/qixi/s040720qixi_110260.swf> <PARAM NAME=quality VALUE=high><PARAM NAME=wmode> <EMBED id=leftFFG src=http://adimg.163.com/homepage/qixi/s040720qixi_110260.swf quality=high  WIDTH=100 HEIGHT=300 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=100 HEIGHT=300 id=youFF ALIGN=> <PARAM NAME=movie VALUE=http://adimg.163.com/homepage/qixi/s040720qixi_110260.swf> <PARAM NAME=quality VALUE=high> <PARAM NAME=wmode><EMBED id=youFFG src=http://adimg.163.com/homepage/qixi/s040720qixi_110260.swf quality=high WIDTH=100 HEIGHT=350 NAME=you ALIGN= TYPE=application/x-shockwave-flash PLUGINSPAGE=http://www.macromedia.com/go/getflashplayer></EMBED></OBJECT>";

}

}

InsertCouplet();
</SCRIPT>

</BODY>
</HTML>

http://adimg.163.com/homepage/qixi/s040720qixi_110260.swf 
把此处换成你的就OK了