javascript 自动调用

来源:百度知道 编辑:UC知道 时间:2024/04/29 17:34:19
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title></title>
<script language='javascript'>

function show(i,j)
{
if (i.style.display == "inline")
{
i.style.display = "none";
}
else
{
i.style.display = "inline";
}

if (j.style.display == "none")
{
j.style.display = "";
}
else
{
j.style.display = "none";
}
}

</script>

</head>

<body>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title></title>

</head>

<body>
<script language='javascript'>
window.setInterval(show,1000);
function show()
{
if (T1.style.display == "inline")
{
T1.style.display = "none";
}
else
{
T1.style.display = "inline";
}

if (T2.style.display == "none")
{
T2.style.display = "";
}
else
{
T2.style.display = "none";
}
}

</script>
<div style="display:inline; z-index: 107; left: 0px; width: 908px; position: absolute;top: 0px;height:24px" id="T1">
<table width="200" height="200" bgcolor="#000000"><tr><td> <