Sparkwattclock
SMF For Free Full Member
Offline
Posts: 103
The leader of the GWC here!
|
 |
« Reply #45 on: May 12, 2008, 10:27:34 pm » |
|
Forum Url: http://luckygarbagewhistlecrew.smfforfree4.commy site's stylesheet swapper doesn't work at all. I have the buttons though. Anyway you can diangnose the problem sibyl?
|
|
|
|
|
Logged
|
|
|
|
|
simply sibyl
|
 |
« Reply #46 on: May 12, 2008, 10:29:08 pm » |
|
I'll give it a looksee.. brb
|
|
|
|
|
Logged
|
|
|
|
|
simply sibyl
|
 |
« Reply #47 on: May 12, 2008, 10:35:56 pm » |
|
In the header code where the links for the stylesheets css is at: <link rel="stylesheet" type="text/css" href="http://www.smfforfree4.com/styles/luckygarbagewhistlecrew /aquaangular.css?fin11" title="aquaangular">
<link rel="alternate stylesheet" type="text/css" href="http://www.smfforfree4.com/styles/luckygarbagewhistlecrew /ultimateorange.css?fin11" title="ultimateorange">
<link rel="alternate stylesheet" type="text/css" href="http://www.smfforfree4.com/styles/luckygarbagewhistlecrew /gwcstylesheet.css?fin11" title="gwc"> See the space after luckygarbagewhistlecrew in each one of them? Get rid of that space in all 3 of them. Then try it again and lemme know.
|
|
|
|
|
Logged
|
|
|
|
Sparkwattclock
SMF For Free Full Member
Offline
Posts: 103
The leader of the GWC here!
|
 |
« Reply #48 on: May 12, 2008, 10:42:28 pm » |
|
In the header code where the links for the stylesheets css is at: <link rel="stylesheet" type="text/css" href="http://www.smfforfree4.com/styles/luckygarbagewhistlecrew /aquaangular.css?fin11" title="aquaangular">
<link rel="alternate stylesheet" type="text/css" href="http://www.smfforfree4.com/styles/luckygarbagewhistlecrew /ultimateorange.css?fin11" title="ultimateorange">
<link rel="alternate stylesheet" type="text/css" href="http://www.smfforfree4.com/styles/luckygarbagewhistlecrew /gwcstylesheet.css?fin11" title="gwc"> See the space after luckygarbagewhistlecrew in each one of them? Get rid of that space in all 3 of them. Then try it again and lemme know. Thanks sibyl! You were quick  , lol super sibyl.
|
|
|
|
|
Logged
|
|
|
|
|
simply sibyl
|
 |
« Reply #49 on: May 12, 2008, 10:52:20 pm » |
|
Thanks sibyl! You were quick  , lol super sibyl. lol you are welcome. I see it is working but you are getting some of the images from the default stylesheet in your others so I grabbed this for ya to help with that: If you find that a stylesheet is picking up graphics from the stylesheet you have set as your forum's default:If your default stylesheet has images for the background, the catbg, the titlebg, the tabs, and for any other area, and your Alternate Stylesheets do not, you will need to tell those areas in the Alternative stylesheets you use that it is important they do not have a background image. For each area that you need to do this in add the code to the place in the url for that section where the background image code would normally be. background-image: none !important; For instance if you use an image for the forums background on the default style and your alternate style has no background do: /* The main body of the entire forum. */ body { background-image: none !important; background-color: #E5E5E8; margin: 0px; padding: 12px 30px 4px 30px;
}
|
|
|
|
|
Logged
|
|
|
|
Chemical
SMF For Free Newbie
Offline
Posts: 3
I Em Liek, Kewl?
|
 |
« Reply #50 on: May 22, 2008, 04:19:05 am » |
|
Err..
How do we find our Link URL if we only copied CSS from our own test site?
|
|
|
|
|
Logged
|
Liek Awmgash!
|
|
|
LaundryLady
Global Moderator
Offline
Posts: 2773
Keep Smiling, Let'em Wonder!
|
 |
« Reply #51 on: May 22, 2008, 04:55:50 am » |
|
Read the first post in this thread very carefully. You are creating the links as you build the swapper.
|
|
|
|
|
Logged
|
|
|
|
MoHa
SMF For Free Member
Online
Posts: 75
|
 |
« Reply #52 on: May 26, 2008, 04:38:52 pm » |
|
Anybody able to help me with this?
|
|
|
|
|
Logged
|
Isaiahs Grandma Is awesome! Thank you so much for your help!!!
|
|
|
|
*ballin*
|
 |
« Reply #53 on: May 26, 2008, 04:42:55 pm » |
|
with?....
|
|
|
|
|
Logged
|
|
|
|
MoHa
SMF For Free Member
Online
Posts: 75
|
 |
« Reply #54 on: May 26, 2008, 04:48:25 pm » |
|
I followed this step by step, very carefully and slowly. These are what i changed things too for codes: I copied the names exactly from how i did them when i did the style sheets. It is not working. In headers: <!-- Stylesheet Swapper For Portal Block --> <link rel="stylesheet" type="text/css" href="http://www.smfforfree4.com/styles/MoHa/lightblue.css?fin11" title="blue">
<link rel="alternate stylesheet" type="text/css" href="http://www.smfforfree4.com/styles/moha/lightsilver.css?fin11" title="silver"> <link rel="alternate stylesheet" type="text/css" href="http://www.smfforfree4.com/styles/moha/lightgreen.css?fin11" title="green"> <link rel="alternate stylesheet" type="text/css" href="http://www.smfforfree4.com/styles/moha/lightnavy.css?fin11" title="navy"> <link rel="alternate stylesheet" type="text/css" href="http://www.smfforfree4.com/styles/moha/lightgolden.css?fin11" title="golden"> <link rel="alternate stylesheet" type="text/css" href="http://www.smfforfree4.com/styles/moha/lightbrown.css?fin11" title="brown"> <link rel="alternate stylesheet" type="text/css" href="http://www.smfforfree4.com/styles/moha/lightlilac.css?fin11" title="lilac"> <link rel="alternate stylesheet" type="text/css" href="http://www.smfforfree4.com/styles/moha/lightturquoise.css?fin11" title="turquoise"> <link rel="alternate stylesheet" type="text/css" href="http://www.smfforfree4.com/styles/moha/lightviolet.css?fin11" title="violet"> <link rel="alternate stylesheet" type="text/css" href="http://www.smfforfree4.com/styles/moha/lightrose.css?fin11" title="rose"> <link rel="alternate stylesheet" type="text/css" href="http://www.smfforfree4.com/styles/moha/lightolive.css?fin11" title="olive"> <link rel="alternate stylesheet" type="text/css" href="http://www.smfforfree4.com/styles/moha/lightred.css?fin11" title="red">
<!-- Script for Stylesheet Swapper DO NOT EDIT --> <script type='text/javascript'> function changeStyle(title) { var lnks = document.getElementsByTagName('link'); for (var i = lnks.length - 1; i >= 0; i--) { if (lnks[i].getAttribute('rel').indexOf('style')> -1 && lnks[i].getAttribute('title')) { lnks[i].disabled = true; if (lnks[i].getAttribute('title') == title) lnks[i].disabled = false; }}}
function switchit() { if (readCookie('style')) { title=readCookie('style'); changeStyle(title); var radios = document.getElementById ('styleswitcher'); if (radios) { var inputs = radios.getElementsByTagName ('input'); if (inputs) { for (var i = 0; i < inputs.length; ++i) { if (inputs[i].type == 'radio' && inputs[i].name == 'style') inputs[i].checked = inputs[i].value == (title) } } } } }
// function topchangeStyle(title) { // var lnks = document.getElementsByTagName('link'); // for (var i = lnks.length - 1; i >= 0; i--) { // if (lnks[i].getAttribute('rel').indexOf('style')> -1 && lnks[i].getAttribute('title')) { // lnks[i].disabled = true; // if (lnks[i].getAttribute('title') == title) lnks[i].disabled = false; // }}}
function setActiveStyleSheet(title) { var i, a, main; for(i=0; (a = document.getElementsByTagName("link")[i]); i++) { if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) { a.disabled = true; if(a.getAttribute("title") == title) a.disabled = false; } } }
function getActiveStyleSheet() { var i, a; for(i=0; (a = document.getElementsByTagName("link")[i]); i++) { if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title") && !a.disabled) return a.getAttribute("title"); } return null; }
function getPreferredStyleSheet() { var i, a; for(i=0; (a = document.getElementsByTagName("link")[i]); i++) { if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("rel").indexOf("alt") == -1 && a.getAttribute("title") ) return a.getAttribute("title"); } return null; }
function createCookie(name,value,days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else expires = ""; document.cookie = name+"="+value+expires+"; path=/"; }
function readCookie(name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for(var i=0;i < ca.length;i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1,c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); } return null; }
window.onload = function(e) { var cookie = readCookie("style"); var title = cookie ? cookie : getPreferredStyleSheet(); setActiveStyleSheet(title); }
window.onunload = function(e) { var title = getActiveStyleSheet(); createCookie("style", title, 365); }
var cookie = readCookie("style"); var title = cookie ? cookie : getPreferredStyleSheet(); setActiveStyleSheet(title); </script> In footer: <body onload="switchit()"> In portal block: <style type="text/css"> fieldset { border: none !important; } </style>
<table align=center width="210px" cellspacing="5"> <td align=left valign="top"> <form action="#" id="styleswitcher" class="styleswitcher"><small>
<input type="radio" name="style" value="lightblue" onclick='changeStyle(this.value); parent.frames["top"].changeStyle(this.value)'> Blue <input type="radio" name="style" value="lightsilver" onclick='changeStyle(this.value); parent.frames["top"].changeStyle(this.value)'> Silver <input type="radio" name="style" value="lightgreen" onclick='changeStyle(this.value); parent.frames["top"].changeStyle(this.value)'> Green <input type="radio" name="style" value="lightnavy" onclick='changeStyle(this.value); parent.frames["top"].changeStyle(this.value)'> Navy <input type="radio" name="style" value="lightgolden" onclick='changeStyle(this.value); parent.frames["top"].changeStyle(this.value)'> Golden <input type="radio" name="style" value="lightbrown" onclick='changeStyle(this.value); parent.frames["top"].changeStyle(this.value)'> Brown <input type="radio" name="style" value="lightlilac" onclick='changeStyle(this.value); parent.frames["top"].changeStyle(this.value)'> Lilac <input type="radio" name="style" value="lightturquoise" onclick='changeStyle(this.value); parent.frames["top"].changeStyle(this.value)'> Turquoise <input type="radio" name="style" value="lightviolet" onclick='changeStyle(this.value); parent.frames["top"].changeStyle(this.value)'> Violet <input type="radio" name="style" value="lightrose" onclick='changeStyle(this.value); parent.frames["top"].changeStyle(this.value)'> Rose <input type="radio" name="style" value="lightolive" onclick='changeStyle(this.value); parent.frames["top"].changeStyle(this.value)'> Olive <input type="radio" name="style" value="lightred" onclick='changeStyle(this.value); parent.frames["top"].changeStyle(this.value)'> Red Where did i go wrong?
|
|
|
|
|
Logged
|
Isaiahs Grandma Is awesome! Thank you so much for your help!!!
|
|
|
LaundryLady
Global Moderator
Offline
Posts: 2773
Keep Smiling, Let'em Wonder!
|
 |
« Reply #55 on: May 26, 2008, 07:04:31 pm » |
|
The first line: You have MoHa, prob should be moha like the rest of them for the section in the headers.
|
|
|
|
|
Logged
|
|
|
|
MoHa
SMF For Free Member
Online
Posts: 75
|
 |
« Reply #56 on: May 26, 2008, 07:08:30 pm » |
|
Forum Url: http://moha.smfforfree4.comDuh me, thank you. Fixed that and still no luck, would capitals here: <input type="radio" name="style" value="lightblue" onclick='changeStyle(this.value); parent.frames["top"].changeStyle(this.value)'> Blue in the portal html affect it?
|
|
|
|
|
Logged
|
Isaiahs Grandma Is awesome! Thank you so much for your help!!!
|
|
|
LaundryLady
Global Moderator
Offline
Posts: 2773
Keep Smiling, Let'em Wonder!
|
 |
« Reply #57 on: May 26, 2008, 08:49:12 pm » |
|
I know Sibyl and I went nuts the first time I tried it. The lines in the portal block look like this <input type="radio" name="style" value="lightblue" onclick='changeStyle(this.value); parent.frames["top"].changeStyle(this.value)'> Blue I think this is what it should look like. I went over to Sibyls site and took a look at her codes as she has them. <input type="radio" name="style" value="blue" onclick='changeStyle(this.value); parent.frames["top"].changeStyle(this.value)'> Blue Change them over and see how it works.
|
|
|
|
« Last Edit: May 26, 2008, 09:21:31 pm by LaundryLady »
|
Logged
|
|
|
|
MoHa
SMF For Free Member
Online
Posts: 75
|
 |
« Reply #58 on: May 26, 2008, 11:18:28 pm » |
|
The style sheets themselves are named lightblue etc, would i need to change those as well then?
|
|
|
|
|
Logged
|
Isaiahs Grandma Is awesome! Thank you so much for your help!!!
|
|
|
LaundryLady
Global Moderator
Offline
Posts: 2773
Keep Smiling, Let'em Wonder!
|
 |
« Reply #59 on: May 27, 2008, 05:44:01 am » |
|
No, leave that part alone. I think you are stumbling over the same part I did. Try what I suggested and see what happens. If that doesn't work I will have to go back and put it up on my test site and play with it.
|
|
|
|
|
Logged
|
|
|
|
|
|
|