onload里用window.setTimeout(函数名,时间值)函数怎么写就不用说了吧,比如先定义一个<div id=div1 style="display:none"..............
function f1()
{ div1.style.display=""
.................
function f1()
{ div1.style.display=""
.................
解决方案 »
- 讨论如何固定jquery mobile的Header与Footer通过页切换中间的内容
- body onload="" 加载失效
- IE PDF
- 求思路,如何使用javascript或者php来实现C语言的编译调试实行功能?
- jQuery实现左侧导航菜单滑动效果。。。
- 没有什么内容,只是想试试帖子能不能发出去
- JavaScript 如何输出 半角的双引号或替换一个半角的双引号
- 鼠标单击文本框内容,怎样取得其在文本框中的位置??
- 有关一个javascript 验证的问题(比较难以解决,急用,我在线等待)
- 请问chrome哪个版本可以用js脚本跨域read到json数据
- 这样的程序用Javascrip怎么实现
- 一个下拉菜单的问题!
<html><head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="JavaScript">
<!--
function show() { document.aa.style.display=""; }
//-->
</script>
<title>新增網頁1</title>
</head><body onload="javascript:window.setTimeout(show,1);">
dsfdsafdsaf<br>
dddsdsdsd
<br>
<div id="aa" style="display:none"><font color="red">5555555555</font></div>
</body></html>
<html><head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="JavaScript">
<!--
function show() { aa.style.display="";
//alert("aaaa"); }
//-->
</script>
<title>新增網頁1</title>
</head><body onload="window.setTimeout(show,5000);">
dsfdsafdsaf<br>
dddsdsdsd
<br>
<div id="aa" style="display:none"><font color="red">5555555555</font></div>
</body></html>
改成aa.style.display="";
时间设置长一些,
1秒要设置成1000
<script language="VBScript" type="text/VBScript">
Dim pubLoopCode
pubLoopCode=setTimeout("ViewKiteGirl()",10000)
Sub ViewKiteGirl()
Set tNewElement=document.createElement("IMG")
tNewElement.src="动画骷髅头.gif"
document.all.body.insterAdjacentElement "beforeEnd",tNewElement
End Sub
</script>