Results 1 to 6 of 6

Thread: Trying to modify a script

  1. #1
    Join Date
    Jun 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Trying to modify a script

    This is the script I am trying to modify

    stylesheet switcher

    What I am trying o do is have it switch not only one set of style sheets but two.

    The first thing I figured I would have to do is have two versions of the script that create 2 deferent cookies for the two separate sets. I was able to make the second script with the new cookie name but now I am stumped on how to make the two scripts pull deferent on deferent sets. So far nothing I have tried worked.

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

    Default

    Just to make sure I understand your question, are you trying to change two seperate .css files on the same page using the script? What interface are you using to let the users choose a new style sheet in both cases (ie: drop down menu, regular text links etc)?

  3. #3
    Join Date
    Jun 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Yes the page uses two CSS pages and I would like for both to have alternate styles that can be switched with this script.

    I use a drop down menu.

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

    Default

    I was just going to ask why not simply combine the two CSS files into one. I assume this isn't feasible in your case? Can you explain what you mean by "Yes the page uses two CSS pages..."

  5. #5
    Join Date
    Jun 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    No using one CSS will not allow what I am trying to do.

  6. #6
    Join Date
    Jun 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Soory for the doable post but its been 3 days and this is now on page 3 so I figured I would bum it to make sure it gets seen. Cause I would really like to know if there is a way to do this.

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
  •