469,903 Members | 1,664 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,903 developers. It's quick & easy.

Link within Javascript

I'm a javascript novice, but I have adapted an existing script, to move an
image across the a web page. I would like for the moving image to be a
link - by clicking on it would take the viewer to a different web page.
Nothing I've tried has worked. If anyone has time to offer any suggestions,
the url is: http://members.cox.net/parrotlegal/index_hold.htm Thanks very
much for your help. Jenny.
Sep 28 '05 #1
2 1155
You need to write the anchor anywhere the image tag is written. (there
are at least 2 locations )

Eg:
<img src="+rndPic+">
becomes
<a href="blah.html"><img src="+rndPic+"></a>

Sep 28 '05 #2
"nikki" <ka*******@yahoo.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
You need to write the anchor anywhere the image tag is written. (there
are at least 2 locations )

Eg:
<img src="+rndPic+">
becomes
<a href="blah.html"><img src="+rndPic+"></a>


It works! Thank you very much!!
Sep 29 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Mat | last post: by
2 posts views Thread by Dennis M. Marks | last post: by
1 post views Thread by Unregistered | last post: by
1 post views Thread by Aki | last post: by
4 posts views Thread by Jamie Jackson | last post: by
3 posts views Thread by JohnEGee | last post: by
26 posts views Thread by Mica Cooper | last post: by
11 posts views Thread by prophet | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.