0 votes
in Programming by (440 points)
retagged by

I have seen lot of people are showing ads over the videos which they are embedding from Youtube, Dailymotion, Ebound, Vimeo etc on their blogs and websites.How to place ads over embedded videos? that is my question.

Can anyone help.

Thanks.:)

1 Answer

0 votes
by (700 points)

1. Create a HTML file with the name ad.html and paste your ad (adsense etc) code in it.

2. Upload that ad.html file and this image: http://imgur.com/RBWBmcB in root folder of your website.

3. After that while embedding video from youtube,dailymotion,ebound,vimeo etc use this code for embedding video on your blogs or websites with ad's placement over video:

<!--Begining of object/video code-->
<!--Add your embedded video code from youtube,dailymotion,ebound,vimeo etc here-->
<!--Ending of object/video code-->


<!--BEGINNING OF AD CODE-->
<div id="bannerfloat2" style="position: absolute; top: 225px; left: 350px; height: 40px; width: 445px"> 
<!-- BEGIN STANDARD TAG - DO NOT MODIFY --> 
<IFRAME FRAMEBORDER=0 MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=NO WIDTH=300 HEIGHT=250 SRC="http://yoursite.com/ad.html"></IFRAME>
<!-- END TAG --> 
<div style="position: absolute; left: 30px; top: 105px; width: 89px; height: 12px"> 
<span onMouseUp="document.getElementById('bannerfloat2').style.display='none'"> 
<img src="http://yoursite.com/close.png"/></span>

</span></div> 


<!--ENDING OF AD CODE-->

4. You can change the position of ad according to your adjustments or requirements by changing top and left tag values from the below code:

<div id="bannerfloat2" class="mceItemVisualAid mceItemLayer" style="position: absolute; top: 225px; left: 350px; height: 40px; width: 445px;">

5. Similarly you can change the position of close bar according to your adjustments or requirements by changing top and left tag values from the below code:

<div style="position: absolute; left: 30px; top: 105px; width: 89px; height: 12px"> 

Hope it will help. :)

Enjoy.!!!

by
is there any way ttho remove the add from embedded code. like for site cloud.ec  www.funmoviez.net
by (700 points)
You mean you want to remove ads from other's embedded streams.Am I right?
...