Click to See Complete Forum and Search --> : adding script to a graphic (back & forward buttons)
WinterHayley04
11-05-2003, 11:14 AM
Hello...I found a java script for a back button that would move a person one page back in history and I added it to my page to see what I got. I got a grey button with the word back on it and it worked which is great but what I would like to do is add that script to a graphic that I have so the button matches my background set. But I am unsure as to how I would do that.
Any help would be greatly apprieciated!! Thank You!! :)
fredmv
11-05-2003, 11:16 AM
Welcome to the forums.
Could we please see the code you're working with? It would help us in giving you a better answer. :cool:
WinterHayley04
11-05-2003, 11:20 AM
I am sorry...this is the first time I posted anything one here.
The script that I found is: <a href="javascript:history.back(1)">Go Back</a>. Is that what you needed?
fredmv
11-05-2003, 11:29 AM
Hey, everything's fine. I'm just letting you know so next time it will ensure you get a better answer. :D
Yes, that is exactly what I'm looking for. All you'd need to do is this:<a href="#" onclick="history.back(1);"><img src="filename" style="border: 0px;" alt="" /></a>Then, all you need to do is change filename to the filename of the image you want to appear.
Good luck.
WinterHayley04
11-05-2003, 11:57 AM
Thank you so much fredmv....it worked!!
I am very grateful for all your help!!:)
fredmv
11-05-2003, 11:57 AM
You're very welcome. :D