JS controls oblique scrolling of webpage images (in addition to top, bottom, left, right scrolling, and oblique scrolling) and js scrolling
<Html>
<Head>
<Title> oblique background movement </title>
<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312">
</Head>
<Body background = "http://p18.qhimg.com/t010e15dc26698ab2a8.png">
<Script language = "Javascript">
<! --
Function selectAll (theField ){
Var tempval = eval ("document." + theField)
Tempval. focus ()
Tempval. select ()
}
// -->
</Script>
<Script language = "Javascript">
<! --
Var background = "http://p18.qhimg.com/t010e15dc26698ab2a8.png ";
Var speed = 0;
BrowserName = navigator. appName;
BrowserVer = parseInt (navigator. appVersion );
If (browserName! = "Netscape" | browserVer> = 4.5 ){
Function moveback (movert, movedn, hPos, vPos ){
If (arguments [4])
Document. body. style. backgroundImage = "url (\" "+ arguments [4] + "\")";
If (arguments [5])
Document. body. style. backgroundRepeat = arguments [5]
If (! IsNaN (hPos )){
If (movert! = 0) & (hPos> 0) hPos =-100000
HPos + = movert
}
If (! IsNaN (vPos )){
If (movedn! = 0) & amp; (vPos> 0) vPos =-100000
VPos + = movedn
}
Document. body. style. backgroundPosition = hPos + "" + vPos
If (isNaN (hPos) hPos = "\" "+ hPos + "\""
If (isNaN (vPos) vPos = "\" "+ vPos + "\""
SetTimeout ("moveback (" + movert + "," + movedn + "," + hPos + "," + vPos + ")", speed)
}
Moveback (, background );
}
// -->
</Script>
<Div> <A href = "http://www.999jiujiu.com/"> http://www.999jiujiu.com/</A> </div>
</Body>
</Html>