[問題] 用js+css取代iframe?_?
我用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