Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-19-2013, 07:18 PM   PM User | #1
agiannop
New to the CF scene

 
Join Date: Feb 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
agiannop is an unknown quantity at this point
link to automatically expanded treemenu text disables links in the text

I found this topic: http://stackoverflow.com/questions/8...ption-expanded and used this script in my website:

Code:
$(window).load(function(){
   $('.expand_text').each(function() {
      $(this).css("display", "none");
   });
   $('.treenode').click(function() {
      $(this).next('.expand_text').slideToggle("fast")
      return false;
   });
   (function(hash){
      if (hash !== undefined && hash.substring(0,1) === "#") {
         $(hash).slideToggle("fast");
      }
   })(window.location.hash);
});
So now I can provide a link to a particular page which opens with one of the menu items automatically expanded. For example: http://drgiannopoulos.com/estheticdentistry.html#bleach It is in Greek, but its obvious that you can land on the page with the first menu item expanded. However, if you scroll down a bit you'll notice two three lettered underlined words (sorry again its Greek!). These are links and they don't work! You can right click and select "open in a new tab / window" which will work fine, but the simple left click has been rendered inactive. I think this has to do with the above mentioned script and since I am totally new to all this I would like your help. Thanks
agiannop is offline   Reply With Quote
Old 03-02-2013, 09:20 AM   PM User | #2
agiannop
New to the CF scene

 
Join Date: Feb 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
agiannop is an unknown quantity at this point
No ideas?
agiannop is offline   Reply With Quote
Reply

Bookmarks

Tags
expanded menus, javascript, jquery, links

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:43 AM.


Advertisement
Log in to turn off these ads.