Image over text question

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
SBukoski
Forum Contributor
Posts: 128
Joined: Wed May 21, 2003 10:39 pm
Location: Worcester, MA

Image over text question

Post by SBukoski »

This is probable a simple question for some of you to answer.

Let's say I have some text and I want to place an image over the text. A good example would be a Bingo type game. I had the number 4 and when the 4 is drawn, I'd like to place an image (a transparent gif with a red circle) over the 4.

How is this accomplished. I'm sure it's done using <div> or <span> tags, but I'd like a little help if possible.

Thanks...
kettle_drum
DevNet Resident
Posts: 1150
Joined: Sun Jul 20, 2003 9:25 pm
Location: West Yorkshire, England

Post by kettle_drum »

You can probably pull it off with a bit of css possitioning, or just have the numbers on the pages background/table image and then add/change the image on top when you need to - just grab a simple javascript image rotator.
SBukoski
Forum Contributor
Posts: 128
Joined: Wed May 21, 2003 10:39 pm
Location: Worcester, MA

Post by SBukoski »

I actually figured this one out using a bunch of <div> statements and using the position:absolute and z-index styles. Works like a charm now. I hope. I haven't tested it on Netscape yet, but it looks ok in IE.
Post Reply