Re: change images



windandwaves said the following on 8/5/2007 2:00 AM:
On Aug 4, 10:09 pm, Randy Webb <HikksNotAtH...@xxxxxxx> wrote:
windandwaves said the following on 8/4/2007 4:51 AM:

Hi Folk and Gurus
This may help some of you (though probably not the gurus), in changing
images:
http://www.sunnysideup.co.nz/j/imageChange/
Any feedback appreciated.
That would have to be about the worse way/example of an image change
script as I have seen in a very long time.

I have changed it...

It is getting better, but, as David has already pointed out there is a lot of feature detection missing from the script. And technically speaking, it is not an image changing script anymore.
If you read a thread entitled "Script for Hiding/Un-Hiding Text On Click " (Which is almost precisely what you are doing), it shows a lot of the tests that can/need to be performed for feature detection in your script, and some of the drawbacks to several different approaches.

<URL: http://groups.google.com/group/comp.lang.javascript/browse_frm/thread/73280b6d885575d5/7af28ae1213148f6?lnk=gst&q=Script+for+Hiding%2FUn-Hiding+Text+On+Click+++&rnum=1#7af28ae1213148f6
>

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
.