0

How create change of background php code

php

9th Jun 2017, 9:26 PM
Eric Fabro
Eric Fabro - avatar
4 Answers
+ 13
@Eric Fabro wrote: >> Okay, how? << Same CSS properties and rules! // Javascript document.body.background = rules As @Wisdom said, change background w/h PHP is not the best solution, but... it is possible: // PHP echo '<body style="background: rules">'; Replace 'rules' with your rules, as i already wrote, you can change the JS properties using the camelCase syntax and the PHP properties with the inline style syntax. :)
9th Jun 2017, 10:05 PM
Maz
Maz - avatar
+ 4
Change background using PHP? I don't think PHP is the best to do that. You might want to try Javascript.
9th Jun 2017, 9:50 PM
Wisdom Abioye
Wisdom Abioye - avatar
- 1
okay how?
9th Jun 2017, 9:52 PM
Eric Fabro
Eric Fabro - avatar
- 2
okay thanks. I like the full code how create Change Background using php or java. please
9th Jun 2017, 10:15 PM
Eric Fabro
Eric Fabro - avatar