Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Template design and Front-End Code

Post Reply
 
Thread Tools
  #1  
Old 01-20-2008, 01:04 AM
fredxeric's Avatar
fredxeric Offline
pixelpost guru
 
Join Date: Sep 2006
Location: Montréal, Québec, Canada
Posts: 407
Send a message via AIM to fredxeric Send a message via MSN to fredxeric
styleswitcher question

I am trying to have an other css files for global settings but cannot be load when using the styleswitcher.js script.

Is there a hack or modification with the script itself that can be done to use an other css file for global settings...

Thanks
Reply With Quote
  #2  
Old 01-20-2008, 08:53 AM
austriaka's Avatar
austriaka+ Offline
Team Pixelpost
 
Join Date: Nov 2006
Location: Germany
Posts: 1,175
Send a message via ICQ to austriaka Send a message via AIM to austriaka
the alternate one should have the "alternate" attribute, then the other one is the default one. Default should be placed before alternate line
__________________
Uh!log Photoblog
My Addons
Reply With Quote
  #3  
Old 01-20-2008, 11:59 AM
fredxeric's Avatar
fredxeric Offline
pixelpost guru
 
Join Date: Sep 2006
Location: Montréal, Québec, Canada
Posts: 407
Send a message via AIM to fredxeric Send a message via MSN to fredxeric
Quote:
Originally Posted by austriaka View Post
the alternate one should have the "alternate" attribute, then the other one is the default one. Default should be placed before alternate line

ok, that I know

what I mean is:

3 css files, on that will work with both style switcher

ex:

no styleswitcher
css_no1 for globale not affected by switching action

with style switcher
css_no2light switchable for light template
css_no2dark switchable for dark template


Hope you understand now...
Reply With Quote
  #4  
Old 01-20-2008, 12:05 PM
austriaka's Avatar
austriaka+ Offline
Team Pixelpost
 
Join Date: Nov 2006
Location: Germany
Posts: 1,175
Send a message via ICQ to austriaka Send a message via AIM to austriaka
As far as I understand, you'll have to set the css_no1 as default and the two others as alternates. But as soon as one of the two switchables is chosen, it is saved in a cookie and will be called automatically when loading the page.

So you could either use the css_no1 as a third switchable style or get rid of the cookie
__________________
Uh!log Photoblog
My Addons
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 09:17 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs