Author Topic

Quoc Huy Nguyen Dinh

Wednesday 20 October 2010 6:04:03 am

Comment62867

Is it what you want to get?

<html>

<head>
<style>
#player {
width: 480px;
height: 385px;
border: solid 1px #000;
float: left;
margin-right: 15px;
}
</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script>
$(document).ready(function() {
  $(".video").click(function() {
    $("#player").html('<object width="480" height="385"><param name="movie" value="' + $(this).attr('href') + '"></param><param value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="'+ $(this).attr('href') +'" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object>');
    return false;
  });
});
</script>
</head> 

<body>
<div id="player"></div>
<div id="list">
Video list:<br/>
<a href="http://www.youtube.com/v/Ylco0bkFYIo?fs=1&amp;hl=en_US" class="video">Exponential 4.3 demo</a><br/>
<a href="http://www.youtube.com/v/w4Rx1U-heYg?fs=1&amp;hl=en_GB" class="video">eZ Awards 2010</a>
</div>
</body></html>