![]() |
|
||||||||||
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
|||||
|
|
#1 |
|
WLC Member
Join Date: Mar 2011
Location: England
Posts: 2
|
I don't have any coding to show you because I'm not even sure if this can be done. I want my splash page to show a different image from a pre-created set each time the page is loaded or reloaded. I've found several ways of doing this using javascript but frankly I'm not very good with js. And to be honest I'm not fond of working with it. Besides too many people have it turned off - what would my splash page look like to them if it's based in js?
So, I'd like to know if there's a way of doing this using the basics of CSS and HTML. Sacharissa ____________________ Mind over matter is all very well, but what about the fact that the mind IS matter? |
|
|
|
|
|
#2 |
|
WLC Admin
Join Date: Mar 2006
Posts: 488
|
PHP? I don't think html and css can reload image without javascript.
How about this: http://demo.marcofolio.net/php_random_image_rotation/ |
|
|
|
|
|
#3 |
|
WLC Mod
Join Date: Jul 2009
Location: Milky Way Galaxy
Posts: 3,134
|
If you just looking to randomize a picture, then create an array with all the URLs, then just use the random function to pick one of them.
So you might try something like: PHP Code:
__________________
Praise be to the Lord God for the ability to learn, the capability to analyze, and the time to help users on this forum. |
|
|
|
|
|
#4 |
|
WLC Admin
Join Date: Mar 2006
Posts: 488
|
There are two types - show new image or random images.
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
Linear Mode |
|
|