This is a discussion on "picture click" within the JavaScript Forum section. This forum, and the thread "picture click are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
picture click
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
picture click
How can i change this code to where you click on the picture it changes. instead of clicking next. Thanks!
<SCRIPT LANGUAGE="Javascript"><!-- var pictures = new Array ("image1.JPG","image2.JPG","image3.JPG"); var pictureNumber = 0; var totalNumber = pictures.length; function next(){ if (document.images){ if (pictureNumber < totalNumber-1) pictureNumber++ else pictureNumber = 0 document.images.slides.src = pictures[pictureNumber] } } //--></SCRIPT> |
|
|
|
||||
|
Re: picture click
put this code inside the <img> tag of the picture:
|
![]() |
| Tags |
| picture, click |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help with picture upload | Pss | PHP Forum | 2 | Apr 21st, 2008 20:37 |
| A picture gallery | thewebkid | Website Planning | 12 | Nov 19th, 2007 21:02 |
| Add shade to a picture | Fysicus | Web Page Design | 9 | Sep 22nd, 2007 12:20 |
| Picture Association | Ross | Webforumz Cafe | 27 | Sep 13th, 2007 18:31 |
| Random picture survey picture help | Jould | Web Page Design | 6 | Feb 25th, 2004 14:07 |