Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
background image rotate in css class
Old 05-28-2009, 11:31 PM background image rotate in css class
Junior Talker

Posts: 1
Trades: 0
I know this is a common question but have been looking for hours and I can't seem to find one that is for a background image to refresh on reload that is in a table using a class (not in an ID) - I should have built the whole site in css but i'm not that good at it yet!

this is where i want the image to go
Code:
<td class="happen">
in this page

http://www.23rdandunion.org/happen.htm

this is my css

Code:
td.happen {background-image:url(../images/happen.jpg); background-repeat:no-repeat; height:566px;}
audiogirl is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-29-2009, 09:00 AM Re: background image rotate in css class
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Change the class each time, and style each class differently.
It's easier to do this from the server, but if you have a static site, you can change the class name with JavaScript by selecting the TD as a DOM object then changing its className property. Of course, you'll want to do it randomly, which requires the Math.random() method.
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Reply     « Reply to background image rotate in css class
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09923 seconds with 12 queries