Page is a not externally linkable
lokem - 8:28 am on Nov 5, 2009 (gmt 0)
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. I can't tell how much I would appreciate your help on this one :) The js: The html:
Hi all!
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.
function setVisible(obj)
{
obj = document.getElementById(obj);
obj.style.visibility = (obj.style.visibility == 'visible') ? 'hidden' : 'visible';
}
<a href="#" onFocus="javascript:setVisible('cssclass1',true)" onBlur="javascript:setVisible('cssclass1')">
<img src="img.png" border="0" class="shelf_prod">
</a>