sina黄页交替显示广告代码

<html>

</style>
<script language=javascript>

function newsubmit()
{
 document.myform.submit();
}

function newsubmit()
{
 document.myform1.submit();
}

function set_search(the_form)
{
var i, search_value;
var len=the_form.search_which.length;

for(i=0; i<len; i++)
{
if(the_form.search_which[i].checked)
search_value=the_form.search_which[i].value;
}

if(search_value == "all" )
{
the_form.action="/cgi-bin/search/search.cgi";
//the_form.directory.length=1;
//the_form.directory.disabled=true;

}
else if(search_value == "cmpy")
{
the_form.action="/cgi-bin/search/mem_search.cgi";
//the_form.directory.disabled=false;
//set_dir(the_form.directory, cmpy_dir);
}
else if(search_value == "prod")
{
the_form.action="/cgi-bin/search/prod_search.cgi";
//the_form.directory.disabled=false;
//set_dir(the_form.directory, prod_dir);
}
else if(search_value == "news")
{
the_form.action="/cgi-bin/search/news_search.cgi";
//the_form.directory.disabled=false;
//set_dir(the_form.directory, news_dir);
}

}
</script>
</head>

<body bgcolor=#FFFFFF topmargin=10><!--新浪标准头开始-->
<table width=100% border=0 cellspacing=0 cellpadding=0>
<tr>
<td height=67><table width=100% border=0 cellspacing=0 cellpadding=0>
<tr>
<td height=5><img src=newimages/spacer.gif width=1 height=1></td>
</tr>
</table></td>
</tr>
</table>
<table width=100% border=0 cellpadding=0 cellspacing=0 class=ytable>
<!--tr>
<td height=26 colspan=2 background=newimages/index_r19_c8.gif><table width=100% border=0 cellspacing=0 cellpadding=0>
<tr>
<td width=85% align=right class=text3>&nbsp;</td>
<td width=15% align=center class=text><a href=http://trade.yp.sina.net/ class=d>更多&gt;&gt;</a></td>
</tr>
</table></td>
</tr>
<tr class=text>
<td height=13>·『SELL』<a href=http://trade.yp.sina.net/cgi-bin/news.cgi?id=722613 target=_blank class=b>New cosmetics and make up gifts </a></td>
<td height=13>·『BUY』<a href=http://trade.yp.sina.net/cgi-bin/news.cgi?id=722610 target=_blank class=b>We would like to import the coal </a></td>
</tr-->
<!--滚动-->
<!--滚动结束-->

<!--tr>
<td><img src=newimages/index_r9_c1.jpg width=4 height=151 border=0></td>
<td><a href=http://njtoan-auto.yp.sina.net/ target=_blank><img src=http://yp.sina.net/images/ad/0501/yp-dt-050119.jpg width=210 height=150 border=1></a></td>
<td><img src=newimages/index_r9_c6.jpg width=4 height=151 border=0></td>
</tr-->
<!--滚动大图开始-->
<!--TR>
<TD height=3><IMG height=1 src="index.files/spacer.gif" width=1></TD></TR-->
<tr>
           <td width="268" style="padding-left:7px">
        <script language=JavaScript>

var imgUrl=new Array();
var imgLink=new Array();
var imgTz=new Array();
var adNum=0;
var num=4;
imgUrl[1]="http://yp.sina.net/images/ad/05/yp-dt-050615-1.jpg";
imgLink[1]="http://aiqi.yp.sina.net/";
imgTz[1]="<a href=http://aiqi.yp.sina.net/ class=title2 target=_blank>艾齐电通(北京)科技有限公司</a>";
imgUrl[2]="http://yp.sina.net/images/ad/05/yp-dt-050615-2.jpg";
imgLink[2]="http://yawenpaper.yp.sina.net/";
imgTz[2]="<a href=http://yawenpaper.yp.sina.net/ class=title2 target=_blank>上海雅纹纸业有限公司</a>";
imgUrl[3]="http://yp.sina.net/images/ad/05/yp-dt-050615-3.jpg";
imgLink[3]="http://niumulin.yp.sina.net/";
imgTz[3]="<a href=http://niumulin.yp.sina.net/ class=title2 target=_blank>永春牛姆林绿岛游乐度假村有限公司</a>";
imgUrl[4]="http://yp.sina.net/images/ad/05/yp-dt-050615-4.jpg";
imgLink[4]="http://sanyouhe.yp.sina.net/";
imgTz[4]="<a href=http://sanyouhe.yp.sina.net/ class=title2 target=_blank>厦门市三友和机械有限公司</a>";

var imgPre=new Array();
for (i=1;i<4;i++){
imgPre[i]=new Image();
      imgPre[i].src=imgUrl[i];
   }


function setTransition(){
   if (document.all){
      imgUrlrotator.filters.revealTrans.Transition=Math.floor(Math.random()*20);
      imgUrlrotator.filters.revealTrans.apply();
   }
}

function playTransition(){
   if (document.all)
      imgUrlrotator.filters.revealTrans.play()
}


function nextAd(){
   if(adNum<num)adNum++ ;
      else adNum=1;
   setTransition();
   document.images.imgUrlrotator.src=imgUrl[adNum];
   playTransition();
   document.getElementById('rrjdtz').innerHTML=imgTz[adNum];
   theTimer=setTimeout("nextAd()", 6000);
}

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;
}

</script>
      <a onMouseOver="displayStatusMsg();return document.returnValue"
      href="javascript:jump2url()"><img
      style="FILTER: revealTrans(duration=2,transition=20)"
      src="javascript:nextAd()" width=210  border=1
      name=imgUrlrotator></a>
  
     </td>         
        </tr>
<tr><td class=f align=middle bgColor=#f5f5f5 align=center colSpan=3 height=20 id=rrjdtz></td></tr>
      <!--滚动大图结束-->
<!--tr>
<td height=15 colspan=3 align=center bgcolor=#f5f5f5 class=text>推荐优秀会员联展</td>
</tr-->
<!--tr>
<td height=10 colspan=3 align=center class=text><img src=newimages/spacer.gif width=1 height=1></td>
</tr-->
</table>
<table width=750 border=0 align=center cellpadding=0 cellspacing=0>
<tr>
<td height=5><img src=newimages/spacer.gif width=1 height=1></td>
</tr>
</table>
</body>
</html>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值