![]() |
| ||
| Need help with Image Swaping in Javascript Wow, its been awhile since ive posted, but hopefully some of you still remember me :-P well here goes. im desiging a site and i need help with how to make it so when i click one link, not only will it load a new page within an iframe, it will swap a picture on the current page with another one. much help would be greatly appreciated on this! here is the code i have currently for the page (with no script as i had no basis as for where to start) <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" I hope i didnt confuse. what it comes down to is this each one of those area maps links to a new page within an iframe, but i also need them to swap an image that is located on the same page (not in the iframe) so its Clicking Link>Swap Image>load new iframe window somthing like that. I hope someone can help, and it would be much appreciated (will make a note on the site to your help too if it means anything to anyone) |
| ||
| Re: Need help with Image Swaping in Javascript Here you go, I coded this. Hope it is what you want. When you click the llink on the page it links the iframe to google.com and I added an onclick that executes a javascript function that changes the src of the image. <html> |
| ||
| Re: Need help with Image Swaping in Javascript going to test it out first thing tomorrow, thank you very much though for coming up with this, i hope it works. |
| ||
| Re: Need help with Image Swaping in Javascript Quote:
THANK YOU! |
| All times are GMT -4. The time now is 2:42 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC