Forum Moderators: open

Message Too Old, No Replies

Getting rid of picture border in FrontPage

         

inarbeth

7:18 pm on Oct 5, 2003 (gmt 0)

10+ Year Member



I have a picture on my page that changes depending on the time of day: www.example.com.
The problem is that a green border appears round the picture. How do I get rid of it? I have looked at all the Options, Page Options etc but cannot see what to change.

The code for the image to change is:

<SCRIPT LANGUAGE = 'JavaScript'><!--
var date = new Date();

var time = date.getHours();

if (time<12) {
document.write("<IMG SRC='http://www.example.com/Clare2003/WroxFM019_small.JPG'>")
}else if (time<16) {
document.write("<IMG SRC='http://www.example.com/Clare2003/Ezio001_small.JPG'>")
}else if (time<20) {
document.write("<IMG SRC='http://www.example.com/Clare2003/Osibissa001_small.JPG'>")
}else {
document.write("<IMG SRC='http://www.example.com/Clare2003/Showaddywaddy010_small.JPG'>");
}
//--></SCRIPT>

I expect I need to place img border ="0" somewhere but cannot figure out where. If I place it within the script I get error messages. I expect the answer is easy but I'm stuck.

[edited by: heini at 8:58 pm (utc) on Oct. 5, 2003]
[edit reason] Please don't use urls, thanks. [/edit]

macrost

7:29 pm on Oct 5, 2003 (gmt 0)

10+ Year Member



Are the users able to click on the image? I would think that you wouldn't get any erros if in your img tag:
<IMG SRC='http://www.example.com/Clare2003/WroxFM019_small.JPG' border='0'>

like so.
Try that...

Mac

[edited by: heini at 8:59 pm (utc) on Oct. 5, 2003]

inarbeth

7:42 pm on Oct 5, 2003 (gmt 0)

10+ Year Member



Thanks, that does it :-)