PDA

View Full Version : 2 JS files possibly conflicting



Eclyps19
02-04-2006, 05:44 PM
I'm working on a dating site which has a dynamic javascript menu and on one page a dynamic JS progress bar. For some odd reason, when I add the progress bar, no matter where I place it in code, the menu ends up in the top left corner.

http://www.still-looking.com/new_site/profile/profile_TEST.asp

This is the page that's having the trouble. If you'd like to see the way the menu is supposed to look like, please go here.

http://www.still-looking.com/new_site

If anyone has any suggestions please post. Thank you guys so much!

jscheuer1
02-04-2006, 09:02 PM
Find this line in percent_bar.js:


window.onload=progressBarInit;

Replace it with:


if ( typeof window.addEventListener != "undefined" )
window.addEventListener( "load", progressBarInit, false );
else if ( typeof window.attachEvent != "undefined" )
window.attachEvent( "onload", progressBarInit );
else {
if ( window.onload != null ) {
var oldOnload = window.onload;
window.onload = function ( e ) {
oldOnload( e );
progressBarInit();
};
}
else
window.onload = progressBarInit;
}

Eclyps19
02-06-2006, 01:30 PM
thank you sooo much! =D