PDA

View Full Version : Pop-it menu | Link to CSS themes



Master-T
03-05-2007, 02:39 AM
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.

Master-T
03-06-2007, 02:49 PM
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.

Master-T
03-26-2007, 03:15 PM
Bump.

thetestingsite
03-26-2007, 03:18 PM
Try this:



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.

Master-T
03-26-2007, 05:33 PM
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.

thetestingsite
03-27-2007, 02:30 AM
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.

Master-T
03-28-2007, 06:14 PM
Thanks, all I need to do now is make the "more" menu background change for each style.