Style Switcher
Current time: 21-05-2012, 08:46 PM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Style switcher
15-11-2007, 01:04 PM (This post was last modified: 15-11-2007 01:06 PM by ivgeo.)
Post: #1
Style switcher
Style switcher - the one from ANSCD experimental

Lots of people are asking me how this works so here it is...

download this
http://www.ivgeo.net/mybb/images/ANSCD-e...witcher.js
and save it to your themes folder

in headerinclude
replace this
Code:
<link rel="stylesheet" type="text/css" href="{$theme['css_url']}" />
with this
Code:
<link rel="stylesheet" type="text/css" href="{$theme['css_url']}" title="default" />
<link rel="alternate stylesheet" type="text/css" href="{$theme['imgdir']}/anscd_green.css" title="green" />
<link rel="alternate stylesheet" type="text/css" href="{$theme['imgdir']}/anscd_orange.css" title="orange" />
<script type="text/javascript" src="{$theme['imgdir']}/styleswitcher.js"></script>
in header or anywhere you want put this
Code:
div style="padding: 10px;">
<a href="#"
onclick="setActiveStyleSheet('default');
return false;" style="color: blue;">change style to default</a> -

<a href="#"
onclick="setActiveStyleSheet('green');
return false;" style="color: green;">change style to green</a> -


<a href="#"
onclick="setActiveStyleSheet('orange');
return false;" style="color: orange;">change style to orange</a>

</div>
just replace ANSCD-exp with your theme name

ANSCD-experimental theme attached at the bottom of this post


Attached File(s)
.zip  ANSCD-exp.zip (Size: 289.48 KB / Downloads: 10)

"Freedom is irrelevant. Resistance is futile." -- Borg Collective
Visit this user's website Find all posts by this user
Quote this message in a reply
21-11-2007, 12:49 PM
Post: #2
RE: Style switcher
thanks ivgeo Smile

super
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


 Quick Theme: