Hello everyone, i have a question and hope someone can help point me in the right direction.What i am trying to do is use embedded video code from like youtube.com and set it up so that my player on my home page, will refresh to a new video. Kind of like random images.I have tried using a basic random image file:
<td align="center"><a href="http://www.yoursite.com/forum"> <script language="JavaScript"> <!-- function random_imglink(){ var myimages=new Array() myimages[1]="http://www.yoursite.com/image1.jpg" myimages[2]="http://www.yoursite.com/image2.jpg" var ry=Math.floor(Math.random()*myimages.length) if (ry==0) ry=1 document.write('<img src="'+myimages[ry]+'" border="2" alt="" /><hspace="25" vspace="25">') } random_imglink() //-->" </script></a></td>
But when i install the link information, it doesn't show anything:
<td align="center"><object> <param name='allowScriptAccess' value='sameDomain' /> <param name='movie' value='http://www.youtube.com/v/RIW_K-YrEIQ' /> <param name='flashVars' value='http://www.youtube.com/v/RIW_K-YrEIQ' /> <param name='quality' value='high' /> <param name='bgcolor' value='#686F7E url(http://www.insanemustangs.com/forums/images/gradients/Slate.jpg)' /> <embed src="http://www.youtube.com/v/RIW_K-YrEIQ" type="application/x-shockwave-flash" wmode="transparent" width="125" height="150" quality='high' bgcolor='#686F7E url(http://www.insanemustangs.com/forums/images/gradients/Slate.jpg)' name='' align='center' allowScriptAccess='sameDomain' pluginspage='http://www.macromedia.com/go/getflashplayer' /> </object></td>
So let's say i want to be able to show 2 video's from youtube, and i run this code:
<td align="center"><object> <param name='allowScriptAccess' value='sameDomain' /> <param name='movie' value='http://www.youtube.com/v/RIW_K-YrEIQ' /> <param name='flashVars' value='http://www.youtube.com/v/RIW_K-YrEIQ' /> <param name='quality' value='high' /> <param name='bgcolor' value='#686F7E url(http://www.insanemustangs.com/forums/images/gradients/Slate.jpg)' /> <H4>VIDEO1</H4> <embed src="http://www.youtube.com/v/RIW_K-YrEIQ" type="application/x-shockwave-flash" wmode="transparent" width="125" height="150" quality='high' bgcolor='#686F7E url(http://www.insanemustangs.com/forums/images/gradients/Slate.jpg)' name='' align='center' allowScriptAccess='sameDomain' pluginspage='http://www.macromedia.com/go/getflashplayer' /> <H4>VIDEO2</H4><embed src="http://www.youtube.com/v/1iqOkrnJQjQ" type="application/x-shockwave-flash" wmode="transparent" width="125" height="150" quality='high' bgcolor='#686F7E url(http://www.insanemustangs.com/forums/images/gradients/Slate.jpg)' name='' align='center' allowScriptAccess='sameDomain' pluginspage='http://www.macromedia.com/go/getflashplayer' /> </object></td>
I get the 2 video's in a line, and each is viewable, but not randomly......if that make's any sense?If you go to my home page, you can see what i am talking about www.insanemustangs.com , then just scroll down and look on the left hand side of the page, you will see my video box......it does work, but i would really like to just use one video box and have the video change during a page refresh...Thanks in advance to anyone that is able to help me figure this one out.........I would really appreciate the help....hotwheels