This is a discussion on "Seeking advice for switching image. =D" within the JavaScript Forum section. This forum, and the thread "Seeking advice for switching image. =D are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Seeking advice for switching image. =D
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Hi,
I am building family website for my grandfather and I am somewhat struggling at the moment on switching images... Once the second picture shows up, I am having trouble when the second image is clicked, the second image is not replaced by the first image...Am I missing something? Please assist hehehe =D
Last edited by c010depunkk; Nov 18th, 2007 at 11:26. Reason: please use [HTML] tags when posting HTML |
|
|
|
#2
|
|||
|
|||
|
Re: Seeking advice for switching image. =D
|
|
#3
|
|||
|
|||
|
Re: Seeking advice for switching image. =D
Do you want the images to toggle between each other when clicked on?
In that case you are missing something. You just have 1 function to turn image 1 into image 2. You need to update your script to alternate the images.
Whatever you want the default image to be, write in the src="..." part of the image tag. Hope this helps, Blake |
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| switching backgound image | pahvi67 | JavaScript Forum | 4 | Jan 16th, 2008 13:27 |
| Seeking Advice for Multi-Language website design | jssaggu | Scripts and Online Services | 0 | Jun 1st, 2007 20:44 |
| Background Image advice | dawg9 | Web Page Design | 12 | Mar 31st, 2007 02:12 |
| 'Sample' image overlay advice needed | Demon Templates | Graphics and 3D | 5 | Mar 9th, 2007 11:49 |
| Seeking Some Advice - Users & Passwords & Intergration | Micky-D | PHP Forum | 2 | Aug 15th, 2006 11:35 |