Hi, I have a schedule updater that is running perfectly in firefox, but slowly in IE7 (and probably IE6 as well). You can see the script in action at:
http://www.jobvid.com/CustomizeNewSchedule.php
Any help would be greatly appreciated! The code is below...
Thanks,
Dave
<script type="text/javascript">
function changecolor(Id,ctrlhide){
var current = document.getElementById(ctrlhide).value;
if (current == '#7CF67F'){
document.getElementById(Id).style.backgroundColor = '#E7E401';
document.getElementById(ctrlhide).value = '#E7E401';
var stopscript = 1;
}
if (current == '#E7E401' & stopscript != 1){
document.getElementById(Id).style.backgroundColor = '#0067F2';
document.getElementById(ctrlhide).value = '#0067F2';
var stopscript = 1;
}
if (current == '#0067F2' & stopscript != 1){
document.getElementById(Id).style.backgroundColor = '#C0C0C0';
document.getElementById(ctrlhide).value = '#C0C0C0';
var stopscript = 1;
}
if (current == '#C0C0C0' & stopscript != 1){
document.getElementById(Id).style.backgroundColor = '#7CF67F';
document.getElementById(ctrlhide).value = '#7CF67F';
}
}
</script>