Results 1 to 6 of 6

Thread: Switch Content Script

  1. #1
    Join Date
    Nov 2004
    Posts
    27
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Switch Content Script

    Switch Content Script

    I have this script working perfectly in my page. But what I want to know is if there is a way to make the page load with a specific content open? For instance, on the above page, to make it load with the "Site Sponsers" heading expanded? Many thanks for your consideration,

    Mel
    Last edited by ddadmin; 11-30-2004 at 08:56 PM.

  2. #2
    Join Date
    Nov 2004
    Posts
    27
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    anyone, please?

  3. #3
    Join Date
    Aug 2004
    Posts
    10,140
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Hi:
    Actually, this is explained further down on the script page. To make a specific header open from the start, simply add:

    style="display:block"

    For example:

    <div id="sc1" class="switchcontent" style="display:block">
    "
    </div>

  4. #4
    Join Date
    Nov 2004
    Posts
    27
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you. But, maybe I didn't explain it well enough. I only want it to load with this one open if it opened from a certain link. Is there a way to do that?

  5. #5
    Join Date
    Aug 2004
    Posts
    10,140
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Hmmm you'll have to explain a bit more. Do you mean if there's a way to have a specific switch header open by clicking on an arbitrary link on the same page?

  6. #6
    Join Date
    Nov 2004
    Posts
    27
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    On another page, I have a link to the page with the script on it. I am wondering if when the page is accessed through that other page's link, I can specify the page to open with a header already open, but not if it is accessed from anywhere else.

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
  •