Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Hacks and Modifications

Post Reply
 
Thread Tools
  #1  
Old 07-06-2007, 10:18 AM
radar71 Offline
pp regular
 
Join Date: Feb 2006
Posts: 35
modification on simple vision template

Hi, on my blog I'm using the simple vision template with pixel post 1.6.
I would like to add – like in the simple template – the possibility to change the background color of the page (white. gray, black)
Can you suggest me a way to do it. I have only to work on the css?
thank
Reply With Quote
  #2  
Old 07-06-2007, 12:36 PM
dakwegmo's Avatar
dakwegmo+ Offline
Team Pixelpost
 
Join Date: Jul 2005
Location: West of Between
Posts: 689
Copy the /scripts/styleswitcher.js from the simple template into your template/scripts/ directory. Then reference the script in your template
HTML Code:
<script type="text/javascript" src="templates/simple/scripts/styleswitcher.js"></script>
Add your primary and alternate style sheets just like the simple template. (I added another alternate style sheet below so you can see how to do multiple alternate styles.)
HTML Code:
<link rel="stylesheet" type="text/css" href="templates/simple/styles/light.css" title="light" />
<link rel="alternate stylesheet" type="text/css" href="templates/simple/styles/dark.css" title="dark" />
<link rel="alternate stylesheet" type="text/css" href="templates/simple/styles/blue.css" title="blue" />
Then copy the code for the JavaScript events into the body of your template.
HTML Code:
<a href="#" onclick="setActiveStyleSheet('light'); return false;">Light</a> 
<a href="#" onclick="setActiveStyleSheet('dark'); return false;">Dark</a>
<a href="#" onclick="setActiveStyleSheet('blue'); return false;">Blue</a>
You can add as many styles as you like using this method. Just make sure you give each lined style sheet a name, and reference the same name in the javascript link.
__________________
My Photoblog
If you find my help useful please consider feeding the PixelPost Kitty
If you're short on cash just feed my ego
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 07:34 AM.

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