请问各位一个问题!关于在随机动态生成的网页中,动态插入js文件。谢谢指教! 动态加入?楼主再描述清楚一点.屏蔽右键菜单很容易的<body oncontextmenu="return false"...但想要别人不获取你的源代码理论上是不可能. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 比仿说:a.htm是动态生成的。现在里面没有引入a.js,我想动态在生成a.htm后引入a.js. var the = document.createElement("<SCRIPT>")document.body.appendChild( the )the.src = "a.js" 你以前想在哪里写<script src=xxx,就在哪里动态地加在哪里 我要的是动态效果。比如说:a.htm现在没有<script src=a.js>我现在想通过在b.htm中用javascript将<script src=a.js>动态加入到a.htm.不是我手工往a.htm里写入是自动写入。 a和b是什么关系?iframe还是open? 是在一个页面下table中的两个td中的iframe当我点左边b.htm时,将在右边iframe中打开a.htm也有可能是别页面。我要动态把<script src=a.js>这样一段脚本加进去。 <iframe id=aa name=aa></iframe><iframe id=bb name=bb src=b.htm></iframe>-----------b.htm-----------<script>function test(){ var theWin = parent.window.frames[ "aa" ]; var the = theWin.document.createElement("<SCRIPT>") theWin.document.body.appendChild( the ) the.src = "a.js"}</script> jquery的一个技术问题 请帮忙看下,js 跨域 访问 window.opener问题 大家好,向大家请教select选项保持问题 Aptana Studio 的教程谁有吗? 高分求解,关于动态连线问题 就javascript的显示隐藏问题发表提问 this?? 問個菜問題~~好拿分~~~~~`` uploadify+struts1.2怎么上传啊, How to change lowercase letter to uppercase (for netscape)?Thanks! 着急啊,各位兄弟姐妹们! 二维表的分列统计的方法?
document.body.appendChild( the )
the.src = "a.js"
当我点左边b.htm时,将在右边iframe中打开a.htm也有可能是别页面。我要动态把<script src=a.js>这样一段脚本加进去。
<iframe id=bb name=bb src=b.htm></iframe>-----------b.htm-----------
<script>
function test()
{
var theWin = parent.window.frames[ "aa" ];
var the = theWin.document.createElement("<SCRIPT>")
theWin.document.body.appendChild( the )
the.src = "a.js"
}
</script>