Oblivionx2 Posted March 6, 2009 Share Posted March 6, 2009 Hello peoples, Having trouble finding the correct code for my website, I'm trying to find a code which makes an random background as background, where the text comes up to. So, Images as background, when the text is on it. Or text with an image behind it. Quote Link to comment https://forums.phpfreaks.com/topic/148201-solved-really-need-help-with-this-please-enter/ Share on other sites More sharing options...
ejaboneta Posted March 7, 2009 Share Posted March 7, 2009 I'm not sure what you're looking for. You want a random background image for the whole page? And how does the text relate to the background? Will what text is displayed depend on the background? Or is the text going to be the same? Anyways... You can't do this with just html. PHP can do it. Quote Link to comment https://forums.phpfreaks.com/topic/148201-solved-really-need-help-with-this-please-enter/#findComment-778811 Share on other sites More sharing options...
Soulstealer Posted March 8, 2009 Share Posted March 8, 2009 you can do this and add test on it <html> <body> <h2>Norwegian Mountain Trip</h2> <img border="0" src="/images/pulpit.jpg" width="304" height="228" /> </body> </html> just random pic i chose u can pick any hope it helps Quote Link to comment https://forums.phpfreaks.com/topic/148201-solved-really-need-help-with-this-please-enter/#findComment-779259 Share on other sites More sharing options...
ricmetal Posted March 10, 2009 Share Posted March 10, 2009 for random bacground look for php to do that for bg behind text, put the text inside a div, or try diferent elements, like p and give the element a background image with css so final code is css background with php random get image Quote Link to comment https://forums.phpfreaks.com/topic/148201-solved-really-need-help-with-this-please-enter/#findComment-780848 Share on other sites More sharing options...
Oblivionx2 Posted March 10, 2009 Author Share Posted March 10, 2009 Alright. Thanks guys! Quote Link to comment https://forums.phpfreaks.com/topic/148201-solved-really-need-help-with-this-please-enter/#findComment-781251 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.