XTIPS

Tips Mail Tools
GuestBook Link Exchange
Home Page

RANDOM BACKGROUND IMAGE USING INTERNAL CSS ( CLASSES )
_____

You will need a "locater" folder with plain text files containing the names of the images (one per file)
_____
Go to stylesheet editor
set up a new class
add a background image
instead of an url enter this changing SITE to your site. IMAGE FOLDER to your image folder. FOLDER to the name of your "locator" folder

_____


TEXT
TEXT TEXT
TEXT

Do not try to edit this later using stylesheet editor you will have to use text editor or re-enter the function
you can add any other properties required.
Then use the same as any other class.
It will only produce one random background per page (subsequent calls will produce the same background).
* WARNING *USE THE FOLLOWING WITH CARE !
as occasional errors occur
To get another random background on the same page you need to set up another class and either make a copy of your "locator" folder and use that in the function or change the function to

_____


TEXT
TEXT
TEXT
TEXT

If the background images are not solid then the previous background or last image displayed may show through
I have included some transparent images to demonstrate this.
CLICK TO RELOAD

Random Partner

JITUROCKS.XTGEM.COM
BACK

©2009 - 2026Theoldman
JOIN XTBOARD
X T B O A R D
THE MOBILE WORLD IS
X T G E M