Advanced Search

Results 1 to 2 of 2

Thread: Switch Content - Bookmarks Help

  1. #1
    Join Date
    Mar 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Switch Content - Bookmarks Help

    1) Script Title: Switch Content

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...tchcontent.htm

    3) Describe problem: I'm using this script on a page of presenter bios and the divs are separated alphabetically. The bios contain links to other bios on the page and when I click on them, they do not work. I added this script below to detect the # in incoming urls. The divs expand and the bookmarks work with incoming urls, but I can't figure out how to make it work on the page. I looked at the script for Switch Content II and didn't see a solution. Any ideas?

    <code>
    if(window.location.hash ) {
    webinarBlock.sweepToggle('expand')
    } else {
    webinarBlock.sweepToggle('collapse')
    }
    </code>

  2. #2
    Join Date
    Mar 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Switch Content - Bookmarks Help - Resolved

    I figured it out. Although I prefer an dynamic solution for team members that are not familiar with HTML.

    I created the function :

    function expand() {
    webinarBlock.sweepToggle('expand')
    }


    And inserted onClick in each <a> with a bookmark on the page:

    <a href="#bookmark" onclick="expand()">

Bookmarks

Posting Permissions

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