Topic: Attaching link Pages that link to <a href="https://ozoneasylum.com/backlink?for=9712" title="Pages that link to Topic: Attaching link" rel="nofollow" >Topic: Attaching link\

 
Author Thread
Gilbert Nolander
Maniac (V) Inmate

From: Washington DC
Insane since: May 2002

IP logged posted posted 12-20-2003 22:07 Edit Quote

I am trying to attach a link to an image I have that moves around the screen based on a script (which I did not write).
I don't really know to much about this stuff, but if anyone knows how I can get this to work, that would be great.
I tired inserting the <a href="blah"></a> tags all over the place and I can't get it to work.
http://www34.brinkster.com/teamearth/trapped.html

Also, please ignore the font tags, thanks.

[This message has been edited by Gilbert Nolander (edited 12-20-2003).]

JKMabry
Maniac (V) Inmate

From: out of a sleepy funk
Insane since: Aug 2000

IP logged posted posted 12-20-2003 23:39 Edit Quote

this works:

code:
if (NS4){
document.write("<LAYER NAME='netscape' LEFT=0 TOP=0><a href='#'><img src="+P.src+"></a></LAYER>");
}
if (NS6){
document.write("<a href='#'><img id='n6' src='"+P.src+"' style='position:absolute;top:0px;left:0px'></a>");
}
if (IE4){
document.write("<div style='position:absolute;top:0px;left:0px'><div style='position:relative'>");
document.write("<a href='#'><img id='explorer' src='"+P.src+"' style='position:absolute;top:0px;left:0px'></a>");
document.write("</div></div>")
}



Jason

Gilbert Nolander
Maniac (V) Inmate

From: Washington DC
Insane since: May 2002

IP logged posted posted 12-22-2003 15:45 Edit Quote

Thanks,
One more thing though...
I tried both border='0' and border="0" and neither one of them gets rid of the border around the image.
Any additional ideas?

[This message has been edited by Gilbert Nolander (edited 12-22-2003).]

HZR
Bipolar (III) Inmate

From: Cold Sweden
Insane since: Jul 2002

IP logged posted posted 12-22-2003 18:34 Edit Quote
quote:
I tried both border='0' and border="0" and neither one of them gets rid of the border around the image.


Yes, they do. You must have done something wrong. But that should be controlled by CSS anyway, use

code:
a img { border: 0; }



Gilbert Nolander
Maniac (V) Inmate

From: Washington DC
Insane since: May 2002

IP logged posted posted 12-22-2003 19:11 Edit Quote

Thanks HZR, that fixed it.
Hopefully it works ok on all the browsers.


.quotes.

[This message has been edited by Gilbert Nolander (edited 12-22-2003).]



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu