Click to See Complete Forum and Search --> : Automatic resizing hperlink picture


flambor
05-26-2003, 07:21 AM
On this website (http://homepage.ntlworld.com/michael_naylor/homepagetitle.htm)
there is a javascript that resizes my picture. I'd like to make this a hyperlink like you can with normal pictures but i don't know how. Does anybody have any ideas?

I've also attached the html as a txt doc. if you want to edit it, do so and send it back or attach as a reply

Nevermore
05-26-2003, 08:24 AM
Find the line:

document.write('<img src="'+src+'" alt="'+alt+'" width="'+sw+'" height="'+sh+'" align="'+aln+'">');

And add hyperlink tags. i.e.

[CODE]
document.write('<a href="whatever.htm"><img src="'+src+'" alt="'+alt+'" width="'+sw+'" height="'+sh+'" align="'+aln+'"></a>');

flambor
05-26-2003, 01:49 PM
thank you

Nevermore
05-26-2003, 01:51 PM
Don't mention it.