<!--begin:TopPicNews-->
<script language=JavaScript>
var imgUrl=new Array();
var imgLink=new Array();
var imgTz=new Array();
var buttonShow=1;
var buttonPos=1;
var buttonX;
var buttonY;
var bakularCode="";
var adNum=0;
var dakularCode="";
imgUrl[1]="/upfiles/20060825/2006082511272577.gif";
imgLink[1]="/info/view.asp?id=62";
imgTz[1]="<a href=\"/info/view.asp?id=62\" target=_blank title=\"China : Domestic sale exceeds export in clothing trade\"> In order to avoid export risks, many textile units shift to domestic market. In the first half 2006, it was obvious tha...</a>";
imgUrl[2]="/upfiles/20060825/2006082511273543.gif";
imgLink[2]="/info/view.asp?id=61";
imgTz[2]="<a href=\"/info/view.asp?id=61\" target=_blank title=\"U.S. Trade Chief Plans to Visit China\"> KUALA LUMPUR, Malaysia — U.S. trade chief Susan Schwab says she will make a three-day visit to China starting Sunday t...</a>";
imgUrl[3]="/upfiles/20060825/2006082511274987.gif";
imgLink[3]="/info/view.asp?id=44";
imgTz[3]="<a href=\"/info/view.asp?id=44\" target=_blank title=\"China : 4183 textile units win textile export quota\"> China Commerce Bureau has issued the results of textile export quota bidding to the US and EU during 2006. Total 4183 t...</a>";
imgUrl[4]="/upfiles/20060825/2006082511274987.gif";
imgLink[4]="/info/view.asp?id=33";
imgTz[4]="<a href=\"/info/view.asp?id=33\" target=_blank title=\"Shenzhen garment company gives a dressing down\"> Sun Mingyuan did not expect to win when his garment company sued five textile manufacturers and retailers for violating...</a>";
var imgPre=new Array();
for (i=1;i<8;i++)
{
imgPre[i]=new Image();
imgPre[i].src=imgUrl[i];
}
function setTransition()
{
if (document.all)
{
imgUrlrotator.filters.revealTrans.Transition=23;//Math.floor(Math.random()*23)
imgUrlrotator.filters.revealTrans.apply();
}
}
function playTransition()
{
if (document.all)
imgUrlrotator.filters.revealTrans.play()
}
function nextAd(toNum)
{
if(adNum<imgUrl.length-1)
adNum++ ;
else
adNum=1;
if(toNum!=null) adNum=toNum;
setTransition();
document.images.imgUrlrotator.src=imgUrl[adNum];
document.getElementById('linktext').innerHTML=imgTz[adNum];
document.images.imgUrlrotator.alt='TopNews: '+imgTz[adNum];
document.getElementById('linktext').innerHTML="<a href="+imgLink[adNum]+" target=_blank class=px14-lh20>"+imgTz[adNum]+"</a>";
playTransition();
checkButton();
if(toNum!=null)
{toNum=null;theTimer=setTimeout("nextAd()", 7000);}
else
{theTimer=setTimeout("nextAd()", 7000);}
}
function jump2url()
{
jumpUrl=imgLink[adNum];jumpTarget='_blank';
if (jumpUrl != '')
{ if (jumpTarget != '')
window.open(jumpUrl,jumpTarget);
else location.href=jumpUrl;
}
}
function displayStatusMsg()
{
status=imgLink[adNum];
document.returnValue = true;
}
function checkButton()
{
for(i=1;i<=imgUrl.length-1;i++)
{if(i==adNum)
//document.getElementById('bt'+i).style.backgroundColor='#F0F0F0';
eval("bt"+i+".style.backgroundColor='#f90';bt"+i+".style.color='#612501';");
else
eval("bt"+i+".style.backgroundColor='#F0F0F0';bt"+i+".style.color='#612501';");
}
}
function dakularButtons()
{
if(buttonShow==1)
{
switch(buttonPos)
{
case 1:{buttonX=278+20-imgUrl.length*20;buttonY=16;break;}
case 2:{buttonX=278+20-imgUrl.length*20;buttonY=125;break;}
case 3:{buttonX=imgUrl.length*20-100;buttonY=16;break;}
case 4:{buttonX=imgUrl.length*20-100;buttonY=125;break;}
default:{buttonX=278+20-imgUrl.length*20;buttonY=16;break;}
}
for(i=1;i<=imgUrl.length-1;i++)
{
dakularCode=dakularCode+"<div id='bt"+i+"' style='display:inline; height=15px; width:21px; border:1px solid #000000; background-color:#00FF00; color:#00FF00; font-size:14px; line-height:14px;' align='center' onMouseOver=this.style.backgroundColor='#FFFFFF';this.style.color='#000000';this.style.cursor='hand' onMouseOut=checkButton(); onClick='clearTimeout(theTimer);nextAd("+i+");'>"+i+"</div>";
}
dakularCode="<div style='display:inline; position:relative;left:"+buttonX+"px; top:"+buttonY+"px; z-index:1;'>"+dakularCode+"</div>";
document.write(dakularCode);
}
}
</script>
<table border="0" cellpadding="0" cellspacing="0" id=newsTable style="position:relative; top:-15px; left: 0px;" name="newsTable">
<script language="javascript">dakularButtons();</script><tr><td><a onMouseOver="displayStatusMsg();return document.returnValue;" onMouseOut="status='';" href="javascript:jump2url()"><img style="FILTER: revealTrans(duration=1,transition=23); border:1px solid #000000" src="javascript:nextAd()" width=280 height=170 border=0 name=imgUrlrotator alt="Top News"></a></td></tr>
<tr><td bgcolor="#f0f0f0" align="center" style="border-bottom:1px solid #000000; border-left:1px solid #000000;border-right:1px solid #000000;padding-top:5px;padding-bottom:5px"><label id="linktext"></label></td></tr>
</table>
<!--TopPicNews End-->
这个其实简单,roseqiu1(冰儿)已经把那段代码给你抠出来了,
1。---------------------
var pics='./images/p1.jpg|./images/p2.jpg|./images/p3.jpg|./images/p4.jpg'
var links='./images/p1.jpg|./images/p2.jpg|./images/p3.jpg|./images/p4.jpg'
<!--焦点图开始-->
<SCRIPT type=text/javascript>
<!--
var focus_width=400
var focus_height=300
var text_height=17
var swf_height = focus_height+text_height
var pics ='./images/p1.jpg|./images/p2.jpg|./images/p3.jpg|./images/p4.jpg'
var links ='./images/p1.jpg|./images/p2.jpg|./images/p3.jpg|./images/p4.jpg'
var texts='客房展示|客房展示|客房展示|客房展示'
//var texts=' | | | |'