为什么是BODY里的文字,你是说整个页面吧

解决方案 »

  1.   

    <script language="JavaScript">function surfto(form) {var myindex=form.select1.selectedIndexif (form.select1.options[myindex].value != null) {parent.main.location.href=form.select1.options[myindex].value;} }
     //这段JS代码意为当前页面的浏览器地震//
    </script><script language="JavaScript1.2">function shake(n) {if (window.top.moveBy) {for (i = 10; i > 0; i--) {for (j = n; j > 0; j--) {window.top.moveBy(0,i);window.top.moveBy(i,0);window.top.moveBy(0,-i);window.top.moveBy(-i,0);} } }//alert("呀~~地震啦!没~~吓坏吧?^_*"); //这里设定地震后弹出的嬉戏性文字(据需随意)//}</script><script language="JavaScript">
    function moyamoya(htmlfile) {parent.main.location.href=htmlfile;}
    function String.prototype.checkStrBy()
    {
       var s = ["\\","\"","\'","\?"];
           for (var i=0; i<s.length; i++){
              if (this.indexOf(s[i]) != -1) return true;}
       return false;
    }
    </script><a onclick="shake(10); return false" href="#">点我看看呀</a>
      

  2.   

    <script>
    function dither()
    {
    window.status=document.all.news.style.top;
    document.all.news.style.top=document.all.news.style.top=="60px"?"80px":"60px";
    document.all.news.style.left=document.all.news.style.left=="100px"?"120px":"100px";
    mydither=setInterval(dither,1000);
    }
    </script>
    <div id=news style="position:absolute;top:60;left:100" onmouseover=dither() onmouseout=clearInterval(mydither)>
    <p>our new headers 1
    <p>our new headers 2
    <p>our new headers 3
    <p>our new headers 4
    <p>our new headers 5
    <p>our new headers 6
    <p>our new headers 7
    <p>our new headers 8
    <p>our new headers 9
    </div>
      

  3.   

    个人认为:要body里的文字或者图片(A)抖动,
    应放在<table><tr><td id="a1"></td><td id="a2">A</td>
    可循环动态改变a1的宽度,或者是放在绝对位置的DIV中,也是不停改变DIV的left,top