Results 1 to 9 of 9
Jan 30, 2008, 16:16 #1
- Join Date
- Jan 2008
- 0 Post(s)
- 0 Thread(s)
replacing an ID for IE compatibility
The navbar on a site I'm working on is not displaying correctly in IE 7. It works fine in Firefox. Here is what I want to do:
- detect the browser
- if it's IE 7. replace the style div ID (that works in FF) with the revised div ID(that will works in IE by changing the padding so the nav element, in this case, an image, doesn't break/wrap to a new line).
Here is what I have tried, but doesn't work. I may be using the innerHTML property wrong or just plainly don't know what I'm doing, but don't kill me ... I'm still learning. I looked into using the .replace method, but that seems to only replace words in a string.
<body id="ohchannel" onload="change_Id4IE()">