Random image background

NamecheapNamecheap
Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
Watch

fishistheice

Established Member
Impact
0
In HTML, I know how to set an image as a <table> or <div> background, but does anyone know how to set a random image as a <table> or <div> background, so that it is different every time the user refreshes the page? Thanks in advance
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
You will need to do some scripting. Either server-side with PHP for example, but it can be done in Javascript too if enabled on the browser (it is in 99% cases), using document.write
 
0
Close
DomainEasy: flexible LTO options. Close more domain deals with financing.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

New: watch any domain
You can now watch domains on NamePros. We check each one and notify you when something changes. Search for a domain and press Watch on...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back