Jump to content
php.lv forumi

navigācija, kā šeit


laucinieks

Recommended Posts

var $j = jQuery.noConflict();
$j(document).ready(function() {

   $j('#snav ul li.selected ul').show().addClass('visible');

   //accordion
   $j('#snav h3').click(function(){
  	 if ( $j(this).siblings('ul').is(':visible') ) {
  		 $j(this).siblings('ul').slideUp(400).removeClass('visible');
  	 } else {
  		 // added to close open :visible elements
  		 $j('#snav h3').siblings('ul').slideUp(400).removeClass('visible');
  		 $j('#snav .visible').slideUp(400).removeClass('visible');
  		 $j(this).siblings('ul').slideDown(400).addClass('visible');
  	 }
   });

 

Viņiem bija šāds js skripts, bet pievienojot gan jquery bibliotēku, gan šo visu skriptu - (barco.js), tāpat visi li ir visible no sākuma, un spiežot nekas nenotiek.

Link to comment
Share on other sites

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.   Paste as plain text instead

  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.

Loading...
×
×
  • Create New...