hey all, i was wondering if anyone has the code for "Alternating backgrounds", i dont know if that is the term for it, but its where you load a page, and the background is differnt everytime you load that page, do you follow?, well im very new to html and all that, so please dont flip out if i used the wrong words and such :cheesy:
BT2005
0
Newbie Poster
Recommended Answers
Jump to PostWell, suppose you had an HTML table ... you would just tell one row to be one color and the next row to be a different color. Are you talking more along the lines of a dynamic script that generates content on-the-fly?
Jump to PostYou can do this a variety of ways. To give you the best answer, we need to know more about you and your capabilities.
For example, do you do any server-side coding at all? PHP, for example? Or do you want to do this all with client-side code?
Jump to PostIt depends. The easiest way is with server-side code. You can't do it with plain HTML.
Jump to PostGreat! Then I suggest you ask the question in the appropriate server-side coding forum. If you're new to it, then I suggest PHP. PHP works by interspersing PHP tags with your HTML tags. When a user browses to a PHP page, the server first interprets the PHP.
So to …
All 14 Replies
Dani
4,074
The Queen of DaniWeb
Administrator
Featured Poster
Premium Member
BT2005
0
Newbie Poster
tgreer
189
Made Her Cry
Team Colleague
BT2005
0
Newbie Poster
tgreer
189
Made Her Cry
Team Colleague
BT2005
0
Newbie Poster
tgreer
189
Made Her Cry
Team Colleague
alpha_foobar
5
Junior Poster
tgreer
189
Made Her Cry
Team Colleague
alpha_foobar
5
Junior Poster
alpha_foobar
5
Junior Poster
tgreer
189
Made Her Cry
Team Colleague
campkev
0
Posting Pro in Training
sjaak
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.