Forum Moderators: open

Message Too Old, No Replies

Does opera support OnMouseOver on <span> tag?

         

Dr_Snapid

12:30 am on Jan 5, 2004 (gmt 0)

10+ Year Member



I cant seem to get a OnMouseOver to fire on my website when viewed using Opera or Netscape. IE works fine...

It is attached to a span like so....

<DIV style="position: absolute; top:5px; left:185px; width:55px; height:25px; font-size: 15px; font-weight: bold;cursor: pointer"><SPAN onMouseOver="homeover();" onMouseOut="homeover();" onClick="parent.location='thislink.php'">
<font color="#eeeeee" STYLE="cursor: hand">LINK</font></SPAN></DIV>

tedster

8:19 am on Jan 14, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld, Dr_Snapid.

Opera supports CSS hover behavior for <span> elements and that this easiest way I know of to get a cross browser effect here.

DrDoc

4:18 pm on Jan 14, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to Webmaster World!

Let me just ask this -- why don't you use an anchor to create the link?

Dr_Snapid

7:21 am on Jan 15, 2004 (gmt 0)

10+ Year Member



The onmouseover is only used to trigger a shaddow effect behind the link. The link works fine - it's just the shaddow effect which is only working in IE not in Netscape or Opera. From memory, hover doent work well in IE, so I might need to detect browser and place the correct header, something I was hoping to avoid.

tedster

7:57 am on Jan 15, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can combine the hover and onmouseover approaches in the same code - then there's no need for browser sniffing,

Dr_Snapid

8:05 am on Jan 15, 2004 (gmt 0)

10+ Year Member



ahhh... funny how things become clearer when you discuss with others. Seems obvious now. cheers guys