View Single Post
Old 02-02-2012, 10:18 PM   PM User | #2
xelawho
Senior Coder

 
xelawho's Avatar
 
Join Date: Nov 2010
Posts: 2,461
Thanks: 52
Thanked 457 Times in 455 Posts
xelawho will become famous soon enoughxelawho will become famous soon enough
what are those on the right side? photos? if they are simple img tags, you can use this code, which works with links, but just moving the onclick over to the img tag:

Code:
<html>
<head>
<title> Sample Page </title>
<script>
function play(clip){
document.getElementById("frame").src= "http://www.youtube.com/v/"+clip+"&autoplay=1&rel=0";
 } 
</script>
</head>
<body>
<object width="425" height="355"><param name="movie" value=""></param><param name="wmode" value="transparent"></param><embed id ="frame" src="" type="application/x-shockwave-flash" border="1" wmode="transparent" width="425" height="344"></embed></object><br>
<a href="#" onclick="play('6Zx39v3JUUI'); return false"> THIS IS FIRST Video Link </a><br>
<a href="#" onclick="play('VVp0eo0vN8U'); return false"> THIS IS SECOND Video Link </a>
</body>
</html>
xelawho is offline   Reply With Quote