...

Bordercolor of image, within a script.

PsycoMikeJr
08-06-2003, 03:08 PM
Hello everyone.

I'm what they call a n00b :thumbsup:

Anyway, I have a script to change image when you
hold the cursor over the image. But the problem is
I don't know how to remove the bordercolor.

The Script I'm using:
<SCRIPT language="JavaScript">
<!-- Begin
var preload=new Image();
preload.src="http://javascript.internet.com/img/change-image/surfto.jpg";
function movepic(img_name,img_src) {
document[img_name].src=img_src;
}
// End -->
</SCRIPT>

An image:
<A HREF="band.html" bordercolor="white"
onmouseover="movepic('button0','band2.jpg')"
onmouseout="movepic('button0','band.jpg')">
<IMG NAME="button0" SRC="band.jpg" ALT="The Members"></A>

The site:
http://www.angelfire.com/pro/portroyal/

I would like to have a white border, now it is black.
I would also like to keep it white after you've tried
the link, not that hideous purple color.

Thanks for your time! :)

swmr
08-06-2003, 08:11 PM
Try adding this to the <style... img{border: 0}

or... define the attribute for each <img> element:

<IMG NAME="button3" SRC="pics.jpg" ALT="Pictures" border="0"></A>


note: you should also include <head></head> tags in the document.

PsycoMikeJr
08-06-2003, 10:22 PM
Thank you!

I had tried the border="0"
but placed them the wrong place.

The site looks much better now!

Gracias Amigo!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum