Results 1 to 7 of 7

Thread: Pop-it menu | Link to CSS themes

  1. #1
    Join Date
    Mar 2007
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Pop-it menu | Link to CSS themes

    Pop-it menu

    http://www.dynamicdrive.com/dynamicindex1/popit.htm

    Hey

    I was just wondering if it would be possible to use this menu to change my CSS themes.

    I've tried the following and it wont work,

    Snippet of Pop-it menu:

    linkset[1]='<a href="vista.css" onClick="setActiveStyleSheet('vista'); return false;">vista</a>'
    linkset[1]+='<a href="#">link</a>'
    linkset[1]+='<a href="#">link</a>'
    linkset[1]+='<a href="#">link</a>'

    Note: The CSS themes I have, already work but not when I put the links to them in the menu.

    Thanks.

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

    Default

    Here's a link to the test page: http://pc-uk.110mb.com/index_test_themes.php

    When I add linkset[1]='<a href="vista.css" onClick="setActiveStyleSheet('vista'); return false;">vista</a>' to the script, the menu wont show at all.

    There must be a solution to this.

  3. #3
    Join Date
    Mar 2007
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Bump.

  4. #4
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Try this:

    Code:
    linkset[1]='<a href="vista.css" onClick="setActiveStyleSheet(\'vista\'); return false;">vista</a>'
    Notice how the single quotes are escaped with the backslashes.
    Hope this helps.

    EDIT: Also, sorry for the late reply, I didn't even see this thread until just now.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  5. #5
    Join Date
    Mar 2007
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks alot, it's working now. http://pc-uk.110mb.com/index.php

    Works with IE and FF, if anyone has a browser that it don't work with then let me know.

    Thanks.

  6. #6
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Nice background image (for the "More" menu), and you have some nice header images on the site as well. Anyways, glad to see it is working for you.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  7. #7
    Join Date
    Mar 2007
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks, all I need to do now is make the "more" menu background change for each style.

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
  •