Forum Moderators: open

Message Too Old, No Replies

iframe in youtube

         

zozzen

11:27 am on Oct 20, 2007 (gmt 0)

10+ Year Member



Hi, do you know how to make a iframe like youtube?

On the right hand side of the page, there's a scrolling "iframe", but the iframe doesn't load its content from other pages, all contents are actually in the same page. It seems to be a great way to manage content, how can they make it?
[youtube.com...]

Thanks a lot!

tedster

2:14 pm on Oct 20, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I don't think that's an iframe - rather it's a div with scrolling. The contents are managed through Ajax, so there's a lot of scripting to wade through in the source code to be 100% sure. However, a basic search on the source code for the character string "frame" turns up nothing - and a scrolling div has exactly the characterstics you describe - all the content is at one url.

All you need is to create rules for the size of the block element and add "overflow:auto". In fact, you can make other block elements into scrolling areas the same way - I've done it eith <blockquote> to good effect.

[edited by: tedster at 2:21 am (utc) on Oct. 23, 2007]

zozzen

11:03 pm on Oct 22, 2007 (gmt 0)

10+ Year Member



Really big thanks! I searched the keywords you gave me and immediately got the script.