Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
This onhover javascript div works with Gecko browsers but doesn't with IE
Old 01-21-2009, 08:27 PM This onhover javascript div works with Gecko browsers but doesn't with IE
Novice Talker

Posts: 8
Trades: 0
I'm no genius at Javascript. I googled a javascript onhover div script for this page:
http://hhgs.net/radiodjpanel/rares/david.php

If you're in firefox it works beautifully. However if you're in Internet Explorer and attempt to hover over the images that should show the div onhover it wont work unless you're hovering over the border of the image.

If anyone could shed some light on the situation I'd sure appreciate it.
macmee is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-21-2009, 08:53 PM Re: This onhover javascript div works with Gecko browsers but doesn't with IE
Decaf's Avatar
Ultra Talker

Posts: 489
Name: Adam
Trades: 0
Use the onMouseOver and onMouseOut attributes.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Decaf is offline
Reply With Quote
View Public Profile Visit Decaf's homepage!
 
Old 01-22-2009, 03:12 PM Re: This onhover javascript div works with Gecko browsers but doesn't with IE
Novice Talker

Posts: 8
Trades: 0
I think I already am:

Code:
<a href="#" onMouseOver="popLayer(1480)" onMouseOut="hideLayer()">
<center><img border="0" src="http://www.hhgs.net/radiodjpanel/uploads/discosignwall.gif"></center></a>
macmee is offline
Reply With Quote
View Public Profile
 
Old 01-22-2009, 03:35 PM Re: This onhover javascript div works with Gecko browsers but doesn't with IE
Insensus's Avatar
Ultra Talker

Posts: 487
Name: Mark Stegeman
Location: Netherlands, Europe
Trades: 0
I suggest you move the onMouseOver and onMouseOut to the img tag instead.
__________________
<?php ($helpfull>0)?$talkupation++ : '';?>
Insensus is offline
Reply With Quote
View Public Profile
 
Old 01-23-2009, 06:04 PM Re: This onhover javascript div works with Gecko browsers but doesn't with IE
Novice Talker

Posts: 8
Trades: 0
Quote:
Originally Posted by Insensus View Post
I suggest you move the onMouseOver and onMouseOut to the img tag instead.
I should have, you're right. But it still doesn't work in internet explorer.
Code:
<img onMouseOver="popLayer(889)" onMouseOut="hideLayer()" border="0" src="http://www.hhgs.net/radiodjpanel/uploads/blueberryicm.gif">

edit: I removed onMouseOut="hideLayer()" and it works, however now of course when you move your cursor away from the image the box doesn't go away.

Last edited by macmee; 01-23-2009 at 06:07 PM..
macmee is offline
Reply With Quote
View Public Profile
 
Old 01-23-2009, 06:09 PM Re: This onhover javascript div works with Gecko browsers but doesn't with IE
Insensus's Avatar
Ultra Talker

Posts: 487
Name: Mark Stegeman
Location: Netherlands, Europe
Trades: 0
Strange, because it does work in my Internet Explorer.
__________________
<?php ($helpfull>0)?$talkupation++ : '';?>
Insensus is offline
Reply With Quote
View Public Profile
 
Old 01-23-2009, 06:32 PM Re: This onhover javascript div works with Gecko browsers but doesn't with IE
Novice Talker

Posts: 8
Trades: 0
Quote:
Originally Posted by Insensus View Post
Strange, because it does work in my Internet Explorer.
Hmm, perhaps taking onmouseout did the trick then.

Thanks for your help everybody!
macmee is offline
Reply With Quote
View Public Profile
 
Old 01-25-2009, 09:54 AM Re: This onhover javascript div works with Gecko browsers but doesn't with IE
Sleeping Troll's Avatar
Ultra Talker

Posts: 351
Name: Butch Begy
Trades: 0
You should be using css for this, note: in IE hover only triggers on anchor tags.

Last edited by Sleeping Troll; 01-25-2009 at 09:56 AM..
Sleeping Troll is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to This onhover javascript div works with Gecko browsers but doesn't with IE
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.26708 seconds with 12 queries