Hello everyone,
I’ve been stuck on this problem all day, sadly to say if there is an easy fix,
I have a drop down menu that, when you highlight an item in it, it’s suppose to make a DIV on the screen highlight red.
When you click it, it’s suppose to open a new window with a html editor in it.
Neither of the two work in IE, but they work flawlessly in firefox.
I am clueles as to why? I’m using IE 6.02900
Here is part of my HTML code for an item in the drop down that makes a DIV highlight
[CODE]
<select name=”LabelEditor”>
<option selected=”selected”>Choose Button to Edit</option>
<option onmouseover=”h_TopButton1();” onmouseout=”h_TopButton1Off();”>Top Menu Button 1</option>
It goes on from there pretty much the same way over and over
Here’s part of the javascript that makes it highlight
[CODE]
function h_TopButton1(){
document.getElementById(‘TopButton1’).style.background = ‘red’
}
function h_TopButton1Off(){
document.getElementById(‘TopButton1’).style.background = ”
}
function h_TopButton2(){
document.getElementById(‘TopButton2’).style.background = ‘red’
}
function h_TopButton2Off(){
document.getElementById(‘TopButton2’).style.background = ”
}
And that goes on from there over and over in pretty much the same fashion
For the pop up menu, this is part of my code
[CODE]
<option
onmouseover=”javascript:ajaxpage(‘MainContent/Button_Content1.txt’, ‘MainContent’);h_Button1();”
onmouseout=”h_Button1Off();”
onclick=”window.open(‘MainContent/E_Button_Content1.php’,’mywindow’,’width=590,height=420′)”>
Content for Button 1</option>
I used the onclick=”window.open etc… command to open a new window.
Again, it works fine in firefox but not IE.
Does anyone know anyways I can fix this to work on both? Or preferably IE for now?
Thanks a ton, I have tried everything and have run out of ideas