I have a piece of code that makes a button, and when clicked opens a video overlay based on the div id. The code relies on the rel attribute to make this happen. However, the rel attribute is not recognized in XHTML 1.0 Transitional. How can I use a javascript event such as onclick to generate the part of the code need for the rel attribute, and thus make the completed button tag w3c compliant? Here is my code snippet below:
[CODE]
<div align="center">
<button rel="#overlayvideo" style="background-color:#3db3e0; font-variant:small-caps;">Play Video</button>
</div>
</div>
<div class="videooverlay" id="overlayvideo" style="background-image:url(http://www.copycatdigital.ca/scripts/flowplayer_scripts/blue.png)">
<a class="player" href="http://www.copycatdigital.ca/ccdad.flv">
</a> </div>
Thanks!
Dwayne


Reply With Quote

Bookmarks