Forum Moderators: open

Message Too Old, No Replies

Open A href in iframe on Blog

Open A href in iframe on Blog

         

Rakoczy

6:44 pm on Sep 29, 2014 (gmt 0)

10+ Year Member



How do I open the a href links on blog in iframe on my blog instead of them opening in new youtube page.
I want them to line up like they do at <snip>

Here is the code

<div dir="ltr" style="text-align: left;" trbidi="on">

<div class="separator" style="float: left; text-align: center;">

<a href="https://www.youtube.com/watch?v=cvNZZXQ22Uk" imageanchor="1" style="margin-left: 1em; margin-right: 1em;" target="_blank"><img border="0" src="https://i.ytimg.com/vi/2yp8Iqj_uJ8/default.jpg" width="200"></a><br><a href="https://www.youtube.com/watch?v=cvNZZXQ22Uk">James Axler Deathlands 30 Crossways 01 </a></div>


<div class="separator" style="float: left; text-align: center;">
<a href="https://www.youtube.com/watch?v=2yp8Iqj_uJ8&list=UUNGUtNvowkETCv0rsChVN4g" imageanchor="1" style="margin-left: 1em; margin-right: 1em;" target="_blank"><img border="0" src="https://i.ytimg.com/vi/Zd4efvlxzlk/default.jpg" width="200"></a><br><a href="https://www.youtube.com/watch?v=2yp8Iqj_uJ8&list=UUNGUtNvowkETCv0rsChVN4g">another one</a></div>


<div class="separator" style="float: left; text-align: center;">
<a href="https://www.youtube.com/watch?v=2yp8Iqj_uJ8&list=UUNGUtNvowkETCv0rsChVN4g" imageanchor="1" style="margin-left: 1em; margin-right: 1em;" target="_blank"><img border="0" src="https://i.ytimg.com/vi/cg4iDWgiz/default.jpg" width="200"></a><br><a href="https://www.youtube.com/watch?v=2yp8Iqj_uJ8&list=UUNGUtNvowkETCv0rsChVN4g">number 3</a></div>




<br /></div>

[edited by: incrediBILL at 9:41 am (utc) on Sep 30, 2014]
[edit reason] URls removed. No Site Reviews. Please see forum charter and TOS. [/edit]

mw11

7:09 pm on Oct 19, 2014 (gmt 0)



In your code I can see three HTML links to youtube.com. In other words, your users can and will likely be taken to YouTube.

However, if this is not what you want, then the keywords to keep in mind are "embed" and "embedding". You want to Google "How to embed YouTube videos in my site", or "Embedding YouTube in a blog", or something similar.

lucy24

7:47 pm on Oct 19, 2014 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



If you link to {someone else's site}, your users will be taken to {someone else's site}. If instead you want them to be taken to a place on your own site that contains {someone else's site} in embedded form such as an iframe, you need to link to your own place. Put an anchor (id = blahblah) directly above the embedded content if you want users to arrive at mid-page.

And whatever you do, please don't let the audio/video start playing automatically. I have never heard of anyone, ever, saying they like it when sites do this. More likely they'll slam shut the window because they can't find the Silence button.