View Full Version : Drop-In Content Box.

02-04-2006, 02:49 AM
Drop-In Content Box (http://www.dynamicdrive.com/dynamicindex17/dropinbox.htm)

I just came across this nice little piece of work and I like the idea of it. However loading the box's content from an external file would prove much more usefull.

Does anybody know of a way to implement this? I have had a shot at it but nothing even close yet.

02-04-2006, 12:08 PM

What you could do it place an inline frame in the drop in box.. and have the text you want to have on another page. As in:

<div id="dropin" style="position:absolute;visibility:hidden;left:200px;top:100px;width:411px;height:230px;background-color:#F5F5F5">

<div align="right"><a href="#" onClick="dismissbox();return false">[Close Box] </a></div>

<iframe name="I1" src="sample1.htm" width="403" height="206" scrolling="no" border="0" frameborder="0">
Your browser does not support inline frames or is currently configured not to display inline frames.

02-04-2006, 12:43 PM
Ahh i should have mentioned i am trying to avoid inline frames and frames alike as much as possible. They cause more problems then they are worth and will eventually be depracated by standard.

02-05-2006, 03:38 AM
I'm not aware of any plans to depricate iframes in HTML. Perhaps in XHTML or XML.

02-05-2006, 10:23 PM
Well yeah that's what I meant I am trying to validate xhtml 1.0 transitional but it would seem due to me using <marquee> i can't now and I don't see the point in using something complex that can be done with a simple tag.

02-05-2006, 10:58 PM
Well, the thing most folks don't seem to realize about XHTML and validating for it is that XHTML isn't the 'next step' for HTML but rather a different way for browsers and servers to interact, altogether. Many servers will not serve your valid XHTML document as anything other than plain HTML and many browsers, even if served XHTML can only see HTML. So, unless there is a particular system set up with the server serving and the majority of clients receiving XHTML and you need to exploit that format's advanced features, just worry about writing and validating in HTML. It will be around for a long, long, long time.