473,378 Members | 1,500 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Can't change border color in ie..

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
3 6191
iam_clint
1,208 Expert 1GB
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
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
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

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

Similar topics

2
by: Paweł Gałecki | last post by:
How can I set a different border color for a table row? All I found in the MSDN for <TR> was: Scripting object.borderColor but it doesn't work for <TR> though it works for <TD>. I would like to...
1
by: Allen | last post by:
I am trying to add an additional photo/hyperlink to the company web site (I didn't create it) without any luck. The mouseover feature 'highlights' pics by swapping them with another pic using this...
3
by: bigoxygen | last post by:
Hi. I have a list that is similar to this: -Evaluation +test +test -Students +test I would like to change the "-" bullet only, but I cannot. My
6
by: J. Nielsen | last post by:
I'm not a programmer and I don't have the time and energy to start learning right now So I need some help. Let's say I have made an HTML Table (consisting of three columns and six rows). In each...
13
by: LRW | last post by:
Having a problem getting a onSubmit function to work, to where it popsup a confirmation depending on which radiobutton is selected. Here's what I have: function checkdel() { if...
7
by: x muzuo | last post by:
Hi guys, I have got a prob of javascript form validation which just doesnt work with my ASP code. Can any one help me out please. Here is the code: {////<<head> <title>IIBO Submit Page</title>...
21
by: MLH | last post by:
A97 procedure to open http://www.arch.com/message/ enter an 800 number, press "Continue", enter a text msg string from a memo field and press "Send" This is a calendaring and appointment A97...
9
by: WRH | last post by:
Hello I am new to asp but I made some Jscript functions which work fine. The functions contain some strings used as a registration key for some apps. It is important that these strings not be...
1
by: Patrick | last post by:
Hello, I want to change the border of an asp-dropdownlist via C#. With ddl.CssClass = "empty"; I want to change the border of the DDL to red, but it works only in Firefox not in Internet...
4
osward
by: osward | last post by:
I had made a table colum sortable and paging the table, following are the code // Display Event List echo "<center>"._EVENTLIST."</center><br>"; $now = Date(Y-m-d); // sort table...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.