Jump to content

A video div layer.....


dewey_witt

Recommended Posts

www.ixwebhosting.com

 

On this page you will notice that if you click on erica it plays the intro video. My question is a two part question

A. how is this implemented onclick?

B. how do you retain a "clear" backgound.

 

If Im not being clear say so I will do my best to re-explain.

Thank you in advance.

Link to comment
https://forums.phpfreaks.com/topic/80436-a-video-div-layer/
Share on other sites

the woman has a "clear" background because she was probably filled infront of a green-screen that was later removed.  The video is actually a .swf (flash) file which can have a transparent background.

 

then they set the CSS z-index to a value higher then the rest of the elements on the page, giving the ability to create layers so the video plays on-top of the rest of the page.

 

as for the "on click" -- its a flash file, so they probably just use the action script version of javascript's onClick()

 

 

Link to comment
https://forums.phpfreaks.com/topic/80436-a-video-div-layer/#findComment-408117
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.