Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I am thinking of ways of adding a "chat bar" onto websites. One idea that I had works like this:

  • random site(e.g.): youtube.com/video1
  • w/ "chat bar" attached: chatbar.com/youtube-video1

So basically youtube.com/video1 will be loaded by my webpage (with the "chat bar"). I think google image re

Is this even possible? (I'm pretty sure good does something similar when a user clicks a link from image search results) Point me in the right direction.

Thanks

share|improve this question
add comment

1 Answer 1

You can use an IFRAME to put another web page into yours. You won't need to do that with Youtube as you can embed it in your page. (Look on youtube for the embed option under sharing.)

You use an IFRAME like this:

<iframe src="chatbar.com/youtube-video1" width="xxx" height="yyy">
</iframe>

Where xxx and yyy are the size you want it.

share|improve this answer
    
Almost right, the src should contain the page you wish to frame, not the the page that contains the bar. –  Rincewind42 Jul 22 '11 at 10:35
    
Thanks. What about using php echo get_file_content('youtube.com/video1')? Is there any advantage in using Iframe instead of this? –  whamsicore Jul 22 '11 at 18:43
    
That's actually a better solution, because it makes it part of the page. Some people may have their browsers configured to block iframes as they are a security risk. –  paulmorriss Jul 25 '11 at 9:10
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.