Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Feb 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

  • #2
    New to the CF scene
    Join Date
    Feb 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    No ideas?


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •