MySite -
http://films.smfforfree.com/index.phpI managed to get as far as installing Agent Moose's drop down list.. for style sheet picker
but it doesn't look like those (with css docs?) are hosted anymore.. so nothing seems to happen
My question.. before getting brave and uploading (wordpad doc) with css (?) codes...
I was wondering if there are internal links (for Control Panel stylesheets) that I can post in Moose's codes
<script>
var n = 0;var Skin = new Array();
Skin[n++] = ["Black","http://h1.ripway.com/smcodes/Skins/black.css"];
Skin[n++] = ["Red","http://h1.ripway.com/smcodes/Skins/red.css"];
Skin[n++] = ["Green","http://h1.ripway.com/smcodes/Skins/green.css"];
Skin[n++] = ["NAME","URL"];
//Created by Agent Moose (smcodes.smfforfree3.com)
document.write("<script src='http://209.85.62.24/15/114/0/f82735/DropSkina.js'></scr" + "ipt>");
</script>
If not or not possible... ouch.. will see what happens
But am I on the right track anyway?
ok when i choose a skin it doesnt change it it stays default
This guy had this problem in 2008.. and I have it still... if that helps anything
EDIT: Looks like I'm getting there... just keep trying you say
Went with the 2nd CODE block from the above mentioned post... works better than 1st (on test site so far)
EDIT Again:
Ok Sybil... this one's for you.. sorryThis is the code... I changed more than the 1st 4.. but only the 1st 4 work
... then also if I try re-order them alphabetically... they go out of order... like they are mismatched
<script>
var n = 0;var Skin = new Array();
Skin[n++] = ["RedMetal","http://films.smfforfree.com/styles/Films/RedMetal.css?fin11"];
Skin[n++] = ["Christmas","http://films.smfforfree.com/styles/Films/Christmas.css?fin11"];
Skin[n++] = ["Chronicles","http://films.smfforfree.com/styles/Films/Chronicles.css?fin11"];
Skin[n++] = ["LightBrown","http://films.smfforfree.com/styles/Films/LightBrown.css?fin11"];
Skin[n++] = ["Black","http://films.smfforfree.com/styles/Films/Black.css?fin11"];
Skin[n++] = ["Camo","http://films.smfforfree.com/styles/Films/Camo.css?fin11"];
Skin[n++] = ["Cat","http://films.smfforfree.com/styles/Films/Cat.css?fin11"];
Skin[n++] = ["Grey","http://films.smfforfree.com/styles/Films/Grey.css?fin11"];
Skin[n++] = ["HeliosRed","http://films.smfforfree.com/styles/Films/HeliosRed.css?fin11"];
Skin[n++] = ["LightBlue","http://films.smfforfree.com/styles/Films/LightBlue.css?fin11"];
Skin[n++] = ["Rusted","http://films.smfforfree.com/styles/Films/Rusted.css?fin11"];
Skin[n++] = ["TechnoGlassBlue","http://films.smfforfree.com/styles/Films/TechnoGlassBlue.css?fin11"];
//Created by Agent Moose (smcodes.smfforfree3.com)
document.write("<center><select id='SkinChooser'><option value='default'>Choose Style</option>");
for(i=0;i<Skin.length;i++){
document.write("<option value='" + Skin[i][1] + "'>" + Skin[i][0] + "</option>");
};
document.write("</select> <input type='button' value='Change' onclick='setSkin();' /></center>");
function setCookie(name, value, expires){
var deCookie = name + "=" + escape(value);
if(expires){
expires= expires.toGMTString();
deCookie += "; expires=";
deCookie += expires;
};
document.cookie = deCookie;
};
function getCookie(name){
var dc = document.cookie;
var prefix = name + "=";
var begin = dc.indexOf("; " + prefix);
if (begin == -1){
begin = dc.indexOf(prefix);
if (begin != 0) return false;
}else begin += 2;
var end = document.cookie.indexOf(";", begin);
if (end == -1)
end = dc.length;
return unescape(dc.substring(begin + prefix.length, end));
};
function delCookie(name){
expires = new Date(1807,1,1);
expires = expires.toGMTString();
deCookie = name;
deCookie += "=delete; expires=";
deCookie += expires;
document.cookie = deCookie;
};
function changeSkin(Agent){
document.write("<link rel='stylesheet' type='text/css' href='" + Agent + "' />");
};
var Omi = "default";
document.getElementById("SkinChooser").onchange = function(){
if(Skin[parseInt(document.getElementById("SkinChooser").selectedIndex)-1]){
Omi = Skin[parseInt(document.getElementById("SkinChooser").selectedIndex)-1][1]
}else{
Omi = "default";
};};
function setSkin(){
if(Omi == "default") delCookie("Skin");
if(Omi != "default") setCookie("Skin",Omi,new Date(9999,1,1));
window.location.reload();
};
changeSkin(getCookie("Skin"));
</script>
I would also like to know how to add the Default @ the top... if you can (as it didn't work)
And then lastly... those 4 work on my
www.smfforfree.com (test site above) but not on my main
www.smfforfree3.com site
Are there issues between the two... or are they not the same?
Thanks