PDA

View Full Version : Marquee with Mouse



microait
10-29-2008, 12:31 PM
1) CODE TITLE: Marquee with Mouse

2) AUTHOR NAME/NOTES: Mohammad Ashfaq Saqi

3) DESCRIPTION: It is a simple and easy way to control marquee. On mouse over it stop and on mouse out it start again. Actually it is very easy way so that i have submitted this code.

4) URL TO CODE:

or, ATTACHED BELOW (see #3 in guidelines below):

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>:: Marquee with Mouse ::</title>
</head>

<body>

<marquee onmouseover=this.stop() onmouseout=this.start() behavior="scroll" scrollamount="3" direction="right" bgcolor="#008ff0"> Welcome to drive dynamic! (world of wonders) </marquee>
<br>
<marquee onmouseover=this.stop() onmouseout=this.start() scrollamount="3" behavior="slide" bgcolor="#0099FF" direction="left"> Welcome to drive dynamic! (world of wonders) </marquee>
<br>
<marquee onmouseover=this.stop() onmouseout=this.start() scrollamount="3" bgcolor="#666600" behavior="alternate" direction="up"> Welcome to drive </marquee>
<br>
<marquee onmouseover=this.stop() onmouseout=this.start() behavior="alternate" scrollamount="9" direction="right" bgcolor="#008ff0"> Welcome to drive dynamic! (world of wonders) </marquee>
<br>
<marquee onmouseover=this.stop() onmouseout=this.start() scrollamount="9" behavior="slide" bgcolor="#0099FF" direction="left"> Welcome to drive dynamic! (world of wonders) </marquee>

</body>
</html>

Nile
10-29-2008, 11:41 PM
It's not really made by you, its just a javascript attribute. But nice example.

microait
10-30-2008, 06:34 AM
Dear,
Actually i am not the founder of java script but actually i just try to introduce the easy way of do something what i have found by chance. When i was experimenting. It is my hobby.
Thanks for your opinion.

rangana
10-30-2008, 08:42 AM
Though the marquee tag might work well, you should note that it's invalid and does'nt even exists on HTML 4.01/xHTL 1.0 Available tags (http://www.w3schools.com/tags/default.asp).

DD has a cross-browser marquee script:
http://www.dynamicdrive.com/dynamicindex2/cmarquee.htm
http://www.dynamicdrive.com/dynamicindex2/cmarquee2.htm