Need help with dinamicaly embeding a youtube video


#1

I nedd to to modify a site so it could show embeded youtube videos, my problem is i cant embed a video into the folowing form:

 <td id="container1" align="right" valign="top" width="550" height="415" style="background-repeat:no-repeat;background-position:center;" bgcolor="#C8DCE1" background=<?echo "'../images/cars/".$car_id."_".$cp.".jpg?x=".(uniqid((double)microtime()*1000000,1))."'";?>>

and i have php inserting pic’s that are clicked into the “container1”,

[php]echo “<a href=# onClick=“document.getElementById(‘container1’).style.backgroundImage = 'url(…/images/cars/”.$car_id.”".$ind.".jpg?x=".(uniqid((double)microtime()*1000000,1)).")’;"><img src="…/images/cars/".$car_id."".$ind.".jpg?x=".(uniqid((double)microtime()*1000000,1))."" width=“87” border=“0”>";[/php]


#2

I don’t see any embed code in there, did you post the right part?


#3

aa well im trying to figure out how to make this part:
[php] echo "<a href=# onClick="document.getElementById(‘container1’).style.backgroundImage = $video[/php]
where $video would be my embeded code for youtube like iframe or something, i thinking making the video like background on “container1”? is it posible?