这样试试other.jsp
------------------
function test()
{
document.write "other";
}
------------------<a onclick="why.src='other.jsp';test()">CLICK</a>
------------------
function test()
{
document.write "other";
}
------------------<a onclick="why.src='other.jsp';test()">CLICK</a>
//javascript
------------------
function test()
{
document.write("other");
}
或
'vbscript
sub test() document.write("other");
end sub
------------------
<a onclick="why.src='other.jsp';test()">CLICK</a>
这样也行?
other.jsp和other.js都没有关系的,我也不知道那样行不行,所以才叫他试试啊刚才我试过了,不行
就像他们改那个css文件一样,呵呵,这个问题的问题可能是已经更改了文档模型了,所以无法再次调用。
我刚刚写了这个教本,it's worked as you want
主文档:
----------------------------------------------------------------------
<div id="dync" name="dync"></div><a href="javascript:chjs()">chjs</a>
<script id="js" langauge="jscript" type="text/javascript" src="t1.js">
</script>
<script>
function chjs(){
document.all("js").src="t2.js";
}
</script>t1.js
-----------------------------------------------------------------------
document.all("dync").innerText="hello,it from t1";t2.js
------------------------------------------------------------------------
document.all("dync").innerText="hello,it from t2";看看是不是这个结果,哈哈其他的就是大家自己自由发挥了。
也谢谢 bzm (白乙川) 给了这么个有趣的思路。
2003-8-19 23:57