Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OnMouseOver / OnMouseOut event for custom control

Status
Not open for further replies.

jasonsalas

IS-IT--Management
Jun 20, 2001
480
GU
Hi everyone,

I've got a composite custom contyrol I built that displays data in a normal <MARQUEE> tag. I'm trying to pause the scrolling of the tag's text by using the <MARQUEE>'s Start() and Stop() methods, like so:

<marquee id=&quot;ticker&quot; onMouseOver=&quot;ticker.Stop();&quot; onMouseOut=&quot;ticker.Start();&quot;>
....some generic content...
</marquee>

However, when I try and plug this into my custom control, I get a JavaScript error that says &quot;Object doesn't support this property or method.&quot; Is this an example of a need for me to attach and/or handle an event, even though OnMouseOver nd OnMouseOut are inherent (or so I thought)?

Thanks! :)
 
All the examples I see don't capitalize the .start and .stop methods. That may be your problem.

Then, I'd probably use &quot;this.start()&quot; and &quot;this.stop()&quot;

hth
-paul
penny.gif
penny.gif

The answer to getting answered -- faq855-2992
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top