|
藍森林 http://www.lslnet.com 2006年8月25日 8:28
求教:怎麼才能使進入網頁後1秒鐘自動刷新一次就停止?
找了很多代碼,都是不斷的重複刷新,能不能只在進入頁面後規定秒數內刷新一次就立刻停止刷新? |
請允許我頂一下! |
[html]<body onload="if(name!='sx'){setTimeout('location.reload()',8000);name='sx'}">[/html] |
看一下,是不是這樣的呀,
guobing.yiyuan.org |
幫"詩人"頂一下!絕對沒錯!!!!!!!!!!!! |
我那個是asp的頁面,是加在<TBODY>這裡嗎?是不是這樣:
<TBOD onload="if(name!='sx'){setTimeout('location.reload()',8000);name='sx'}">
??這樣我試了,不行哦:( |
<body onload="if(name!='sx'){setTimeout('location.reload()',1000);name='sx'}">
不是tbody |
怎樣用DREAMWEAVER來實現它啊?
大家好,幫幫我吧!
在FRONTPAGE中我想做一個,不好意思我也不知道怎樣說,我舉個例子吧!
比如有二行:
水果
服裝
那麼,我怎樣實現點擊一下水果或服裝就能夠出現:
水果
-蘋果
-香蕉
服裝
-上衣
-外套
然後再點擊一下水果或服裝它們就又能夠復原呢。
拜託哦! |
[html]
<SCRIPT language=javascript1.2>
function showsubmenu(sid)
{
whichEl = eval("submenu" + sid);
if (whichEl.style.display == "none")
{
eval("submenu" + sid + ".style.display=\"\";");
}
else
{
eval("submenu" + sid + ".style.display=\"none\";");
}
}
</SCRIPT>
<table cellpadding=0 cellspacing=0 width=158 align=center>
<tr>
<td height=25 onclick="showsubmenu(1)">水果</td>
</tr>
<tr>
<td style="display:none" id='submenu1'>
<div>
<table cellpadding=0 cellspacing=0 align=center width=135>
<tr>
<td height=18>- <a href="#1">蘋果</a></td>
</tr>
<tr>
<td height=18>- <a href="#1">香蕉</a></td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td onclick="showsubmenu(2)">
服裝</td>
</tr>
<tr>
<td style="display:none" id='submenu2'>
<div>
<table cellpadding=0 cellspacing=0 align=center width=135>
<tr>
<td height=18>- <a href="#1">上衣</a></td>
</tr>
<tr>
<td height=18>- <a href="#1">外套</a></td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td>
</td>
</tr>
</table>
[/html] |
[html]
<script>
setInterval("document.frames['blue'].location.href='http://bbs.blueidea.com/'",4000);
</script>
</head>
<body>
<iframe name="blue" ></iframe>
[/html] |
poet在上個帖子中說
非常感謝!!!
頂!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
|