作者redming (无尘室游魂)
看板Ajax
标题[问题] 使用js+css取代iframe 但js却失效
时间Wed Oct 7 11:48:50 2009
我用js+css取代iframe 出现载入网页中js效果失效
有试过以下方法
= = = old code= = =
<head>
<script type="text/javascript" src="prototype.js"></script>
<script type="text/javascript">
function linkto(url) {
new Ajax.Updater('rightcontent', url, {method: 'get'});
}
</script>
</head>
<a href="#" onclick="linkto('contacts.html');"><b>Contact us</b></a>
= = = 载入网页使用的js code= = = = =
<img id="caribbean" onLoad="initLoupe(this.id,true,743,494);"
src="images/big.jpg" style="cursor:wait;" width="541" height="370" alt="large
image" border="0" />
==========================
我把其中function linkto改成(如下) 还是没办法耶 还有哪边没改到的
function linkto(url) {
new Ajax.Updater('rightcontent', url, {method: 'get',
evalScripts: true});
}
请多多指教 谢谢^^"
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.117.157.18