JavaScript Reference/Javascript Properties/direction
Содержание
"direction" Example
<source lang="javascript">
<html> <body> <script language="JavaScript">
function function1(){ document.all.myMarquee.direction = "up"; } function function2(){ document.all.myMarquee.direction = "left"; } function function3(){ document.all.myMarquee.direction = "right"; } function function4(){ document.all.myMarquee.direction = "down"; }
</script> <marquee id="myMarquee" bgcolor="cyan">SCROLLING MARQUEE</marquee> <button onclick="function1();">Up</button> <button onclick="function2();">Left</button> <button onclick="function3();">Right</button> <button onclick="function4();">Down</button> </body> </html>
</source>
"direction" is applied to
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | Applied_To |<marquee> | +----------------+--------------------------------------------------------------+
</source>
"direction" Possible Values
<source lang="javascript">
Possible Values left the default right down up.
</source>
"direction" Syntax and Note
<source lang="javascript">
Note: Read and write property. Sets the scrolling direction in <marquee>.
Syntax:
document.all.marqueeID.direction = value
</source>