Computer Help and Spyware Removal Computer Help and Spyware Removal Computer Help and Spyware Removal Computer Help Forums Windows Startup Programs Database Spyware and Malware Removal Guides Computer Tutorials Uninstall Database File Database Computer Glossary Computer Resources
 

Welcome Guest ( Log In | Click here to Register a free account now! )



Register a free account to unlock additional features at BleepingComputer.com
Welcome to Bleeping Computer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.
Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.


Important Announcement: The winners of the BC Million Post contest have been announced. You can read who the winners are at this post.

- BleepingComputer Management
 
Reply to this topicStart new topic
> Marquee Behaviour Of Html Code, How to stop moving marquee
ahmedlibrian
post Nov 2 2005, 09:55 PM
Post #1


New Member
*

Group: Members
Posts: 9
Joined: 21-May 05
Member No.: 20,834



Hello friends!
Friends i have made an html website. I apply a marquee text that move up from down. The problem is that i want to stop the moving text "applied marquee" on "mouse over" and moves it again on "mose down". How can i do this. If it is not applied on marquee then how can i do this you can write a code for me.

I am waiting for your reply and praying for this forum to proceed ahead ......... Well done guys and good effort ........

Ahmed Hassan !
Go to the top of the page
 
+Quote Post
chiefmasterjedi
post Nov 7 2005, 10:12 AM
Post #2


Member
**

Group: Members
Posts: 123
Joined: 24-July 04
From: NC
Member No.: 1,633



here you go, this will make the marquee stop on mouse over and begin again on mouse out
CODE
        <marquee id="test" behavior="scroll" direction="up" height="200" scrolldelay="100" scrollamount="2" onMouseOver="document.all.test.stop()" onMouseOut="document.all.test.start()">
            
This is my test
            
        </marquee>


Here is what the above code will look like test marquee


Note: If you change the marquee id="test" statement, then you will have to change the mouse over and mouse out statements to match (IE: onmouseover="document.all.test.stop()"

For mouse down include this line within <marquee>
CODE
onMouseDown="document.all.test.start()"
OR
onMouseOut="document.all.test.stop()"


I hope this helps,
Chief.

P.S. this is really basic and the text will stop if your mouse enters the marquee area. You will need to refine your code to give the impression that it is the text that your stopping............like make the marquee width smaller, or better still turn the text that is scrolling into a link and add the mouse over and mouse out statements within the link attributes.
Here is an example
CODE
<marquee id="test" behavior="scroll" direction="up" height="200" scrolldelay="100" scrollamount="2">

<a href="index.html" onMouseOver="document.all.test.stop()" onMouseOut="document.all.test.start()">This is my test</a>

</marquee>

This will stop only the text and looks like this Test #2 marquee

This post has been edited by chiefmasterjedi: Nov 7 2005, 10:31 AM
Go to the top of the page
 
+Quote Post
ahmedlibrian
post Nov 8 2005, 09:27 PM
Post #3


New Member
*

Group: Members
Posts: 9
Joined: 21-May 05
Member No.: 20,834



Hell mater!
This is the code that i was looking for. I am really grateful to you for your such a help. Thankyou very much once again. Listen soon from your side ........ Bye
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 22nd November 2008 - 07:39 AM


Advertise   |   About Us   |   Terms of Use   |   Privacy Policy   |   Contact Us   |   Site Map   |   Chat   |   Tutorials   |   Uninstall List
Discussion Forums   |   The Computer Glossary   |   Resources   |   RSS Feeds   |   Startups   |   The File Database   |   Malware Removal Guides

© 2003-2008 All Rights Reserved Bleeping Computer LLC.