<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无间断图片轮滚</title>
<style>img{border:0}</style>
</head>
<body>
<!--
*****fason(2002-5-17)******
-->
<div id=oDiv style="width:200;border:1 solid red;overflow:hidden" onmouseover="clearInterval(s)" onmouseout="s=setInterval(fsnMarquee,20)">
<div >
<table border="1" width="100%">
<tr>
<td width="100%" id=oCont><nobr><a href=1.htm><img src=csdn.gif></a><a href=2.htm><img src=csdn.gif></a><a href=3.htm><img src=1.JPG width=100 ></a></nobr>
</td>
</tr>
</table>
</div>
</div>
<script>
var i=0
var s=null
function fsnMarquee(){
if(oDiv.scrollLeft>=(oCont.offsetWidth-oDiv.offsetWidth)/2){
oCont.firstChild.innerHTML+=oCont.firstChild.children[i].outerHTML
i++
}
else oDiv.scrollLeft++;
}
window.onload=function(){s=setInterval(fsnMarquee,20)}
</script>
</body>
</html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无间断图片轮滚</title>
<style>img{border:0}</style>
</head>
<body>
<!--
*****fason(2002-5-17)******
-->
<div id=oDiv style="width:200;border:1 solid red;overflow:hidden" onmouseover="clearInterval(s)" onmouseout="s=setInterval(fsnMarquee,20)">
<div >
<table border="1" width="100%">
<tr>
<td width="100%" id=oCont><nobr><a href=1.htm><img src=csdn.gif></a><a href=2.htm><img src=csdn.gif></a><a href=3.htm><img src=1.JPG width=100 ></a></nobr>
</td>
</tr>
</table>
</div>
</div>
<script>
var i=0
var s=null
function fsnMarquee(){
if(oDiv.scrollLeft>=(oCont.offsetWidth-oDiv.offsetWidth)/2){
oCont.firstChild.innerHTML+=oCont.firstChild.children[i].outerHTML
i++
}
else oDiv.scrollLeft++;
}
window.onload=function(){s=setInterval(fsnMarquee,20)}
</script>
</body>
</html>
解决方案 »
- 怎樣通過一個鏈接調用script??急!!
- 运行jsp页面时显示了这个
- js function的变量问题
- JavaScript的for...in循环使用问题
- 不知我页面上加了什么...搞到里面的某一个<td id ="color_inner">用innerHTML里非常慢
- 请问怎么用javascript画直方图?
- 谁能告诉我象www.sina.com.cn或者www.soufun.com 一些网站在进入首页的时候会先全屏显示一副画面,在进入首页,请问是怎么写的
- 奇怪的东东
- 各位帮我看看这段代码有何不对?
- 帮忙看看为什么这个jquery 返回的data判断总是不执行?
- javascript
- 请php与java_script的高手进来look,look!!!
<tr>
<td width="2%"><img src="images/a_01.gif" width="38" height="104"></td>
<td width="89%" background="images/a_03.gif">
<div id=oDiv style="width:500;border:1 solid red;overflow:hidden" onmouseover="clearInterval(s)" onmouseout="s=setInterval(fsnMarquee,20)">
<div >
<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td width="27%"><a href="case_1.php" target="_blank"><img src="images/a_04.gif" width="100" height="62" border="0"></a></td>
<td width="27%"><a href="case_2.php" target="_blank"><img src="images/a_05.gif" width="100" height="62" border="0"></a></td>
<td width="15%"><a href="case_3.php" target="_blank"><img src="images/a_06.gif" width="100" height="62" border="0"></a></td>
<td width="31%"><a href="case_4.php" target="_blank"><img src="images/a_07.gif" width="87" height="62" border="0"></a></td>
</tr>
<tr align="center">
<td><a href="case_1.php" target="_blank" class="b03"><font color="#0000FF">万国广场</font></a></td>
<td><a href="case_2.php" target="_blank" class="b03"><font color="#0000FF">天河都市广场</font></a></td>
<td><a href="case_3.php" target="_blank" class="b03"><font color="#0000FF">丽影商业广场</font></a></td>
<td><a href="case_4.php" target="_blank" class="b03"><font color="#0000FF">南宁太阳广场</font></a></td>
</tr>
</table>
</div>
</div>
<script>
var i=0
var s=null
function fsnMarquee(){
if(oDiv.scrollLeft>=(oCont.offsetWidth-oDiv.offsetWidth)/2){
oCont.firstChild.innerHTML+=oCont.firstChild.children[i].outerHTML
i++
}
else oDiv.scrollLeft++;
}
window.onload=function(){s=setInterval(fsnMarquee,20)}
</script>
</td>
<td width="9%"><img src="images/a_02.gif" width="43" height="104"></td>
</tr>
</table>
<tr>
<td width="2%"><img src="images/a_01.gif" width="38" height="104"></td>
<td width="89%" background="images/a_03.gif">
<div id=oDiv style="width:500;border:1 solid red;overflow:hidden" onmouseover="clearInterval(s)" onmouseout="s=setInterval(fsnMarquee,20)">
<table border="0" cellspacing="2" cellpadding="2" id=oCont>
<tr id="oCont1">
<td width="27%"><a href="case_1.php" target="_blank"><img src="images/a_04.gif" width="100" height="62" border="0"></a></td>
<td width="27%"><a href="case_2.php" target="_blank"><img src="images/a_05.gif" width="100" height="62" border="0"></a></td>
<td width="15%"><a href="case_3.php" target="_blank"><img src="images/a_06.gif" width="100" height="62" border="0"></a></td>
<td width="31%"><a href="case_4.php" target="_blank"><img src="images/a_07.gif" width="200" height="62" border="0"></a></td>
</tr>
<tr align="center" id="oCont2">
<td><a href="case_1.php" target="_blank" class="b03"><font color="#0000FF">万国广场</font></a></td>
<td><a href="case_2.php" target="_blank" class="b03"><font color="#0000FF">天河都市广场</font></a></td>
<td><a href="case_3.php" target="_blank" class="b03"><font color="#0000FF">丽影商业广场</font></a></td>
<td><a href="case_4.php" target="_blank" class="b03"><font color="#0000FF">南宁太阳广场</font></a></td>
</tr>
</table>
</div>
<script>
var i=0
var s=null
function fsnMarquee(){
if(oDiv.scrollLeft>=oCont.offsetWidth-oDiv.offsetWidth){
oCont1.insertCell().innerHTML=oCont1.children[i].innerHTML
oCont2.insertCell().innerHTML=oCont2.children[i].innerHTML
i++
}
else oDiv.scrollLeft++;
}
window.onload=function(){s=setInterval(fsnMarquee,20)}
document.body.onclick=function(){alert(event.srcElement.outerHTML)}
</script>
</td>
<td width="9%"><img src="images/a_02.gif" width="43" height="104"></td>
</tr>
</table>