代码

<DIV id=img style="POSITION: absolute">
    <TABLE cellSpacing=0 cellPadding=0 border=0>
        <TBODY>
            <TR>
                <TD style="WIDTH: 170px; HEIGHT: 46px">
                </TD>
            </TR>
            <TR>
                <TD style="HEIGHT: 28px; TEXT-ALIGN: center">
                    <A href="http://jdxx.zhs.mofcom.gov.cn/index.shtml" target=_blank>
                        <IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px"
                        src="http://www.cait.cn/news/xwph/200908/W020090812596424251952.jpg">
                    </A>
                </TD>
            </TR>
        </TBODY>
    </TABLE>
</DIV>
<SCRIPT language=javascript>
    var xPos = 100;
    var yPos = document.body.clientHeight;
    var step = 1;
    var delay = 30;
    var height = 0;
    var Hoffset = 0;
    var Woffset = 0;
    var yon = 0;
    var xon = 0;
    var pause = true;
    var interval;
    img.style.top = yPos;
    function changePos() {
        width = document.body.clientWidth;
        height = document.body.clientHeight;
        Hoffset = img.offsetHeight;
        Woffset = img.offsetWidth;
        img.style.left = xPos + document.body.scrollLeft;
        img.style.top = yPos + document.body.scrollTop;
        if (yon) {
            yPos = yPos + step;
        } else {
            yPos = yPos - step;
        }
        if (yPos < 0) {
            yon = 1;
            yPos = 0;
        }
        if (yPos >= (height - Hoffset)) {
            yon = 0;
            yPos = (height - Hoffset);
        }
        if (xon) {
            xPos = xPos + step;
        } else {
            xPos = xPos - step;
        }
        if (xPos < 0) {
            xon = 1;
            xPos = 0;
        }
        if (xPos >= (width - Woffset)) {
            xon = 0;
            xPos = (width - Woffset);
        }
    }
    function www_helpor_net() {
        img.visibility = "visible";
        interval = setInterval('changePos()', delay);
    }
    www_helpor_net(); //For more,visit:www.helpor.net 
    
</SCRIPT>