关闭

pcjome新闻图片替换效果

810人阅读 评论(0) 收藏 举报
<div><script language=JavaScript>


function HelpArray2(len)
{
this.length=len;
}

HelpText2  = new HelpArray2(8);


HelpText2[0] ="<a href=/rd.php?pid=1&tag=hp_ud_2&tgt=http://article.pchome.net/00/05/40/30/?24,><img border='0' src='http://article.pchome.net/00/05/40/30/hotpic/54030_3.jpg'></a>";//A01 数码

HelpText2[1] ="<a href=/rd.php?pid=1&tag=hp_ud_2&tgt=http://market.pchome.net/marketdo/detail.php?id=14751><img border='0' src='http://www.pchome.net/photo/2005/06/01/8215.jpg'></a>";//A02

HelpText2[2] ="<a href=/rd.php?pid=1&tag=hp_ud_2&tgt=http://article.pchome.net/00/05/26/82/?64,114><img border='0' src='http://www.pchome.net/photo/2005/05/25/8068.gif'></a>";//A03 软件

HelpText2[3] ="<a href=/rd.php?pid=1&tag=hp_ud_2&tgt=http://article.pchome.net/00/05/41/29/?11,><img border='0' src='http://article.pchome.net/00/05/41/29/hotpic/54129_3.jpg'></a>";//A04 数码

HelpText2[4] ="<a href=/rd.php?pid=1&tag=hp_ud_2&tgt=http://article.pchome.net/00/05/33/17/?154,><img border='0' src='http://article.pchome.net/00/05/33/17/hotpic/53317_3.jpg'></a>";//A05 硬件

HelpText2[5] ="<a href=/rd.php?pid=1&tag=hp_ud_2&tgt=http://article.pchome.net/00/05/38/77/?40,><img border='0'  src='http://article.pchome.net/00/05/38/77/hotpic/53877_3.jpg'></a>";//A06 移动办公

HelpText2[6] ="<a href=/rd.php?pid=1&tag=hp_ud_2&tgt=http://article.pchome.net/00/05/37/39/?182,><img border='0' src='http://www.pchome.net/photo/2005/06/01/8210.gif'></a>";//A07 宽频

HelpText2[7] ="<a href=/rd.php?pid=1&tag=hp_ud_2&tgt=http://digi.pchome.net/cool/2005/5/23/2_142996.php><img border='0' src='http://www.pchome.net/photo/2005/06/01/8211.gif'></a>";//A08 社区

ScriptText2 = new HelpArray2(7);

var i = 0;
function playHelp()
{
if (i == 7)        
  {                i = 0;        }       
else
  {                i++;        }       

div_X2.filters[0].apply();       
div_X2.innerHTML = HelpText2[i];       
div_X2.filters[0].play();                       
mytimeout = setTimeout('playHelp()',4500);

}

var mytimeout;

</script>
        <span id=div_X2 style="FILTER: progid:DXImageTransform.Microsoft.Wipe(duration=2, gradientsize=0.25,motion=reverse ); WIDTH=240">
        <img height=190 src="javascript:playHelp()" width=240 border=0></span>
      </div>
0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:397654次
    • 积分:5721
    • 等级:
    • 排名:第4505名
    • 原创:143篇
    • 转载:195篇
    • 译文:0篇
    • 评论:47条