Jump to content

Javascript error..


haku87

Recommended Posts

Well! the problem is with the line:-

 

document.getElementById(cid).style.display="block"

 

The issue is that the variable cid is having some value(say the value is xyz), then the html should contain an id corresponding to xyz like this:-

 

<span id="xyz"></span>

or

<div id="xyz"></div>

 

Try putting an alert before the line No. 136 and see what value the cid variable contains and whether that id is defined in the html

Link to comment
Share on other sites

You mean this?

Yes, it has.

 

<li> <a href="index.php" onMouseover="expandcontent('menu0', this)">  About Us </a></li>

 

<div id="menu0" class="tabcontent style13">

<span class="style14">|</span> <a href="index.php?content=aim ">Aim</a>

<span class="style14">|</span> <a href="index.php?content=mission ">Mission</a>

<span class="style14">|</span> <a href="index.php?content=philosophy ">Philosophy</a>

<span class="style14">|</span> <a href="index.php?content=testimonials ">Testimonials</a>

<span class="style14">|</span>

</div>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.