动态创建iframe时怎样引入js 文件 oDragIframe.document.write('<script src="/www/js/desktop/DragFun.js"></scr'+'ipt>'); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 这样CPU会占用100%的, 好像死循环一样, 不知是什么事? 那是引用自己了吧src="/www/js/desktop/DragFun.js"就是这个文件名吧 上面的内容是在aa.htm中的, 引用的是/www/js/desktop/DragFun.js这个文件, 不会是自己呀 当IE的internet选项里设置为每次访问此页时检查时就会出现上面的情况, 即CPU占用100%,直到死机一样 <body><script>var tDragIframe = document.createElement("iframe");tDragIframe.id = "DragIframe";tDragIframe.style.width = '100%';tDragIframe.style.height ='100%';document.body.appendChild(tDragIframe);var oDragIframe = document.getElementById('DragIframe').contentWindow;oDragIframe.document.open();oDragIframe.document.writeln('<html xmlns="http://www.w3.org/1999/xhtml><head>');oDragIframe.document.write('<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />');oDragIframe.document.write('<script src="/www/js/desktop/DragFun.js"/>/<//script>');oDragIframe.document.writeln('<link href="/www/css/Font.css" rel="stylesheet" type="text/css" />');oDragIframe.document.writeln('</head><body>');oDragIframe.document.write('jjjjjjj');oDragIframe.document.writeln('</body></html>');oDragIframe.document.close();</script></body> 关于js控制变色问题 一个JavaScript另类创建对象方式 javascript 有的时候改完没效果 浮动div 输入限制 带翻动的滤镜效果的图片如何加热区使其能链接多个URL?(附代码) javascript的另类下拉菜单 分解数组 怎么将checkbox, radio, select控件设置为只读,不可选? 选择的下拉列表内容如何自动加入文本框? 想在JS的函数中使用实参 如何将tr的top颜色变为黑色?
src="/www/js/desktop/DragFun.js"
就是这个文件名吧
这个文件, 不会是自己呀
<script>
var tDragIframe = document.createElement("iframe");
tDragIframe.id = "DragIframe";
tDragIframe.style.width = '100%';
tDragIframe.style.height ='100%';
document.body.appendChild(tDragIframe);
var oDragIframe = document.getElementById('DragIframe').contentWindow;
oDragIframe.document.open();
oDragIframe.document.writeln('<html xmlns="http://www.w3.org/1999/xhtml><head>');
oDragIframe.document.write('<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />');
oDragIframe.document.write('<script src="/www/js/desktop/DragFun.js"/>/<//script>');
oDragIframe.document.writeln('<link href="/www/css/Font.css" rel="stylesheet" type="text/css" />');
oDragIframe.document.writeln('</head><body>');
oDragIframe.document.write('jjjjjjj');
oDragIframe.document.writeln('</body></html>');
oDragIframe.document.close();
</script>
</body>