try to chnage the last few lines to (didn't test your images, so it may not work):
document.write("<a href="+gu[1]+" target=_blank><img name=gn src="+gi[1]+" width=400 height=70 border=0 style='filter:alpha(opacity=0)' onload='fade()'></a>");
setInterval("ga()",10000)

解决方案 »

  1.   

    这样:记得放图片<html>
    <body > <script>//程序设计:虹雨 网址:http://chy.126.comvar b = 1;var c = true;var gu=new Array()
    gu[1]="http://99jyh.szhouse.com"
    gu[2]="http://www.pengbo.com/bh/hai.htm"
    gu[3]="http://www.szhouse.com/tbgs/qqsz/index.htm"
    var gi=new Array()gi[1]="1.gif"
    gi[2]="2.jpg"
    gi[3]="http://99jyh.szhouse.com/jyh.gif"
    gl=document.links.length;
    gc=1
    function ga(){
        if(++gc==gu.length)gc=1
        document.gn.src=gi[gc]
        document.links[gl].href=gu[gc]
       
    }
    function fade(){
    if(document.all);
    if(c == true) {
    b++;
    }
    if(b==100) {
    b--;
    c = false
    }
    if(b==10) {
    b++;
    c = true;
    }
    if(c == false) {
    b--;
    }
    gn.filters.alpha.opacity=0 + b;
    setTimeout("fade()",50);
    }document.write("<a href='"+gu[1]+"' target=_blank><img name=gn src='"+gi[1]+"' width=400 height=70 border=0 style='filter:alpha(opacity=0)' onload='fade()'></a>");
    setInterval("ga()",10000);
    </script>
     
     </body>
    <html>