DIR Return Create A Forum - Home
---------------------------------------------------------
Create A Forum - Support Forums
HTML https://support.createaforum.com
---------------------------------------------------------
*****************************************************
DIR Return to: Create a Forum Codes and Support
*****************************************************
#Post#: 5602--------------------------------------------------
[Code] Dark Style Picker
DIR By: xboi209
Date: August 11, 2012, 9:01 am
---------------------------------------------------------
There will be a dropdown box at the bottom of your forum where
you can select between all of the dark styles available.
It is required that your forum uses the default style when you
add in this code!
If this code does NOT work, try updating your web browser to its
latest version.
This code utilizes jQuery, please use the latest version found
in this thread:
HTML http://support.createaforum.com/5/jquery-v1-8-update/
HTML http://support.createaforum.com/5/jquery-v1-8-update/
Footers:
--- Code ---
<script>$("#footer_section").before("<center><select
name='styles' id='styles'><option value='default'
id='default'>Default</option><option value='darkblue'
id='darkblue'>Dark Blue</option><option value='darkred'
id='darkred'>Dark Red</option><option value='darkgreen'
id='darkgreen'>Dark Green</option><option value='dark'
id='dark'>Dark</option><option value='darkpurple'
id='darkpurple'>Dark Purple</option><option value='darkyellow'
id='darkyellow'>Dark Yellow</option></select> <input
type='button' id='reload' value='Save'></center>");function
stylez(name,id,shortname){$("#styles").change(function(){if($("#"+id).is(':selected')){localStorage.setItem(id,"true")}else{localStorage.setItem(id,"false")}});if(localStorage.getItem(id)=="true"){$("LINK[href*='/Themes/default/css/index.css?fin20']").attr("href","
HTML http://www.createaforum.com/styles/xboi209/dark"+shortname+"-compress.css?fin20");$("#"+id).prop("selected",true)}$("#reload").click(function(){window.location.reload()})}stylez("Dark<br
/>Blue","darkblue","_blue");stylez("Dark
Red","darkred","_red");stylez("Dark
Green","darkgreen","_green");stylez("Dark","dark","");stylez("Dark
Purple","darkpurple","_purple");stylez("Dark
Yellow","darkyellow","_yellow");</script>
--- End Code ---
#Post#: 11060--------------------------------------------------
Re: [Code] Dark Style Picker
DIR By: Silver734
Date: August 6, 2013, 5:48 pm
---------------------------------------------------------
it doesn't actually allow you to pick style, please help1!!
#Post#: 11063--------------------------------------------------
Re: [Code] Dark Style Picker
DIR By: xboi209
Date: August 6, 2013, 8:29 pm
---------------------------------------------------------
This code is outdated and will no longer work without
modifications.
*****************************************************
Page 1 of 1