Overlaying Images

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
Stryks
Forum Regular
Posts: 746
Joined: Wed Jan 14, 2004 5:06 pm

Overlaying Images

Post by Stryks »

Not neccisarily a PHP issue, but I'm wondering if anyone knows of a method of overlaying transparent background images over one another in several layers in real time.

I'm not really keen on using flash or anything like that ... I'd just prefer a simple html or perhaps a javascript method.

Either way, the image names and locations would need to be inserted by PHP.

Any help would be great, thanks.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post by pickle »

Check CSS and the z-index property. That property affects how elements are placed on the "z-axis". FYI: I've noticed you also need to set the position property in order to get the z-index property to work.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
User avatar
AVATAr
Forum Regular
Posts: 524
Joined: Tue Jul 16, 2002 4:19 pm
Location: Uruguay -- Montevideo
Contact:

Post by AVATAr »

im guessing here.. but... maybe you can create a png image.. with alfa channels and that stuff
Draco_03
Forum Regular
Posts: 577
Joined: Fri Aug 15, 2003 12:25 pm
Location: Montreal, Canada

Post by Draco_03 »

depending on what he wish to do..it s kind of obscure...
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

<div> + <marquee> will give a cool effect, with the right style settings of course. ;)


http://www.w3schools.com
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

marque is a deprecated tag

sorry sami, not having a go, just thought i would add that
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

Indeed it is, but I saw an amazing combination of marquee and div the other day and it got me playing around with it again. :P heh

But if you want to play by the new specification's rules, I'd avoid it.
Post Reply