REGISTER or LOGIN to have the annoying ads removed.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need a php script
#1
I wan to have random background images on my site however everywhere I go the script is so slow it has a white background for a good 5-10 seconds. I found this script on the web but I think it's in html except the one part I need and I need it in php to work.
PHP Code:
<div style="background-image:url(http://www.urltoimages.com/<?php echo rand(1,20) ?>.jpg);></div> 
anyway to utilize the random 1-20 feature and make a full php script out of it?
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  i need a script like wapsilo.com zidbox 3 1,631 Oct 04, 2014, 05:02 AM
Last Post: NetherSky
Question Need help with hyperlinks in php chetandhiman 3 1,535 May 21, 2010, 04:56 AM
Last Post: chetandhiman
  Free Script - SpiralURL | Free tiny url script Red-Spiral 12 5,738 Mar 27, 2010, 11:40 AM
Last Post: 88power88
  How long it takes to learn php? that_guy 2 1,645 Jul 31, 2009, 04:29 PM
Last Post: Gonzo
  Link Exhange Script TM0 3 2,120 Feb 16, 2009, 06:02 AM
Last Post: Sjoerd

Forum Jump:


Users browsing this thread: 1 Guest(s)