Failed at making more than one skin

31
Dec
2011
So I was following This Thread and somehow still managed to still not get it right! I'm perty sure I messed up the code somewhere. Any help would be much appreciated!

-----------------------

//STAR Skin Selector by Bourne (montatuforo.net) and 3mOtrOnik (toxigeek.com)
document.write('<style>body {margin-top:50px !important;} select {color: #fff !important; background-color: #000 !important;} option {font-family: verdana; font-size: 10px; color: white;} option.sl {color: #fff !important; background-color: #000;} SELECT{ font-family: verdana; font-size: 10px; color: white; </style>');
document.write('<div style="position: absolute; width: 150px; height: 38px; z-index: 1; left: 5px; top: 10px" id="skinselector"><form><select onchange="changeskin(this.options[this.selectedIndex].value); window.location.reload();"><option class="sl"> Change the Skin </option><option class="sl" value="Defaul"> Default </option><option class="sl" value="Black"> CUSTOM THEME 1</option><option class="sl" value="Purple"> CUSTOM THEME 2</option><option class="sl" value="Yellow"> CUSTOM THEME 3 </option></select></form></div>');
var scheme = getCookie('template1');
if (scheme == 'Defaul') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://todo.iftopic.com/169155-ltr.css">');
} else if (scheme == 'Black') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://todo.iftopic.com/165462-ltr.css)">');
} else if (scheme == 'Purple') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://todo.iftopic.com/171189-ltr.css">');
} else if (scheme == 'Yellow') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://todo.iftopic.com/163929-ltr.css">');
}

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");
}
//END Skin Selector by Bourne (montatuforo.net) and 3mOtrOnik (toxigeek.com)
1 slg, on 31/12/2011 at 06h14
(http://To.iftopic.com//169155-ltr.css

The ( does not belong there.
2 themanwithnoplan, on 31/12/2011 at 06h28
I'm assuming I have to take out more than just those "(" because it still isn't registering.

I edited the OP to show what I changed.

Also just to make sure, all I have to do is make copy & paste this in the html management section?

-Thanks
3 slg, on 31/12/2011 at 06h31
Did you add the code to the site's description?

This section is wrong:

else if (scheme == 'Purple') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://TO.iftopic.com/171189-ltr.css)http://TO.iftopic.com/168970-ltr.css">');

It should be this:

else if (scheme == 'Purple') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://TO.iftopic.com/171189-ltr.css">');

4 themanwithnoplan, on 31/12/2011 at 06h47
Thank you!

It still does not work. The code I posted in the description looks like this;

<script type=text/javascript src=http://TO.iftopic.com//h9-multithemev3></script>

Also OP code edited again.
5 slg, on 31/12/2011 at 06h49
I am not sure, but it could be because you named not numbered your stylesheets. I am talking about the value names.

value="Black"

(scheme == 'Black')

I have this on my forum.
6 themanwithnoplan, on 31/12/2011 at 06h56
heres what it looks like in the end result.



7 slg, on 31/12/2011 at 06h57
Is there not a drop-down menu in the right top corner of your homepage?

Post your link to your forum.
8 themanwithnoplan, on 31/12/2011 at 07h08
There is a drop down menu in the top left hand side.
The header and footers appears now, but non of the threads, and boards do.
Instead this stuff fills in the gap;

//STAR Skin Selector by Bourne (montatuforo.net) and 3mOtrOnik (toxigeek.com) document.write(''); document.write('
'); var scheme = getCookie('template1'); if (scheme == 'default') { document.write(''); } else if (scheme == '1') { document.write(''); } else if (scheme == '2') { document.write(''); } else if (scheme == '3') { document.write(''); } 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"); } //END Skin Selector by Bourne (montatuforo.net) and 3mOtrOnik (toxigeek.com)
9 slg, on 31/12/2011 at 07h09
This has been solved by pm. The HTML link in the site description was wrong. The set up for the HTML page was wrong because the yes box was check for to use the header and footer.
10 MrMario, on 31/12/2011 at 22h25
Topic Solved & Locked
Similar topics
I get this error when attempting to run executable. What am I doing wrong?
I want to do damage i the hundreds of thousands and later millions, what do i need to raise on my stats to achieve this? I have an attack skill around 500 and a defense over 100 and life around 125....is there a formula or something to help me achieve my
This was another failed attempt at humor in early June I know everyone gets excited about adding people, joining Elite Guards and fighting hugh monsters. I just think we are missing one important detail - the date-ability of the female heroes. After
Replies 1 to 10 on 10 for "Failed at making more than one skin"
See also
more_less
Informations

10 Replies For the topic :
"Failed at making more than one skin"

This topic has been viewed 448 times.

Last message :
31/12/2011 at 05h32 by "themanwithnoplan"