Dynadot โ€” .com Transfer

JS - What is wrong here?

Spacemail by SpaceshipSpacemail by Spaceship
Watch

PoorDoggie

Soon to be RICHdoggie!VIP Member
Impact
18
Code:
function menu(what, id){
      name = getElementById(id);
      if(what == "" || !isset(what)){
        alert("Something Wrong");
      }
      elseif(what == "over"){
        name.className = 'menu_over';
        name.style.cursor='pointer';
        name.style.cursor='hand';
        alert("heya babe!");
      }
      elseif(what == "out"){
        name.className = 'menu';
        name.style.cursor='default';
      }
      else{
        alert("Something Wrong");
      }
    }
    
    function click(link){
      location.href = link;
    }

That keeps pulling up errors! :(

What is wrong?

Thanks
Tom
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
.US domains.US domains
What are the errors?
 
0
•••
can't remember, I have changed it now. Thanks though.

For anyone who wants to know - this is the code to do fancy css rollovers:

Code:
<script>
function change(newClass, id) {
    identity=document.getElementById(id);
    identity.className='menu_'+newClass;
}
</script>
<style>
.first{
background: #ffffff;
}
.second{
background: #000000;
}
</style>
<div id="1" class="first" onMouseOver="change(second, 1)">Mouse Over Me</div>
 
0
•••
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
Appraise.net
Spaceship
Domain Recover
CatchDoms
NameMaxi - Your Domain Has Buyers
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back