NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page JS - What is wrong here?

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 08-24-2005, 08:40 AM THREAD STARTER               #1 (permalink)
Soon to be RICHdoggie!
 
PoorDoggie's Avatar
Join Date: Jan 2005
Location: UK
Posts: 2,408
PoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nice
 



JS - What is wrong here?


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!
????: NamePros.com http://www.namepros.com/programming/118154-javascript-what-is-wrong-here.html

What is wrong?

Thanks
Tom
PoorDoggie is offline  
Old 08-24-2005, 10:16 AM   #2 (permalink)
DNOA Member
Join Date: May 2004
Posts: 5,040
mholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant future
 


Autism Marrow Donor Program 9/11/01 :: Never Forget Multiple Sclerosis Adoption Alzheimer's Lou Gehrig's Disease (ALS)
What are the errors?
mholt is offline  
Old 08-24-2005, 12:40 PM THREAD STARTER               #3 (permalink)
Soon to be RICHdoggie!
 
PoorDoggie's Avatar
Join Date: Jan 2005
Location: UK
Posts: 2,408
PoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nice
 



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>
PoorDoggie is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
So what's wrong with hyphens cera Domain Newbies 52 11-04-2004 10:29 PM
Meta-tags wrong? FastIcon.com Marketing Techniques 5 10-27-2004 12:43 PM
is it this WRONG? redhippo Marketing Techniques 13 09-01-2004 07:47 PM

Liquid Web Smart Servers  
All times are GMT -7. The time now is 02:41 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger