网页制作中让字往上滚动的代码
- 提问者网友:夢醒日落
- 2021-07-31 20:06
- 五星知识达人网友:末日狂欢
- 2021-07-31 20:40
复制粘贴没有意思,我有一个站点,第一个就是你要的特效!
http://www.webadmin168.cn
好与不好你自己看,全是相关的特效
- 1楼网友:时间的尘埃
- 2021-07-31 23:56
试试我的,不过的我不是向上,自己改下
<!--滚动图片--> <div id="www_qpsh_com" style="overflow:hidden;height:152px;width:960px;color:#ff0000"> <table border="0" align="left" cellpadding="0" cellspacing="0" cellspace="0"> <tr> <td id="www_qpsh_com1"><table border="0" align="center" cellspacing="0" cellpadding="0"> <tr>
<td style="padding-left:10px;"><a href="introduce_imgs/01.jpg" target=_blank><img src="introduce_imgs/01.jpg" alt="" width="150" height="150" border="1" /></a></td> <td style="padding-left:5px;"><img src="introduce_imgs/02.jpg" alt="" width="150" height="150" border="1" /></td> <td style="padding-left:5px;"><img src="introduce_imgs/03.jpg" alt="" width="150" height="150" border="1" /></td> <td style="padding-left:5px;"><img src="introduce_imgs/04.jpg" alt="" width="150" height="150" border="1" /></td> <td style="padding-left:5px;"><img src="introduce_imgs/05.jpg" alt="" width="150" height="150" border="1" /></td> <td style="padding-left:5px;"><img src="introduce_imgs/06.jpg" alt="" width="150" height="150" border="1" /></td> <td style="padding-left:5px;"><img src="introduce_imgs/07.jpg" alt="" width="150" height="150" border="1" /></td> <td style="padding-left:5px;"><img src="introduce_imgs/08.jpg" alt="" width="150" height="150" border="1" /></td> <td style="padding-left:5px;"><img src="introduce_imgs/09.jpg" alt="" width="150" height="150" border="1" /></td> </tr> </table></td> <td id="www_qpsh_com2" valign="top"></td> </tr> </table> </div>
<SCRIPT> var speed3=25;//速度数值越大速度越慢 var www_qpsh_com1 = document.getElementById("www_qpsh_com1"); //非w3c标准要找到表单,必须是要用getElementById("XX"); var www_qpsh_com2 = document.getElementById("www_qpsh_com2"); var www_qpsh_com = document.getElementById("www_qpsh_com"); www_qpsh_com2.innerHTML=www_qpsh_com1.innerHTML;
function Marquee3(){ if(www_qpsh_com2.offsetWidth-www_qpsh_com.scrollLeft<=0) www_qpsh_com.scrollLeft-=www_qpsh_com1.offsetWidth; else{ www_qpsh_com.scrollLeft++; } } var MyMar3=setInterval(Marquee3,speed3) www_qpsh_com.onmouseover=function() {clearInterval(MyMar3)} www_qpsh_com.onmouseout=function() {MyMar3=setInterval(Marquee3,speed3)} </SCRIPT>
- 2楼网友:痴妹与他
- 2021-07-31 22:49
- 3楼网友:思契十里
- 2021-07-31 22:37
- 4楼网友:天凉才是好个秋
- 2021-07-31 21:45