javascript prob

From: Date: Sun, 22 Oct 2000 09:24:36 +0000
Subject: javascript prob
Groups: php.general 
Request: Send a blank email to php-general+get-21628@lists.php.net to get a copy of this message
How do I reference an image which is sitting in a layer in JavaScript. I am trying to do rollovers. Have them working great when outside of a layer, but when they get in layers, they don't work. Javascript Console in NN says not an object my code is below: function imgOn(imgName) if (document.images) if (current == imgName) document[imgName].src = eval(imgName + "off.src"); } else document[imgName].src = eval(imgName + "on.src"); } } } function imgOff(imgName) if (document.images) if (current == imgName) document[imgName].src = eval(imgName + "on.src"); } else document[imgName].src = eval(imgName + "off.src"); } } } thanks (sorry but I didn't know where else to ask this!!)

« previous php.general (#21628) next »