Niker-CZ 0 Odesláno: 20. Leden, 2013 Share Odesláno: 20. Leden, 2013 ahoj, mám script na změnu pozadí <img src="<?php print (((date("H") > 6) && (date("H") < 7)) ? 'body.jpg' : 'body.png'); ?>"> a potřebuji to dat do css body { margin: 0px; padding: 0px; color: white; font-family: Tahoma, Geneva, sans-serif; font-size: 12px; line-height: 1.5em; background-color: #000000; background-image: url(images/body.jpg); background-repeat: no-repeat; background-position: top center } jak to mám spojit ?? Link to comment Share on other sites More sharing options...
0 Administrátor Ewwe 434 Odesláno: 20. Leden, 2013 Administrátor Share Odesláno: 20. Leden, 2013 if(date("H") > 6 && date("H") "; else echo ""; a z css musis vymazat background-image: url(images/body.jpg); 2 Link to comment Share on other sites More sharing options...
0 Niker-CZ 0 Odesláno: 20. Leden, 2013 Author Share Odesláno: 20. Leden, 2013 a jak to mám vložit do html stránky Link to comment Share on other sites More sharing options...
0 Administrátor Ewwe 434 Odesláno: 20. Leden, 2013 Administrátor Share Odesláno: 20. Leden, 2013 do html stránky tento způsob nijak to by jsi musel : do html stránky : v css background-image: url(images/body.php); A v body.php <?php if(date("H") > 6 && date("H") { header('Content-type: image/jpg'); header('Content-Disposition: filename=body.jpg'); readfile('body.jpg'); }else{ header('Content-type: image/jpg'); header('Content-Disposition: filename=body.png'); readfile('body.png'); } ?> Link to comment Share on other sites More sharing options...
0 Niker-CZ 0 Odesláno: 20. Leden, 2013 Author Share Odesláno: 20. Leden, 2013 nefunguje to akorát to rozhodilo stránku Link to comment Share on other sites More sharing options...
Dotaz
Niker-CZ 0
ahoj, mám script na změnu pozadí
a potřebuji to dat do css
jak to mám spojit ??
Link to comment
Share on other sites
4 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now