Click here to Skip to main content
15,910,787 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Here is the code on my one page website (not done by me)

HTML
<pre><div id="wrapper">
	<div class="logo"></div>
    <div class="clear"></div>
    <div id="mainvideo">
    	<center><iframe frameborder="0" width="930" height="350" src="http://www.dailymotion.com/embed/video/x12n8ak"></iframe> </center>
    </div>
    <div class="clear"></div>
    <center>
   
	<div class="clear"></div>
    <br>
    <div id="videos2">
    &nbsp;&nbsp;<iframe frameborder="0" width="460" height="255" src="http://www.dailymotion.com/embed/video/k53yXUNMSXRepk4oUZn"></iframe> &nbsp;&nbsp;&nbsp;
    <img src="images/comingsoon.jpg">
    <div class="clear"></div>
    <div id="videos">


Two videos from Dailymotion play, but I'm trying to get a third video to play by entering code like this:

HTML
<div class="clear"></div>
    <br>
    <div id="videos2">
    &nbsp;&nbsp;<iframe frameborder="0" width="460" height="255" src="http://www.dailymotion.com/embed/video/k53yXUNMSXRepk4oUZn">

    <div class="clear"></div>
    <div id="videos2"> 
	&nbsp;&nbsp;&nbsp;<iframe frameborder="0" width="460" height="355" src="http://www.dailymotion.com/video/k5AxMseDmsYsmL4KtMc></iframe>


What i dont understand is that the coder specifies "videos2" but i dont know any folder or file called that so can't change it. I copied his code and just entered in new video url,.. but nothing!! I think I have to specify a whole new div id, is that it?

If you need link to my website just pm me - thanks, bye,
Posted
Comments
Ashwani Gusain 12-Oct-13 5:33am    
just give the link and tell me you are playing all videos togather in single web page?

1 solution

You can't use same id for 2 divs on same page.Try like below:

XML
<div id="videos3">
    &nbsp;&nbsp;<iframe frameborder="0" width="460" height="255" src="http://www.dailymotion.com/embed/video/Your3rdvideo"></iframe> &nbsp;&nbsp;&nbsp;
    <img src="images/comingsoon.jpg">
    <div class="clear"></div>


I hope this will help to you.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900