Random Background image

Reply

Join Date: Aug 2006
Posts: 10
Reputation: SLM-Manu is an unknown quantity at this point 
Solved Threads: 0
SLM-Manu's Avatar
SLM-Manu SLM-Manu is offline Offline
Newbie Poster

Random Background image

 
0
  #1
Aug 25th, 2006
1) Is it possible to preload image using css? If yes, how?
Here is the format of my css....

body {
background-image: url(g9brk05.gif);
margin-left: 5px;
margin-top: 5px;
margin-right: 5px;
margin-bottom: 2px;
}


2) Is it possible to use random background image using css?........... How?
Imagination is more important than knowledge.
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 166
Reputation: Lafinboy is an unknown quantity at this point 
Solved Threads: 7
Lafinboy's Avatar
Lafinboy Lafinboy is offline Offline
Junior Poster

Re: Random Background image

 
0
  #2
Aug 25th, 2006
You can't preload with CSS, but the images will be cached after first load.

Depending on your server there are various ways to generate random backgrounds. I have a sample CSS Random Background Image rotation script on my blog which may help you.
If I've been a help please confirm by clicking the Add to Lafinboy's Reputation link in the header of this reply.

Lafinboy Productions
:: Website Design :: Website Development ::

Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the HTML and CSS Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC