View Full Version: [S] Skins Question

RPG-Directory > Solved Support Topics > [S] Skins Question



Title: [S] Skins Question


Triguntri - April 19, 2008 07:06 PM (GMT)
I don't know if this is in the right section but I need some help. I want to change skins for my site but I can't decided between three so...I want to use all of them. I have seen some sites that can change the skin or at least banner or both. Like if you reload, it's a new skin or something like that. If anyone can send me a link or tell me how or what to do to able to change skins, I would really appreciate. I can also get the option to get three skins but a member chooses it.

Thanks!

Gowd - April 19, 2008 10:21 PM (GMT)
I've seen a code for this. I'll look for it and Edit when I've found it... *runs to search*


HERE WE GO! Remember - i did not make this.

QUOTE
Change Skin Script
Copyright © 2003 xMALEVOLENCEx
Skins created by various members of the invisionfree.com/directory.php?cat=29
ALL skins are copyright to http://www.invisionfree.com/directory.php?cat=29
*/





CODE
<!-- It works NOW  -->
<!--
Insert this code:
ACP>Skins>Board Wrappers
Put this between Navigation and Board
--><!--        ---------- COPY & PAST EVERYTHING BELOW THIS LINE ---------->

<center>
Skin selector developed by soxfan93. Skins created by various members of the <a href="http://www.invisionfree.com/directory.php?cat=29" target="_blank">IF Board Directory</a>.<br />
<form> and ross and buzz and countducky
<select onChange="changeskin(this.options[this.selectedIndex].value); window.location.reload();">
<option>Skin Changer Pull-Down Menu
<option value="BoHeGaHa"> BoHeGaHa
<option value="IF Default"> Invision Blue
<option value="SMGs Silver"> SMG's Silver
<option value="RJs Green/Black"> RJ's Green/Black
<option value="Blue Matrix"> Blue Matrix
<option value="Dead or Alive Xtreme Volleyball"> DoAx Volleyball
<option value="Red and Black Remix"> Red and Black Remix
<option value="RJs Silver-Blue"> RJs Silver-Blue
<option value="Orange Wave"> Orange Wave
<option value="Green Alias"> Green Alias
<option value="Blue Alias"> Blue Alias
<option value="Purple Phenomenon"> Purple Phenomenon
<option value="Green Matrix"> Green Matrix
<option value="Blue Island"> Blue Island
</select>
</form>



<script language="JavaScript">
<!--

/*
Change Skin Script
Copyright © 2003 xMALEVOLENCEx
Skins created by various members of the invisionfree.com/directory.php?cat=29
ALL skins are copyright to http://www.invisionfree.com/directory.php?cat=29
*/

var scheme = getCookie('template1');
if (scheme == 'BoHeGaHa') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://members.lycos.nl/filehost/htmlpages/bo_he_ga_ha.txt">');
} else if (scheme == 'IF Default') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://members.lycos.nl/filehost/htmlpages/invision_blue.txt">');
} else if (scheme == 'SMGs Silver') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://members.lycos.nl/filehost/htmlpages/silver_skin.txt">');
} else if (scheme == 'RJs Green/Black') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://members.lycos.nl/filehost/htmlpages/green_black.txt">');
} else if (scheme == 'Blue Matrix') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://members.lycos.nl/filehost/htmlpages/blue_matrix.txt">');
} else if (scheme == 'Dead or Alive Xtreme Volleyball') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://members.lycos.nl/filehost/htmlpages/doa_volleyball.txt">');
} else if (scheme == 'Red and Black Remix') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://members.lycos.nl/filehost/htmlpages/red_black_remix.txt">');
} else if (scheme == 'RJs Silver-Blue') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://members.lycos.nl/filehost/htmlpages/silver_blue.txt">');
} else if (scheme == 'Orange Wave') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://members.lycos.nl/filehost/htmlpages/orange_wave.txt">');
} else if (scheme == 'Green Alias') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://members.lycos.nl/filehost/htmlpages/green_alias.txt">');
} else if (scheme == 'Blue Alias') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://members.lycos.nl/filehost/htmlpages/blue_alias.txt">');
} else if (scheme == 'Purple Phenomenon') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://members.lycos.nl/filehost/htmlpages/purple_phenomenon.txt">');
} else if (scheme == 'Green Matrix') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://members.lycos.nl/filehost/htmlpages/green_matrix.txt">');
} else if (scheme == 'Blue Island') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://members.lycos.nl/filehost/htmlpages/blue_island.txt">');
}

function changeskin(change) {
var scheme = change;
var name = 'template1';
var pathname = location.pathname;
var myDomain = pathname.substring(0,pathname.lastIndexOf('/')) +'/';
var ExpDate = new Date ();
ExpDate.setTime(ExpDate.getTime() + (180 * 24 * 3600 * 1000));
setCookie(name,scheme,ExpDate,myDomain);
}
function getCookie(name){
var cname = name + "=";
var dc = document.cookie;
if (dc.length > 0) {
begin = dc.indexOf(cname);
if (begin != -1) {
begin += cname.length;
end = dc.indexOf(";", begin);
if (end == -1) end = dc.length;
return unescape(dc.substring(begin, end));
}
}
return null;
}

function setCookie(name, value, expires, path, domain, secure) {
document.cookie = name + "=" + escape(value) +
((expires == null) ? "" : "; expires=" + expires.toGMTString()) +
((path == null) ? "" : "; path=" + path) +
((domain == null) ? "" : "; domain=" + domain) +
((secure == null) ? "" : "; secure");
}
-->
</script>

</center>
<br />


It's a little complicated, so i sugest you have a little coding knowlege before attempting it. :sweat:

QUOTE
Insert this code:
ACP>Skins>Board Wrappers
Put this between Navigation and Board

ShinLi - June 19, 2008 12:34 PM (GMT)
Your topic has been solved and moved to the 'Solved Support Topics' forum! Still have a question, or something isn't clear yet? Open up a new topic, but be sure to be more specific this time!




Hosted for free by InvisionFree