Page is a not externally linkable
- WebmasterWorld
-- The Macintosh Webmaster
---- javascript in safari


lokem - 8:28 am on Nov 5, 2009 (gmt 0)


Hi all!

I'm having a really frustrating problem with the simplest of javascript. It's for displaying a hidden <div> as a popup, with the help of css/javascript.
It works just the way I want it in IE, Mozilla and Opera, but when it comes to Safari, it's just a broken link. The cursor changes to the "pointer", but it's not click-able.

I can't tell how much I would appreciate your help on this one :)

The js:

function setVisible(obj)
{
obj = document.getElementById(obj);
obj.style.visibility = (obj.style.visibility == 'visible') ? 'hidden' : 'visible';
}

The html:

<a href="#" onFocus="javascript:setVisible('cssclass1',true)" onBlur="javascript:setVisible('cssclass1')">
<img src="img.png" border="0" class="shelf_prod">
</a>


Thread source:: http://www.webmasterworld.com/macintosh_webmaster/4019492.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com