Skip to main content
GameDev.net gamedev.net
🔒 Locked

[web] alpha layers with DHTML ?

Started by soconne Oct 14, 2005 at 7:57 PM 1 replies 450+ views
Original Post
soconne
soconne
Is it possible to have a layer in DHTML and specify the exact amount of transparency. For instance make a square red block be 50% see through ?
Author Freeworld3Dhttp://www.freeworld3d.org
smitty1276
smitty1276
Yeah, you can do some cool stuff with it. Quite a while back (when I remembered how to do all of that stuff) I wrote a little script to create a pop-up floating menu that approximately looked like a window and could be dragged around, etc...

When you closed it, it smoothly faded out of existence (using timers to measure the delta). It was pretty cool.

Back then it only worked on Explorer, but according to the previous commenter it works in mozilla now. You'll have to determine the browser and generate the page accordingly.



Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.