i have made two scripts so far, neither work in mozilla/netscape6+. can anyone tell me why the following script doesnt work in mozilla/netscape6+ ? is there a good, free debugger for mozilla/netscape6+, the javascript console in mozilla doesnt seem to work, or else there are no technical errors in this script
function Addevents( ) {
document.getElementById( 'buyers' ).addEventListener( 'mouseover', new Function( 'Menudropdown(\'buyers\');' ), false ) ;
document.getElementById( 'sellers' ).addEventListener( 'mouseover', new Function( 'Menudropdown(\'sellers\');' ), false ) ;
document.getElementById( 'buyers' ).addEventListener( 'mouseout', new Function( 'Menupullup(\'buyers\');' ), false ) ;
document.getElementById( 'sellers' ).addEventListener( 'mouseout', new Function( 'Menupullup(\'sellers\');' ), false ) ;
}
function Attachevents( ) {
document.getElementById( 'buyers' ).attachEvent( 'onmouseover', new Function( 'Menudropdown(\'buyers\');' ) ) ;
document.getElementById( 'sellers' ).attachEvent( 'onmouseover', new Function( 'Menudropdown(\'sellers\');' ) ) ;
document.getElementById( 'buyers' ).attachEvent( 'onmouseout', new Function( 'Menupullup(\'buyers\');' ) ) ;
document.getElementById( 'sellers' ).attachEvent( 'onmouseout', new Function( 'Menupullup(\'sellers\');' ) ) ;
}
function Menudropdown( buysell ) {
if ( buysell === 'buyers' ) {
document.getElementById( 'buyerslinks' ).style.display = 'block' ;
Menupullup( 'buyersv' ) ;
}
else if ( buysell === 'sellers' ) {
document.getElementById( 'sellerslinks' ).style.display = 'block' ;
Menupullup( 'sellersv' ) ;
}
}
function Menupullup( buysell ) {
if ( buysell === 'buyers' ) {
document.getElementById( 'buyerslinks' ).style.display = 'none' ;
Menupullup( 'buyersv' ) ;
}
else if ( buysell === 'sellers' ) {
document.getElementById( 'sellerslinks' ).style.display = 'none' ;
Menupullup( 'sellersv' ) ;
}
}
// ------------------------------------
// initialisation
if ( document.addEventListener ) {
window.addEventListener( 'load', Addevents, false ) ;
}
else if ( document.attachEvent ) {
window.attachEvent( 'onload', Attachevents ) ;
}
function Addevents( ) {
document.getElementById( 'buyers' ).addEventListener( 'mouseover', new Function( 'Menudropdown(\'buyers\');' ), false ) ;
document.getElementById( 'sellers' ).addEventListener( 'mouseover', new Function( 'Menudropdown(\'sellers\');' ), false ) ;
document.getElementById( 'buyers' ).addEventListener( 'mouseout', new Function( 'Menupullup(\'buyers\');' ), false ) ;
document.getElementById( 'sellers' ).addEventListener( 'mouseout', new Function( 'Menupullup(\'sellers\');' ), false ) ;
}
function Attachevents( ) {
document.getElementById( 'buyers' ).attachEvent( 'onmouseover', new Function( 'Menudropdown(\'buyers\');' ) ) ;
document.getElementById( 'sellers' ).attachEvent( 'onmouseover', new Function( 'Menudropdown(\'sellers\');' ) ) ;
document.getElementById( 'buyers' ).attachEvent( 'onmouseout', new Function( 'Menupullup(\'buyers\');' ) ) ;
document.getElementById( 'sellers' ).attachEvent( 'onmouseout', new Function( 'Menupullup(\'sellers\');' ) ) ;
}
function Menudropdown( buysell ) {
if ( buysell === 'buyers' ) {
document.getElementById( 'buyerslinks' ).style.display = 'block' ;
Menupullup( 'buyersv' ) ;
}
else if ( buysell === 'sellers' ) {
document.getElementById( 'sellerslinks' ).style.display = 'block' ;
Menupullup( 'sellersv' ) ;
}
}
function Menupullup( buysell ) {
if ( buysell === 'buyers' ) {
document.getElementById( 'buyerslinks' ).style.display = 'none' ;
Menupullup( 'buyersv' ) ;
}
else if ( buysell === 'sellers' ) {
document.getElementById( 'sellerslinks' ).style.display = 'none' ;
Menupullup( 'sellersv' ) ;
}
}
// ------------------------------------
// initialisation
if ( document.addEventListener ) {
window.addEventListener( 'load', Addevents, false ) ;
}
else if ( document.attachEvent ) {
window.attachEvent( 'onload', Attachevents ) ;
}