請教一个javascript的問題。。。。。。


版主: ZHANGEricmio

回覆文章
eva
高級玩家
高級玩家
文章: 351
註冊時間: 週四 5月 30, 2002 5:49 pm

請教一个javascript的問題。。。。。。

文章 eva » 週一 6月 10, 2002 3:42 pm

以下代码是一段自动翻滚页面的源代码,该代码属于上下翻滚,我想把他更改为左右翻滚,但是改后发觉是按照斜方向滚动,不知道该怎么办才好。
如果方便的话,如果要在一个页面内同时出现左右和上下翻滚的话,那么为了让script不冲突,那应该怎么更改法

先谢谢了 ^^"

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Content-Type\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" content=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"text/html; charset=gb2312\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\">
</head>
<SCRIPT language=JavaScript>
function mov(a){
scrollx=new_date.document.body.scrollLeft
scrolly=new_date.document.body.scrollTop
scrollx=scrollx+a
new_date.window.scroll(scrolly,scrollx)
}
function movstar(a,time){
movx=setInterval(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"mov(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"+a+\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\",time)
}
function movover(){
clearInterval(movy)
}
</SCRIPT>
<body bgcolor=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"#FFFFFF\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" text=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"#000000\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\">
<table cellspacing=0 cellpadding=0 width=155 border=0 align=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"center\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\">
<tbody>
<tr>
<td valign=top align=middle width=148 height=281><iframe
border=0 name=new_date marginwidth=0 framespacing=0
marginheight=0 src=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"index.html\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" frameborder=0
noResize width=145 scrolling=no height=289
vspale=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"0\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"></iframe></td>
<td align=left height=281 width=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"12\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\">
<div align=center>
<table style=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"BORDER-COLLAPSE: collapse\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"
bordercolor=#111111 height=251 cellspacing=0
cellpadding=0 width=15 border=0>
<tbody>
<tr>
<td width=20 height=15><img
onMouseUp=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"movover();
movstar(-1,20)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"
onMouseDown=movover();movstar(-3,2)
onMouseOver=movstar(-1,20); onMouseOut=movover()
height=14 alt=按鼠标-向上速度加快 src=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"up.gif\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"
width=14 border=0></td>
</tr>
<tr>
<td width=20 height=119></td>
</tr>
<tr>
<td width=20 height=77></td>
</tr>
<tr>
<td valign=bottom width=20 height=59><br>
<img
onMouseUp=movover();movstar(1,20)
onMouseDown=movover();movstar(3,2)
onMouseOver=movstar(1,20) onMouseOut=movover()
height=14 alt=按鼠标-向下速度加快
src=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"down.gif\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" width=14
border=0></td>
</tr>
</tbody>
</table>
</div>
</td>
</tr>
</tbody>
</table>
</body>
</html>
圖檔

回覆文章

回到「 F.S warriors公會」

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 16 位訪客