>So you want to change all 5 when you click on any of the 5?
Yes.
>You can remove the "this" reference in your calls.
Ok.
Thank you. This forum is amazing.
Thank you.
I am looking to change all the images in one click.
different sources for each image.
this works:
<script type="text/javascript">
function changeIt()
{
var x = document.example.src.split("/");
var t = x.length-1;
var y = x[t];
if (y=='jj.gif') {...
I found javascript to toggle an image between 2 sources:
http://www.toknowmore.net/e/1/javascript/change-image-onclick.php
I've got a page with 5 images I'd like to toggle.
I've been trying to edit the javascript so it can handle 5 images.
I haven't gotten far.
Is there a simpler way to do...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.