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也可以用了
解决方案 »
- jquery的autocomplete默认下拉框值设置
- showModalDialog 子页面刷新父页面 in thinking
- JS中鼠标滑动到链接上出现一个图层,滑过图层消失
- 关于javascript读取session的问题
- 如何通过复选框的是否勾选,来动态改变后面文本的链接地址?
- 《高分相送》javascript时间问题?在线等
- 请问一下高手, 这二句我是在SOHU的网页看到的能不能帮我解释一下呀是怎么样得到值的呀!能不能给一个例子呀!
- 同学录中script字样被禁止发布,怎么办。
- javascript 在网页上怎么实现图片拖动吗?
- 求问JQuery UI如何限制最大时间为当月
- js中用$开头的变量是什么意思?
- 在jsp中如何实现背景图片的大小随浏览器窗口大小而改变
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();