In this example, jquery is used to turn off the light on the video playback page. The EMBED element is used for video display. This element is an HTML5 element, so it works better to use a browser that supports HTML5.
Effect preview URL: http://www.keleyi.com/keleyi/phtml/guandeng/
CompleteCode:
<! Doctype HTML public "-// W3C // dtd xhtml 1.0 transitional // en" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML xmlns = "http://www.w3.org/1999/xhtml">
<Head>
<Title> Zhang guorong "Qiqian yige"-ke leyi lighting special effect </title>
<Style type = "text/CSS">
Body {font-family: Arial, sans-serif; font-size: 13px; text-align: center; margin: 0px; position: relative ;}
# Container {width: 960px; margin: 0px auto; text-align: Left; overflow: hidden; position: relative ;}
# Movie_keleyi_com {border: solid 1px # dcdcdc; float: Left; width: 560px; text-align: Left; margin-Right: 20px; position: relative; Z-index: 102 ;}
# Description {float: Left; width: 320px; Border: solid 1px # dcdcdc; padding: 10px 20px ;}
# Command {position: relative; Height: 25px; display: block; margin: 25px 0 0 0 ;}
. Lightswitcher {position: absolute; Z-index: 101; Background-image: URL (http://www.keleyi.com/keleyi/phtml/guandeng/light_bulb_off.png );
Background-repeat: No-Repeat; Background-position: Left; padding: 0 0 0 20px; outline: none; text-Decoration: none ;}
. Lightswitcher: hover {text-Decoration: underline ;}
# Shadow {background-image: URL (http://www.keleyi.com/keleyi/phtml/guandeng/shade1x1.png); position: absolute; left: 0; top: 0; width: 100%; Z-index: 100 ;}
. Turnedoff {color: # FFFF00; Background-image: URL (http://www.keleyi.com/keleyi/phtml/guandeng/light_bulb.png );}
# Clickhere {position: absolute; top:-25px; left: 130px ;}
</Style>
<SCRIPT src = "http://www.keleyi.com/keleyi/pmedia/jquery-1.8.2.min.js" type = "text/JavaScript"> </SCRIPT>
<SCRIPT type = "text/JavaScript">
$ (Document). Ready (function (){
$ ("# Shadow" ).css ("height", $ (document). Height (). Hide ();
$ (". Lightswitcher"). Click (function (){
$ ("# Shadow"). Toggle ();
If ($ ("# Shadow"). Is (": hidden "))
(This).html ("turn off the light"). removeclass ("turnedoff ");
Else
((This).html ("turn on the light"). addclass ("turnedoff ");
});
});
</SCRIPT>
</Head>
<Body>
<Div id = "Container">
<Div id = "Header">
<H1> Zhang guorong, Qiqian song <H2> special lighting effect </H2>
<Div id = "command"> <a class = "lightswitcher" href = "javascript: void (); "> turn off the light </a> </div>
</Div>
<Div id = "movie_keleyi_com">
<Embed src = "http://player.youku.com/player.php/sid/XMjE1ODgyMTU2/v.swf" Quality = "high" width = "560" Height = "340" align = "Middle" allowScriptAccess = "always" allowfullscreen = "true" mode =" transparent "type =" application/X-Shockwave-flash "> </embed>
</Div>
<Div id = "Description">
<P> </P>
<P> </P>
<P> </P>
<P> <br/>
> <A href = "http://www.keleyi.com/a/bjac/7e8897e5ec0849e9.htm" target = "_ blank"> can change the size of the DIV layer </a> <br/>
> <A href = "http://www.keleyi.com/a/bjac/141932b419e08101.htm" target = "_ blank"> jquery uses colorbox to pop up the picture group browsing layer </a> <br/>
> <A href = "http://www.keleyi.com/dev/433ee98f4133d7b5.htm" target = "_ blank"> jquery implements a drag-and-drop floating layer (version 2) </a> <br/>
> <A href = "http://www.keleyi.com/dev/7fd16e1b9849dba4.htm" target = "_ blank"> jquery "add this page" Code </a> <br/>
> <A href = "http://www.keleyi.com/a/bjac/1329fae4a4a54bdd.htm" target = "_ blank"> ke leyi advanced pop-up menu (three levels of menus are available) </a> <br/>
> <A href = "http://www.keleyi.com/a/bjac/939631bb07adb4dc.htm" target = "_ blank"> light off Effect Original article </a>
</P>
</Div>
</Div>
<Div id = "shadow"> </div>
</Body>
</Html>
This article reposted from Ke leyi http://www.keleyi.com/a/bjac/939631bb07adb4dc.htm