SWC76801
11-26-2005, 06:42 PM
I'm using the code for a Random Image Link Script- By JavaScript Kit(http://www.javascriptkit.com). Even thought I'm a novice with JavaScript, I have been able to implement the code without any problems. I'm impressed with how well it works.
I want to have the new link open in a new window. To do this I've tried to add the target="_blank" attribute to the code, but have totally failed with all of my attempts.. I think the appropriate line of code is:
document.write('<a href='+'"'+imagelinks[ry]+'"'+'><img src="'+myimages[ry]+'" border=0></a>')
I would also like to add an alt tag to the link -- something like "Click Here For More Information", but haven't attempted to make this addition until I get the new window tag to work.
I would appreciate it very much if someone could show me what I'm overlooking with this.
Thanks in advance for your help!
I want to have the new link open in a new window. To do this I've tried to add the target="_blank" attribute to the code, but have totally failed with all of my attempts.. I think the appropriate line of code is:
document.write('<a href='+'"'+imagelinks[ry]+'"'+'><img src="'+myimages[ry]+'" border=0></a>')
I would also like to add an alt tag to the link -- something like "Click Here For More Information", but haven't attempted to make this addition until I get the new window tag to work.
I would appreciate it very much if someone could show me what I'm overlooking with this.
Thanks in advance for your help!