...

View Full Version : "Page dissapears", IE as Whodini.



ubik
05-30-2006, 03:18 PM
Hello.

Sorry about the title dont know how to explain this other than:

This code works in firefox but when I try to test it in Internet Explorer my whole page just dissapears except for the body background image, lol. I dont know what could be causing it. Any help is appreciated thanks.

Its a simple link rollover and image changes on the side of the page, onmouseout it changes to the image that belongs to the active page.



onload = function() {
links = document.getElementById('menu').getElementsByTagName('a');
for (i=0;i<links.length;i++) {
links[i].onmouseover=function() {
pic=this.href.split(".");
document.getElementById('pic').src=pic[0]+".jpg";
}
links[i].onmouseout=function() {
orig=document.getElementById('active').href.split(".");
document.getElementById('pic').src=orig[0]+".jpg";
}
}
}



EDIT: oh ok nevermind, I found the problem. IE was buggy cause I named a variable the same as an ID i was calling in the next line "pic".



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum