哎,虽然你不是美女,也给你改改吧:<script language=JavaScript> 
var elady_step=3; //1:small, 3:middle, 5:big 
var elady_speed=80; //20:fast, 50:middle, 80:slow 
var e_tp=new Array(); 
var e_tplink=new Array(); 
var adNum_elady1=0; 
var elady_stop_sh=0; 
var elady_star_sh=1; function elady1_moveImg(){ 
if ((!document.all&&!document.getElementById)||(elady_stop_sh==0)) return; 
if (elady_star_sh==1){ 
document.all.elady1_divimg.style.pixelTop=parseInt(document.all.elady1_divimg.style.pixelTop)+elady_step;} 
else if (elady_star_sh==2){ 
document.all.elady1_divimg.style.pixelLeft=parseInt(document.all.elady1_divimg.style.pixelLeft)+elady_step;} 
else if (elady_star_sh==3){ 
document.all.elady1_divimg.style.pixelTop=parseInt(document.all.elady1_divimg.style.pixelTop)-elady_step;} 
else{ 
document.all.elady1_divimg.style.pixelLeft=parseInt(document.all.elady1_divimg.style.pixelLeft)-elady_step;} 
if (elady_star_sh <4) elady_star_sh++; 
else elady_star_sh=1; 
setTimeout("elady1_moveImg()",elady_speed);} 
e_tplink[0]=""; 
e_tp[0]="http://tool.alixixi.com/demo/70/70/images/01.jpg"; e_tplink[1]=""; 
e_tp[1]="http://tool.alixixi.com/demo/70/70/images/02.jpg"; e_tplink[2]=""; 
e_tp[2]="http://tool.alixixi.com/demo/70/70/images/03.jpg"; e_tplink[3]=""; 
e_tp[3]="http://tool.alixixi.com/demo/70/70/images/04.jpg"; var currentimage=new Array();  
for (i=0;i <=3;i++){currentimage[i]=new Image(); 
      currentimage[i].src=e_tp[i]; 
        } 
        function elady1_set(){  if (document.all) 
        {      e_tprotator.filters.revealTrans.Transition=Math.floor(Math.random()*23); 
              e_tprotator.filters.revealTrans.apply();  } 
              } 
              function elady1_playCo() 
              {  if (document.all)      e_tprotator.filters.revealTrans.play() 
              }function elady1_nextAd(){  if(adNum_elady1 <e_tp.length-1)adNum_elady1++ ; 
                    else adNum_elady1=0; 
                        elady1_set(); 
                          document.images.e_tprotator.src=e_tp[adNum_elady1]; 
                              elady1_playCo(); 
                                theTimer=setTimeout("elady1_nextAd()", 4000);} 
                                function elady1_linkurl(){  jumpUrl=e_tplink[adNum_elady1]; 
                                    jumpTarget='_blank'; 
                                      if (jumpUrl != ''){      if (jumpTarget != '')window.open(jumpUrl,jumpTarget); 
                                            else location.href=jumpUrl; 
                                                }} 
function elady1_listMsg() 
{  status=e_tplink[adNum_elady1]; 
document.returnValue = true;} document.write(" <div id='elady1_divimg' style='position:relative'>"); document.write(' <a onMouseOver="elady1_listMsg();return document.returnValue" href="javascript:elady1_linkurl()" target="_self">'); 
document.write(' <img style="FILTER: revealTrans(duration=2,transition=20)" height=300 src="'+e_tp[0]+'" width=300 border=0 name=e_tprotator > </a>'); document.write(" </div>"); 
</script> ================================================================== 
以下这段是用作一个页面上固定不动的div悬浮层的: <script language="javascript"> 
<!-- 
function initAd() { 
document.all.AdLayer.style.posTop = -200; 
//设置onLoad事件激发以后,广告层相对于固定后的y方向位置 
document.all.AdLayer.style.visibility = 'visible'//设置层为可见 
MoveLayer('AdLayer');//调用函数MoveLayer() 

function MoveLayer(layerName) { 
var x = 0;//浮动广告层固定于浏览器的x方向位置 
var y = 360;//浮动广告层固定于浏览器的y方向位置 
var diff = (document.body.scrollTop + y - document.all.AdLayer.style.posTop)*.40; 
var y = document.body.scrollTop + y - diff; 
eval("document.all." + layerName + ".style.posTop = y"); 
eval("document.all." + layerName + ".style.posright = x");//移动广告层 
setTimeout("MoveLayer('AdLayer');", 0);//设置20毫秒后再调用函数MoveLayer() 
} window.onload= function() //把初始化代码全放进去
{
    elady1_nextAd();
    initAd();//载入页面后,调用函数initAd() 
}//--> 
</script> 
<!--下面为一个ID为AdLayer的层(如ID名不为AdLayer, 
上面MoveLayer()内的AdLayer也要作相应修改),包括一张图片--> 
<div id=AdLayer style='position:absolute; width:61px; height:59px; z-index:20; visibility:hidden;; right: 10px; top: 100px'> 
<img src="http://tool.alixixi.com/demo/70/70/images/02.jpg" width=100 height=100> </div> 

解决方案 »

  1.   

    把<SCRIPT  LANGUAGE="javascript"> 
    initAd();//载入页面后,调用函数initAd() 
    </SCRIPT> 挪后面去,并去掉去于onload的绑定就可以了<script language="JavaScript"> 
    var elady_step=3; //1:small, 3:middle, 5:big 
    var elady_speed=80; //20:fast, 50:middle, 80:slow 
    var e_tp=new Array(); 
    var e_tplink=new Array(); 
    var adNum_elady1=0; 
    var elady_stop_sh=0; 
    var elady_star_sh=1; function elady1_moveImg(){ 
    if ((!document.all&&!document.getElementById)||(elady_stop_sh==0)) return; 
    if (elady_star_sh==1){ 
    document.all.elady1_divimg.style.pixelTop=parseInt(document.all.elady1_divimg.style.pixelTop)+elady_step;} 
    else if (elady_star_sh==2){ 
    document.all.elady1_divimg.style.pixelLeft=parseInt(document.all.elady1_divimg.style.pixelLeft)+elady_step;} 
    else if (elady_star_sh==3){ 
    document.all.elady1_divimg.style.pixelTop=parseInt(document.all.elady1_divimg.style.pixelTop)-elady_step;} 
    else{ 
    document.all.elady1_divimg.style.pixelLeft=parseInt(document.all.elady1_divimg.style.pixelLeft)-elady_step;} 
    if (elady_star_sh <4) elady_star_sh++; 
    else elady_star_sh=1; 
    setTimeout("elady1_moveImg()",elady_speed);} 
    e_tplink[0]=""; 
    e_tp[0]="http://tool.alixixi.com/demo/70/70/images/01.jpg"; e_tplink[1]=""; 
    e_tp[1]="http://tool.alixixi.com/demo/70/70/images/02.jpg"; e_tplink[2]=""; 
    e_tp[2]="http://tool.alixixi.com/demo/70/70/images/03.jpg"; e_tplink[3]=""; 
    e_tp[3]="http://tool.alixixi.com/demo/70/70/images/04.jpg"; var currentimage=new Array();  
    for (i=0;i <=3;i++){currentimage[i]=new Image(); 
          currentimage[i].src=e_tp[i]; 
            } 
            function elady1_set(){  if (document.all) 
            {      e_tprotator.filters.revealTrans.Transition=Math.floor(Math.random()*23); 
                  e_tprotator.filters.revealTrans.apply();  } 
                  } 
                  function elady1_playCo() 
                  {  if (document.all)      e_tprotator.filters.revealTrans.play() 
                  }function elady1_nextAd(){  if(adNum_elady1 <e_tp.length-1)adNum_elady1++ ; 
                        else adNum_elady1=0; 
                            elady1_set(); 
                              document.images.e_tprotator.src=e_tp[adNum_elady1]; 
                                  elady1_playCo(); 
                                    theTimer=setTimeout("elady1_nextAd()", 4000);} 
                                    function elady1_linkurl(){  jumpUrl=e_tplink[adNum_elady1]; 
                                        jumpTarget='_blank'; 
                                          if (jumpUrl != ''){      if (jumpTarget != '')window.open(jumpUrl,jumpTarget); 
                                                else location.href=jumpUrl; 
                                                    }} 
    function elady1_listMsg() 
    {  status=e_tplink[adNum_elady1]; 
    document.returnValue = true;} document.write(" <div id='elady1_divimg' style='position:relative'>"); document.write(' <a onMouseOver="elady1_listMsg();return document.returnValue" href="javascript:elady1_linkurl()" target="_self">'); 
    window.onload=elady1_nextAd; 
    document.write(' <img style="FILTER: revealTrans(duration=2,transition=20)" height=300 src="'+e_tp[0]+'" width=300 border=0 name=e_tprotator > </a>'); document.write(" </div>"); 
    </script> ================================================================== 
    以下这段是用作一个页面上固定不动的div悬浮层的: 
    <script language="javascript"> 
    <!-- 
    function initAd() { 
    document.all.AdLayer.style.posTop = -200; 
    //设置onLoad事件激发以后,广告层相对于固定后的y方向位置 
    document.all.AdLayer.style.visibility = 'visible'//设置层为可见 
    MoveLayer('AdLayer');//调用函数MoveLayer() 

    function MoveLayer(layerName) { 
    var x = 0;//浮动广告层固定于浏览器的x方向位置 
    var y = 360;//浮动广告层固定于浏览器的y方向位置 
    var diff = (document.body.scrollTop + y - document.all.AdLayer.style.posTop)*.40; 
    var y = document.body.scrollTop + y - diff; 
    eval("document.all." + layerName + ".style.posTop = y"); 
    eval("document.all." + layerName + ".style.posright = x");//移动广告层 
    setTimeout("MoveLayer('AdLayer');", 0);//设置20毫秒后再调用函数MoveLayer() 

    //--> 
    </script> 
    <!--下面为一个ID为AdLayer的层(如ID名不为AdLayer, 
    上面MoveLayer()内的AdLayer也要作相应修改),包括一张图片--> 
    <div id=AdLayer style='position:absolute; width:61px; height:59px; z-index:20; visibility:hidden;; right: 10px; top: 100px'> 
    <img src="http://tool.alixixi.com/demo/70/70/images/02.jpg" width=100 height=100> </div> 
    <SCRIPT  LANGUAGE="javascript"> 
    initAd();//载入页面后,调用函数initAd() 
    </SCRIPT>