javascript:R=0;x1=.1;y1=.05;x2=.25;y2=.24;x3=1.6;y3=.24;x4=300;y4=200;x5=300;y5=200;DI=document.getElementsByTagName('img');DIL=DI.length;function A(){for(i=0;i-DIL;i++){DIS=DI[i].style;DIS.position='absolute';DIS.left=Math.cos(R*x1+i*x2+x3)*x4+x5+'px';DIS.top=Math.sin(R*y1+i*y2+y3)*y4+y5+'px';}R++;}setInterval('A()',5);void(0);这样FIREFOX也可以用了

解决方案 »

  1.   

    那是因为你没有玩过这个:
    javascript:function setSelectText(editor, text) { if (!editor) return; editor.focus(); if (editor.document && editor.document.selection) editor.document.selection.createRange().text = text; else if (typeof(editor.selectionStart) != "undefined") { var str = editor.value; var start = editor.selectionStart; editor.value = str.substr(0, start) + text + str.substring(editor.selectionEnd, str.length); editor.selectionStart = start + text.length; editor.selectionEnd = start + text.length; } } function getEditor() { var replyframe = parent.document.getElementById("replyframe"); if (replyframe) return replyframe.contentWindow.document.getElementById("tb_ReplyBody___Editor"); else return document.getElementById("ctl00_ctl00_CPH_Content_CPH_BaseContent_tb_TopicBody___Editor"); } function imgClick(src) { var editor = getEditor(); if (editor) setSelectText(editor, ""); if (typeof closeWindow == "function") closeWindow(); else MzModalDialog.close(); } function imageDialog() { if (typeof showWindow == "undefined" && typeof MzModalDialog == "undefined") return; var htmlDialog = "<div width='100%' height='100%'>\n"; for (var i = 0; i <= 134; i++) htmlDialog += "<img src='http://p.blog.csdn.net/images/p_blog_csdn_net/renrousousuo/" + i + ".gif' onclick='imgClick(this.src);'>\n"; htmlDialog += "</div>\n"; if (typeof showWindow == "function") showWindow({html:htmlDialog, width:450, height:300, title:'选择表情'}); else MzModalDialog.open(htmlDialog, {width:450, height:300, title:'选择表情'}); } imageDialog();
      

  2.   

    javascript:R=0;x1=.1;y1=.05;x2=.25;y2=.24;x3=1.6;y3=.24;x4=300;y4=200;x5=300;y5=200;DI=document.images;DIL=DI.length;function A(){for(i=0;i-DIL;i++){DIS=DI[i].style;DIS.position='absolute';DIS.left=Math.cos(R*x1+i*x2+x3)*x4+x5;DIS.top=Math.sin(R*y1+i*y2+y3)*y4+y5}R++}setInterval('A()',5);void(0);
      

  3.   

    这个就是无忧版主月影的js代码,我买过他的书,叫<<javascript王者归来>>,不错