chiprivers Posted March 21, 2007 Share Posted March 21, 2007 Can anybody help me with a line of code that i can put at the very end of my script so that turns the background og my page green? I have quite a long script running and this work as an indication that the page had finished loading! Link to comment https://forums.phpfreaks.com/topic/43739-turn-background-green/ Share on other sites More sharing options...
per1os Posted March 21, 2007 Share Posted March 21, 2007 <body bgcolor="green"> Link to comment https://forums.phpfreaks.com/topic/43739-turn-background-green/#findComment-212367 Share on other sites More sharing options...
chiprivers Posted March 21, 2007 Author Share Posted March 21, 2007 <body bgcolor="green"> Doesnt that need to be at the beginning of the script? Link to comment https://forums.phpfreaks.com/topic/43739-turn-background-green/#findComment-212404 Share on other sites More sharing options...
shaunrigby Posted March 21, 2007 Share Posted March 21, 2007 Why do you want the background to turn green when the page has finished loading? plus this may be a job for JavaScript not PHP Link to comment https://forums.phpfreaks.com/topic/43739-turn-background-green/#findComment-212407 Share on other sites More sharing options...
chiprivers Posted March 21, 2007 Author Share Posted March 21, 2007 Why do you want the background to turn green when the page has finished loading? plus this may be a job for JavaScript not PHP The script is taking several minutes to process but flushes the display to the browser as it goes giving a progress of what is happening, I just wondered if I could get the bg to turn green at the end of the script just to give an indication that the script had finished!? Link to comment https://forums.phpfreaks.com/topic/43739-turn-background-green/#findComment-212411 Share on other sites More sharing options...
shaunrigby Posted March 21, 2007 Share Posted March 21, 2007 why not just echo text to say that the script is complete?? Link to comment https://forums.phpfreaks.com/topic/43739-turn-background-green/#findComment-212413 Share on other sites More sharing options...
legohead6 Posted March 21, 2007 Share Posted March 21, 2007 or echo the body bgcolor bit... Link to comment https://forums.phpfreaks.com/topic/43739-turn-background-green/#findComment-212431 Share on other sites More sharing options...
shaunrigby Posted March 22, 2007 Share Posted March 22, 2007 I still think its a job for javascript Link to comment https://forums.phpfreaks.com/topic/43739-turn-background-green/#findComment-212435 Share on other sites More sharing options...
jcbarr Posted March 22, 2007 Share Posted March 22, 2007 I'm pretty sure that you can do this with javascript, try posting in that forum, I'm sure someone will be able to give you the answer. Echoing the bgcolor bit won't do any good if you echo it at the end of the page, it has to be in the body tag that has to be before the actual body of the page. Link to comment https://forums.phpfreaks.com/topic/43739-turn-background-green/#findComment-212436 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.