/    Sign up×
Community /Pin to ProfileBookmark

Random Background (Table)

Hi,

Im looking for a script, that randomly sets background images in a table tag?

Ive tried the following:

[URL=http://68.145.35.86/skills/javascripts/RandomBGImageInTables.html]http://68.145.35.86/skills/javascri…geInTables.html[/URL]

I have read a previous thread with the same question:

[URL=http://forums.webdeveloper.com/showthread.php?s=&threadid=10160&highlight=random+background]Script for random background in table…[help] 27-05-2003[/URL]

But im not sure how to get my images to work in this, i.e. image1.jpg, image2.jpg, image3.jpg and so on!

The above script is what im after but for one table not two!

Can anyone help me out?

Regards,

Gareth Burrows

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@Khalid_AliMar 17.2004 — thats just an example,youshould be able to use thescript by removing reference to the second table
×

Success!

Help @britishrallying spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...