Click to See Complete Forum and Search --> : Image display


dcjones
08-08-2003, 12:03 PM
Hi all,

I will start by stating that I am not that good at javascript so please be kind.

I am running the following script:

In the head section I have.
<script language="JavaScript">
<!--
function popUp(url){
window.open(url,"pop","width=525,height=400,toolbars=0,scrollbars=1")
}
//-->

In the body section I have.

<script language = "JavaScript">
<!--
document.write("<a href=\"javascript:popUp('sendpage/friend.php?id=" +document.URL);
document.write("&js=on');\"><img src=images/send_a_friend_up.gif></a></p>");
//-->
</script>

The script run OK but when I load the page into the browser
the image has a blue box around it. I can understand why, I think becuase its a link.

Question: How do I display the image without the blue box

If you could help, please

Keep safe and well

Regards

Dereck

Exuro
08-08-2003, 12:34 PM
Try this:


<script language = "JavaScript">
<!--
document.write("<a href=\"javascript:popUp('sendpage/friend.php?id=" +document.URL);
document.write("&js=on');\"><img src=\"images/send_a_friend_up.gif\" border=\"0\"></a></p>");
//-->
</script>

dcjones
08-08-2003, 01:56 PM
Hi, Exuro


Your a star, that done the trick.

Many thanks

Keep safe and well

Regards

Dereck