stop method (marquee)
Stops the scrolling of the current marquee element.
To start the scrolling, use the start method.
Syntax:
You can find the related objects in the Supported by objects section below.
Return value:
This method has no return value.
Example HTML code 1:
This example shows how to start and stop the scrolling of a marquee:
|
||||
<head> <script type="text/javascript"> function StartMarquee (){ var marquee = document.getElementById ("marquee"); marquee.start (); } function StopMarquee (){ var marquee = document.getElementById ("marquee"); marquee.stop (); } </script> </head> <body> <marquee id="marquee" scrollamount="20">Hi There!</marquee> <button onclick="StopMarquee ();">Stop!</button> <button onclick="StartMarquee ();">Start!</button> </body> |
||||
|
||||
Did you find this example helpful?
|
Supported by objects:
HTML elements:
Related pages:
External links:
User Contributed Comments