Welcome to WebmasterWorld Guest from 18.206.48.142

Forum Moderators: open

Message Too Old, No Replies

Trouble adding to "mouseover" event

     
5:47 pm on Sep 8, 2003 (gmt 0)

Junior Member

10+ Year Member

joined:Apr 16, 2003
posts:110
votes: 0


Having trouble with this one.
mouseover calls two functions but I need to add bgColor back to mouseover for example.

onmouseover="over(this);View('lsquo');this.style.bgColor=("#cccccc")"
but the above dosn't work? Bellow is my code.

<TD style=bgColor="#ECECED" onmouseover="over(this);View('lsquo')" onmouseout=this.style.bgColor="#ECECED" onclick="ic('&lsquo;')">Ď</TD>

Iím sure it can be done I just canít get the syntax right.
What do you think, Thanks

5:58 pm on Sept 8, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member korkus2000 is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 20, 2002
posts:3732
votes: 0


Any way to call the second function from the first instead of having 2 calls? It should make it cleaner but what you should work. You have a quote problem. In JavaScript quotes need to alternate between double and single quotes. I also don't think you need the paranthasis.

onmouseover="over(this);View('lsquo');this.style.bgColor=("#cccccc")"

should be

onmouseover="over(this);View('lsquo');this.style.bgColor='#cccccc'"

9:00 pm on Sept 9, 2003 (gmt 0)

Junior Member

10+ Year Member

joined:Apr 16, 2003
posts:110
votes: 0


Sorry I forgot I posted this tread anyways it would never work because "over(this)" is calling a js function thatís using DOM to wright a different tag than style so my "this.style.bgColor" has no home any more. If that made any sense.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members