473,387 Members | 1,529 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Show hide menu using JQuery

347 100+
I have a menu that is using the following to show and hide the menu

Expand|Select|Wrap|Line Numbers
  1.       $(document).ready(function(){
  2.  
  3.         // Hide all unordered lists that are descended from the navigation
  4.                 $("#nav ul").hide();
  5.                 $("#artistnav ul").hide();
  6.                 //$("#nav ul").css('visibilty', 'visible');
  7.  
  8.                 jQuery('a').bind('click', function(){
  9.                     // on clicking the link get the parent li then find the first ul you can and display
  10.                     $(this).parents("li:first").find("ul:first").slideToggle(1000);
  11.                     //return false;
  12.                 });
  13.     });
On some ie9 computers it is showing all the buttons in the sections when it loads, i cant figure out how to stop it doing this?

page can be seen here http://www.yaketyyakallmouth.com/pag...asp?id=All#183

not even sure if JQuery can be helped here

thanks

colin
Oct 11 '12 #1
1 2314
acoder
16,027 Expert Mod 8TB
What you can do is have them hidden initially via CSS, not via JavaScript onload as you're currently doing.

If you want to support users without JavaScript enabled (as you should), you can link to and load a new page with the corresponding buttons showing.
Oct 11 '12 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: David | last post by:
Hi everyone, Hoping there are some .js/browser experts out there that can help with this weird problem. I have made a swap div routine and applied the events to menu buttons with a closer...
0
by: kakss | last post by:
I have a grid control that is data-bound to a datatable. What I want to be able to do is set up a context menu, and then whenever the user press right click keyboard key (not using mouse) on a...
0
by: Mr. Bean | last post by:
I tried many ways to enable show/hide layers using javascript, but none worked.. WHen the page postsback the layers hide then shows again. Could someone guide me on the right way, or where I could...
2
by: kiran | last post by:
hi, i have a php script where radio button is defined inside the javascript itself also there is a menu defined inside. there are number of radio buttons but when i click a particular radio...
20
by: Ansuiya | last post by:
Hey frnds plz help me.. Plz read the code below.. This is the css code: p { background-color:#FFFFCC; width:700px; color:#000066; } .comment
2
by: sunsoffun | last post by:
Im trying to hide a menu column using jscript. Its works as required in firefox but ie.. a big no no. Please see the code below.... <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0...
1
by: sunsoffun | last post by:
Im trying to hide a menu column using jscript. Its works as required in firefox but ie.. a big no no. Please see the code below.... <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0...
1
by: quushich | last post by:
I want to be able to stop a paragraph mid-sentence and provide a 'more' link that then disappears when clicked and the rest of the paragraph appears in place. Much like many blogs and social sites...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.