[問題] 請問這樣的方法要如何修改已刪文
想在沒有WEB SERVER的情況下,用javascript變換iframe,請指教如何修正
<script language="javascript">
function clickCuteButtom(x)
{
transUrl = new array("http://tw.yahoo.com","http://www.pchome.com.tw");
document.ppp.src=transUrl[x];
}</script>
<table border="0" class="menutable">
<tr>
<td><a onmouseup="clickCuteButtom(0)">最新消息</a></td>
</tr>
</table>
<div id="info">
<iframe name="ppp" class="sub_page" src="news.html" scrolling="no"
frameborder="0">
</iframe>
</div>
原本的意思是:
當在"最新消息"按下滑鼠時,內置框架的網址就會改變,連到新的頁面
但現在在IE7下,點了之後,卻在IE最下面出現:網頁發生錯誤,
請問我該如何修改呢?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 59.126.251.200
→
01/16 07:51, , 1F
01/16 07:51, 1F
→
01/16 07:52, , 2F
01/16 07:52, 2F
→
01/16 07:53, , 3F
01/16 07:53, 3F
→
01/16 07:53, , 4F
01/16 07:53, 4F
→
01/16 07:54, , 5F
01/16 07:54, 5F
→
01/16 07:54, , 6F
01/16 07:54, 6F
推
01/16 12:48, , 7F
01/16 12:48, 7F
→
01/16 12:49, , 8F
01/16 12:49, 8F
→
01/16 12:50, , 9F
01/16 12:50, 9F
→
01/16 12:51, , 10F
01/16 12:51, 10F
→
01/16 12:52, , 11F
01/16 12:52, 11F
→
01/16 12:52, , 12F
01/16 12:52, 12F
→
01/16 13:05, , 13F
01/16 13:05, 13F
→
01/16 13:05, , 14F
01/16 13:05, 14F
→
01/16 21:55, , 15F
01/16 21:55, 15F
→
01/17 01:01, , 16F
01/17 01:01, 16F