need help in fitting code of buttons of website to all browsers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • matan9234
    New Member
    • May 2010
    • 1

    #1

    need help in fitting code of buttons of website to all browsers

    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:

    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>
    thank you!
    Last edited by gits; May 7 '10, 09:36 AM. Reason: added code tags
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5390

    #2
    what do you mean with 'not working'? ... the style of the cursor should be pointer instead of hand ...

    kind regards

    Comment

    Working...