hi,
I need help in fitting code of buttons of website to all browsers (right now the code works only for explorer), can you tell me what i need to add to the code for the option of chrome/fire fox users enter my website ?
this the code of the buttons:
thank you!
I need help in fitting code of buttons of website to all browsers (right now the code works only for explorer), can you tell me what i need to add to the code for the option of chrome/fire fox users enter my website ?
this the code of the buttons:
Code:
<PUBLIC:ATTACH EVENT="onmouseover" ONEVENT="BtnOver()" />
<PUBLIC:ATTACH EVENT="onmouseout" ONEVENT="BtnOut()" />
<PUBLIC:ATTACH EVENT="onclick" ONEVENT="BtnClick()" />
<PUBLIC:ATTACH EVENT="oncontentready" ONEVENT="start();" />
<PUBLIC:PROPERTY NAME="child" />
<SCRIPT LANGUAGE="JScript">
var object_not_done = true;
function start(){
object_not_done = false;
}
function BtnOver(){
if(object_not_done) return;
this.style.cursor = 'hand';
this.src = this.src.replace('.gif','-over.gif');
}
function BtnOut(){
if(object_not_done) return;
this.style.cursor = 'default';
this.src = this.src.replace('-over','');
}
function BtnClick(){
if ( this.name == "contactus" || this.name == "ournetwork" || this.name == "jobs" ) {
window.location = "http://www.iimba.org.il/" + this.name + ".asp";
} else {
window.location = "http://www.iimba.org.il/" + this.name + ".asp";
}
}
</SCRIPT>
Comment