主题:  看一下这个效果怎么做

yoursrr

职务:普通成员
等级:1
金币:0.0
发贴:9
#12006/1/13 9:24:03
ent.sina.com.cn/f/s/2005netchina/index.shtml
左上角那个图片的效果是怎么做出来的呀,谢谢了!



king0205

职务:普通成员
等级:1
金币:0.0
发贴:1
#22006/1/23 0:18:29
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<Script language="JavaScript">
 var rightbar;
 var coupletcode;
 rightbar = window.screen.width-138;  //左边的广告条0距离靠近滚动条;138=2(浏览器边宽)+117(广告宽度)+17(滚动条宽度)+2(浏览器边宽)

 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=117 HEIGHT=270 id=leftFF ALIGN=> <PARAM NAME=movie VALUE=http://images.sohu.com/cs/button/youpai/120270812b.swf?clickthru=http://goto.sohu.com/goto.php3?code=youpai-sh47-frduilian> <PARAM NAME=quality VALUE=high><PARAM NAME=wmode VALUE=transparent> <EMBED id=leftFFG src=http://images.sohu.com/cs/button/youpai/120270812b.swf?clickthru=http://goto.sohu.com/goto.php3?code=youpai-sh47-frduilian quality=high wmode=transparent  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=117 HEIGHT=270 id=youFF ALIGN=> <PARAM NAME=movie VALUE=http://images.sohu.com/cs/button/youpai/120270812b.swf?clickthru=http://goto.sohu.com/goto.php3?code=youpai-sh47-frduilian> <PARAM NAME=quality VALUE=high> <PARAM NAME=wmode VALUE=transparent><EMBED id=youFFG src=http://images.sohu.com/cs/button/youpai/120270812b.swf?clickthru=http://goto.sohu.com/goto.php3?code=youpai-sh47-frduilian quality=high wmode=transparent  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");
  }
  //-->
 </script>


<body>
</body>
</html>



天使ηò哭

职务:普通成员
等级:1
金币:0.0
发贴:82
#32006/1/24 14:55:58
<!-- 动态图开始 -->
<script language=JavaScript>

var imgUrl=new Array();
var imgLink=new Array();
var adNum=0;
imgUrl[1]="http://image2.sina.com.cn/ent/pc/2006-01-10/55/U1624P28T55D5548F925DT20060111043846.jpg";
imgLink[1]="http://ent.sina.com.cn/s/p/2006-01-11/0232955412.html";

imgUrl[2]="http://image2.sina.com.cn/ent/pc/2006-01-10/55/U1624P28T55D5548F926DT20060111043846.jpg";
imgLink[2]="http://ent.sina.com.cn/s/p/2006-01-11/0323955475.html";

imgUrl[3]="http://image2.sina.com.cn/ent/pc/2006-01-10/55/U1624P28T55D5548F927DT20060111043846.jpg";
imgLink[3]="http://ent.sina.com.cn/s/p/2006-01-11/0420955571.html";


imgUrl[4]="http://image2.sina.com.cn/ent/pc/2006-01-10/55/U1624P28T55D5548F928DT20060111043846.jpg";
imgLink[4]="http://ent.sina.com.cn/s/p/2006-01-10/2235955304.html";

imgUrl[5]="http://image2.sina.com.cn/ent/pc/2006-01-10/55/U1624P28T55D5548F929DT20060111043846.jpg";
imgLink[5]="http://ent.sina.com.cn/s/p/2006-01-11/0417955568.html";


var imgPre=new Array();
var j=0;
for (i=1;i<=5;i++) {
	if( (imgUrl[i]!="") && (imgLink[i]!="") ) {
		j++;
	} else {
		break;
	}
}

function playTran(){
	if (document.all)
		imgInit.filters.revealTrans.play();
}

var key=0;
function nextAd(){
	if(adNum<j)adNum++ ;
	else adNum=1;
	
	if( key==0 ){
		key=1;
	} else if (document.all){
		imgInit.filters.revealTrans.Transition=100;
		imgInit.filters.revealTrans.apply();
                   playTran();

	}
	document.images.imgInit.src=imgUrl[adNum];
	theTimer=setTimeout("nextAd()", 3000);
}


function goUrl(){
	jumpUrl=imgLink[adNum];
	jumpTarget='_blank';
	if (jumpUrl != ''){
		if (jumpTarget != '') 
			window.open(jumpUrl,jumpTarget);
		else
			location.href=jumpUrl;
	}
}
</script>
<a href="javascript:goUrl()"><img class=img01 style="BORDER-LEFT-COLOR: #000000; FILTER: revealTrans(duration=2,transition=20); BORDER-BOTTOM-COLOR: #000000; COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-COLOR: #000000" src="javascript:nextAd()" border=1 name=imgInit></a><!-- 动态图结束 -->

给你一个新浪上拷贝过来的代码...



yoursrr

职务:普通成员
等级:1
金币:0.0
发贴:9
#42006/1/26 10:34:48
哦,好的,谢谢了,我来试试看