By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,238 Members | 1,152 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,238 IT Pros & Developers. It's quick & easy.

Can't change border color in ie..

P: 3
Could use some help here - first time building a website..I want the script to change the border color - it works in firefox, but not ie (i tried ie 6 and 7) - I can't figure out what i am supposed to do differently for ie

The html tag:
<td class="pup_pic" id="lit1_pic1"><a onmouseover="StatMessage (2);" onmouseout="StatMessage (1);" onclick="OpenHiRes ('male-1.jpg','Male-1','test');" ><img src="graphics/litters/test/male-1.jpg" alt="Male-1 picture" width="80" height="80" class="piclink"/></a></td>

The script:
for (c = 1; c < 9; c++) {pic[c] = document.getElementById("lit"+lit+"_pic"+c);}
pic[1].style.borderColor = "#FF9999";

Again, works in firefox.. I'm stumped
Thanks!
Joe
Jul 17 '06 #1
Share this Question
Share on Google+
3 Replies


iam_clint
Expert 100+
P: 1,208
Need more information what border is it changing i don't see one here and when is it supposed to be changing it.
Jul 17 '06 #2

P: 3
Need more information what border is it changing i don't see one here and when is it supposed to be changing it.
It is changing the border color for that cell - (id="lit1_pic1) It changes it after checking an array to see if it should change and if so what color it should be -
if (lit_1[1] != "") {
i = lit_1[1];
x = i.substring(0);
if (x == "M" || "m") {pic[1].style.color = "#3399FF";}
else {pic[1].style.borderColor = "#FF9999";}
}
Jul 17 '06 #3

P: 3
I figured it out - when i was trying different things, i forgot to change the first color option: if (x == "M" || "m") {pic[1].style.color = "#3399FF";}
Aparently FF will change the border color with this even though it should be borderColor
Thanks!
Jul 18 '06 #4

Post your reply

Sign in to post your reply or Sign up for a free account.