Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 348527
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T11:22:22+00:00 2026-05-12T11:22:22+00:00

function menuhover(id,state){ if(id==home){ if(state==over){ document.getElementById(id).src=pages/styles/images/home1hover.png; } else if(state==out){ document.getElementById(id).src=pages/styles/images/home1.png; } } else if(id==news){ if(state==over){

  • 0

function menuhover(id,state){
    if(id=="home"){
        if(state=="over"){
            document.getElementById(id).src="pages/styles/images/home1hover.png";
        } else if(state=="out"){
            document.getElementById(id).src="pages/styles/images/home1.png";
        }
    } else if(id=="news"){
        if(state=="over"){
            document.getElementById(id).src="pages/styles/images/news2hover.png";
        } else if(state=="out"){
            document.getElementById(id).src="pages/styles/images/news2.png";
        }
    } else if(id=="register"){
        if(state=="over"){
            document.getElementById(id).src="pages/styles/images/register3hover.png";
        } else if(state=="out"){
            document.getElementById(id).src="pages/styles/images/register3.png";
        }
    } else if(id=="contrib"){
        if(state=="over"){
            document.getElementById(id).src="pages/styles/images/contributor4hover.png";
        } else if(state=="out"){
            document.getElementById(id).src="pages/styles/images/contributor4.png";
        }
    } else if(id=="login"){
        if(state=="over"){
            document.getElementById(id).src="pages/styles/images/login5hover.png";
        } else if(state=="out"){
            document.getElementById(id).src="pages/styles/images/login5.png";
        }
    }
}

it is referenced in

<div class="menu">
    <img class="banner" src="pages/styles/images/banner.png" border="0"/>
    <p class="link"><a href="http://www.realmsofruin.co.cc"><img id="home" src="pages/styles/images/home1.png" border="0" onmouseover="menuhover(home,over)" onmouseout="menuhover(home,out)"/></a></p>
    <p class="link"><a href=""><img id="news" src="pages/styles/images/news2.png" border="0" onmouseover="menuhover(news,over)" onmouseout="menuhover(news,out)"/></a></p>
    <p class="link"><a href=""><img id="register" src="pages/styles/images/register3.png" border="0" onmouseover="menuhover(register,over)" onmouseout="menuhover(register,out)"/></a></p>
    <p class="link"><a link=""><img id="contrib" src="pages/styles/images/contributor4.png" border="0" onmouseover="menuhover(contrib,over)" onmouseout="menuhover(contrib,out)"/></a></p>
    <p class="link"><a link=""><img id="login" src="pages/styles/images/login5.png" border="0" onmouseover="menuhover(login,over)" onmouseout="menuhover(login,out)"/></a></p>
</div>

and the error console tells me this

over is not defined
out is not defined..

how am i supposed to define them??

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T11:22:23+00:00Added an answer on May 12, 2026 at 11:22 am

    You just need to put quotes around your variables that you are passing:

    onmouseover="menuhover('home', 'over')"
    

    without them, it’s looking for a variable called home or over which doesn’t exist.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

function ge(id){ this.id=id; this.d=document; this.w=window; return document.getElementById(id); } ge.prototype={ set_in:function(value){ this.innerHTML=value; }, getIn:function(){ return
function getUsername() { var userName = document.form.screen_name.value; document.getElementById(display).innerHTML = userName; var apiName = https://api.twitter.com/1/users/lookup.json?screen_name=
function ExChgClsName(Obj,NameA,NameB){ var Obj=document.getElementById(Obj)?document.getElementById(Obj):Obj; Obj.className=Obj.className==NameA?NameB:NameA; } <a href=javascript:showMenu(2);> i am a newbie of the
function main() { Hello(); } function Hello() { // How do you find out
What is wrong in this code? function FloatMenu() { var scrollAmount = $(document).scrollTop(); var
In master page Script: $(.RightMenu).click(function(){ $(.FlashMenu).css('background-image','url(icon/PersonalPage/blueFlash30.png)'); $('.RightMenu').css('background-image','url(icon/PersonalPage/Menu.png)'); $(this).css('background-image','url(icon/PersonalPage/MenuActive.png)'); $(this).css('background-repeat','repeat-x'); $(this).find(>:first-child).css('background-image','url(icon/PersonalPage/greenflash30.png)'); $(this).find(>:first-child).css('background-repeat','no-repeat'); }); $(.RightMenu).mouseover(function(){ $('.RightMenu').css('background-image','url(icon/PersonalPage/Menu.png)');
I have the following code: $(#submenuSolutions).mouseleave(function () { $(.submenuRightCurrent).hide(); $(.submenuRightCurrent).removeClass(submenuRightCurrent); $(#prasentRight).addClass(submenuRightCurrent); $(#prasentRight).addClass(submenuRightCurrent).stop(true,true).show(); $(.menuHover).removeClass(menuHover); $(this).stop(true,true).hide();
function getLink($sa){ if($sa=='1'){ $sa = 'qp_bbl'; } else { $sa = 'qp_sbl'; } return
function toggleLinkSelection(link){ if($(link).css('border-top-color') == 'red'){ $(link).css({'border-top-color': 'transparent'}); } else { $(div[id$='OptionsLink']).css({'border-top-color': 'transparent'}); $(link).css({'border-top-color': 'red'});
function moveto(step1, step2, step3) { var w = $(document).width(); var h = $(document).height(); $('#full').animate({

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.