doctypehtml/videocss.html
2011-02-05 11:10:18 +05:30

42 lines
807 B
HTML

<!doctype html>
<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(function() {
$('#do').click(function() {
var code = $('#testCode').val();
eval(code);
});
});
</script>
<style type="text/css">
#testCode {
width: 500px;
height: 150px;
font-size: 20px;
}
.testvideo {
width: 320px;
}
</style>
</head>
<body>
<div id="wrapper">
<div id="preview">
<video id="video1" class="testvideo" src="test1.ogg" controls="controls"></video>
<video id="video2" class="testvideo" src="test2.ogg" controls="controls"></video>
</div>
<div id="txtWrap">
<textarea id="testCode"></textarea><br />
<button id="do">Do</button>
</div>
</div>
</body>
</html>