<script type="text/javascript">
var d = new Date()
var time = d.getHours()
if (time<10)
{
document.write("<link href="{T_THEME_PATH}/morning.css" rel="stylesheet" type="text/css" media="screen, projection" />");
}
else if (time>10 && time<16)
{
document.write("<link href="{T_THEME_PATH}/day.css" rel="stylesheet" type="text/css" media="screen, projection" />");
}
else
{
document.write("<link href="{T_THEME_PATH}/evening.css" rel="stylesheet" type="text/css" media="screen, projection" />");
}
</script>
possible new style to be in development...
possible new style to be in development...
been wanting to make a style that can change colours with the users time of day. this would consist of 2 or more stylesheets. and since i simplified the stylesheet that i'm using in my new styles, i think i can pull this off now. only thing i'm waiting for now is for someone to go over a piece of javascript to see if it will do the job or not. if you know js and would like to have a look and let me know if it will work or not, here it is
Code: Select all
just so everyone knows, it will not be something that i'm going to be doing right now as i have to move and get a few other things sorted before i can start on it. only thing i do know right now is that it will be based off of my Midnightspace style for the first run and then the Concept style for the second. and also, in the future, i could even produce stylesheets of different colours for members to download so they could mix and match their own colours sets
Last edited by spaceace on Tue Feb 26, 2013 10:29 am, edited 2 times in total.
if you like my work and would like to contribute to my development of styles, please donate by using the donate button in the header.
Need hosting? Click this text to check out ICDSOFT
Need hosting? Click this text to check out ICDSOFT
- Gnome!
- Posts: 355
- Joined: Mon May 24, 2010 8:26 am
- Location: Australia..The worlds Largest island.
- Flag:
Re: possible new style to be in development...
ohhhhhh I'm gonna love this once you get it all sorted
Last edited by Gnome! on Tue Feb 26, 2013 10:29 am, edited 2 times in total.
Gnome!
Knows, I have just enough. Enough to make me content, enough to make me want a little more, but if I don't get it, I'll be OK.
Knows, I have just enough. Enough to make me content, enough to make me want a little more, but if I don't get it, I'll be OK.
Re: possible new style to be in development...
i think i'm even going to like it as i've never seen anyone do it yet
Last edited by spaceace on Tue Feb 26, 2013 10:29 am, edited 2 times in total.
if you like my work and would like to contribute to my development of styles, please donate by using the donate button in the header.
Need hosting? Click this text to check out ICDSOFT
Need hosting? Click this text to check out ICDSOFT
- duesmandella
- Posts: 55
- Joined: Tue Jan 18, 2011 6:33 pm
Re: possible new style to be in development...
WHo thinks of this stuff lol
Its a great idea im suprised im just hearing of it now
Its a great idea im suprised im just hearing of it now
Last edited by duesmandella on Tue Feb 26, 2013 10:29 am, edited 2 times in total.
- Gnome!
- Posts: 355
- Joined: Mon May 24, 2010 8:26 am
- Location: Australia..The worlds Largest island.
- Flag:
Re: possible new style to be in development...
Space,
I passed this onto a friend in the know and this is what he said.
Kevin ******
That will be cool. I can't think of anyone who has done that with phpbb. He does have an issue with his javascript though. The lines like this one:
I passed this onto a friend in the know and this is what he said.
Kevin ******
That will be cool. I can't think of anyone who has done that with phpbb. He does have an issue with his javascript though. The lines like this one:
Code: Select all
Note the difference in quotes before and after the parenthesis. I'll be waiting to see that idea in action
document.write("<link href="{T_THEME_PATH}/morning.css" rel="stylesheet" type="text/css" medi...a="screen, projection" />");
should looks something like this:
document.write('<link href="{T_THEME_PATH}/morning.css" rel="stylesheet" type="text/css" media="screen, projection" />');
Last edited by Gnome! on Tue Feb 26, 2013 10:29 am, edited 2 times in total.
Gnome!
Knows, I have just enough. Enough to make me content, enough to make me want a little more, but if I don't get it, I'll be OK.
Knows, I have just enough. Enough to make me content, enough to make me want a little more, but if I don't get it, I'll be OK.
Re: possible new style to be in development...
thanks Gnome! that's exactly the kind of response i'm looking forGnome! wrote:Space,
I passed this onto a friend in the know and this is what he said.
Kevin ******
That will be cool. I can't think of anyone who has done that with phpbb. He does have an issue with his javascript though. The lines like this one:
Code: Select allNote the difference in quotes before and after the parenthesis. I'll be waiting to see that idea in actiondocument.write("<link href="{T_THEME_PATH}/morning.css" rel="stylesheet" type="text/css" medi...a="screen, projection" />"); should looks something like this: document.write('<link href="{T_THEME_PATH}/morning.css" rel="stylesheet" type="text/css" media="screen, projection" />');
Last edited by spaceace on Tue Feb 26, 2013 10:29 am, edited 2 times in total.
if you like my work and would like to contribute to my development of styles, please donate by using the donate button in the header.
Need hosting? Click this text to check out ICDSOFT
Need hosting? Click this text to check out ICDSOFT
- Gnome!
- Posts: 355
- Joined: Mon May 24, 2010 8:26 am
- Location: Australia..The worlds Largest island.
- Flag:
Re: possible new style to be in development...
Your welcome Sir
I'm trying to convince him to join
I'm trying to convince him to join
Last edited by Gnome! on Tue Feb 26, 2013 10:29 am, edited 2 times in total.
Gnome!
Knows, I have just enough. Enough to make me content, enough to make me want a little more, but if I don't get it, I'll be OK.
Knows, I have just enough. Enough to make me content, enough to make me want a little more, but if I don't get it, I'll be OK.
Re: possible new style to be in development...
sounds like it would be a good addition to the site
Last edited by spaceace on Tue Feb 26, 2013 10:29 am, edited 2 times in total.
if you like my work and would like to contribute to my development of styles, please donate by using the donate button in the header.
Need hosting? Click this text to check out ICDSOFT
Need hosting? Click this text to check out ICDSOFT
- Gnome!
- Posts: 355
- Joined: Mon May 24, 2010 8:26 am
- Location: Australia..The worlds Largest island.
- Flag:
Re: possible new style to be in development...
I totally agree
Last edited by Gnome! on Tue Feb 26, 2013 10:29 am, edited 2 times in total.
Gnome!
Knows, I have just enough. Enough to make me content, enough to make me want a little more, but if I don't get it, I'll be OK.
Knows, I have just enough. Enough to make me content, enough to make me want a little more, but if I don't get it, I'll be OK.
Re: possible new style to be in development...
hopefully, now that this is brought to light, nobody does it and beats me to it
Last edited by spaceace on Tue Feb 26, 2013 10:29 am, edited 2 times in total.
if you like my work and would like to contribute to my development of styles, please donate by using the donate button in the header.
Need hosting? Click this text to check out ICDSOFT
Need hosting? Click this text to check out ICDSOFT