1
faucess
Re: How to change css depending on the time??
  • 2010/8/15 14:04

  • faucess

  • Just popping in

  • Posts: 2

  • Since: 2010/4/26


Great!

It works perfectly, thank you very much! You took the headache of several days hehe.

Greetings!



2
faucess
How to change css depending on the time??
  • 2010/8/15 12:31

  • faucess

  • Just popping in

  • Posts: 2

  • Since: 2010/4/26


Hello,

First, apologize for my English hehe.

I'm trying to change the css of a theme depending on time of day. I entered the following code on theme.html but I get errors.
Someone could help me?

<link rel="stylesheet" type="text/css" media="all" href="
<?php  $hour date('H');  
if ((
$hour >= 6) and ($hour <= 19))  
{
echo 
"<{$xoops_imageurl}>css/blue.css"
}  
else  
{     
echo 
"<{$xoops_imageurl}>css/red.css"
?> 
" />


I tried to do work in several ways, but I can not.

Thank you very much for your time.




TopTop



Login

Who's Online

182 user(s) are online (112 user(s) are browsing Support Forums)


Members: 1


Guests: 181


mailsdaddy,

more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits