[thelist] Re: javascript to toggle through several images

Michael Harrington mike0351 at bellsouth.net
Wed Aug 11 21:05:16 CDT 2004


Look at http://www.hotscripts.com/cgi-bin/search.cgi?bool=AND&query=slideshow&catid=26

Also in your favorite search engine search on "javascript slideshow" . There are slideshows using dHTML. Search on "dHTML Slideshow"
.

> Date: Wed, 11 Aug 2004 17:42:02 +0100
> From: Adrian Simmons <adrinux at ntlworld.com>
> To: "thelist at lists.evolt.org" <thelist at lists.evolt.org>
> Subject: [thelist] javascript to toggle through several images
> Message: 12
>
> hello evolters,
>
> I'm wondering if someone can stop javascript from making my head explode.
>
> I have a site with visual illusions, currently in development, and some
> of the illusions have several states that the visitor can view
> slide-show style by clicking on them.
> This works nicely with flash installed:
> http://opprints.co.uk/contours-vase.php
>
> But I'm having problems with the javascript version I send to browsers
> without flash. Switching between two images is easy with toggle:
>
> var imgstate = (toggle)?'off':'on';
>
> And looping through an array for an animated slide-show is easy.
>
> But how would I go about looping through an array one image at a time, a
> mouse click required to move on to the next image each time?
>
> I just can't grasp what to do, and can't seem to find any examples online.
>
> --
> adrinux (aka Adrian Simmons)
> e-mail <mailto:adrinux at ntlworld.com>
> AOL or Yahoo Messenger ID: perlucida
> Microsoft Messenger ID: adrian at perlucida.com
> blog <http://adrinux.perlucida.com>
>



More information about the thelist mailing list