HTML tutorial for <OBJECT>

liunx

Guest
Can someone point me in the direction of a good HTML tutorial that covers <OBJECT> tags.<br />
<br />
I want to have a small scrollable section of HTML content in the middle of a page. The content will be changeable using a menu in a separate frame. I believe objects are what I need.<br />
<br />
Or, if anyone can give me a couple of quick pointers to get it going so I can play with the rest. I've tried a few references including Microsoft's but it doesn't explain how to use <OBJECT>, it just has the syntax.<br />
<br />
Many Thanks<!--content--><object data="PAGE.html" type="text/html"><br />
Your browser does not appear to support the<br />
<code><object></code> element,<br />
the document that is supposed to be here is<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"PAGE.html">PAGE.html</a>.<br />
</object><br />
<br />
<br />
or you could try an iframe, which is probably better as it's better supported at the moment (IE has problems with object I think):<br />
<br />
<br />
<iframe src=http://www.webdeveloper.com/forum/archive/index.php/"PAGE.html"<br />
width="90%" height="300"><br />
Your browser does not appear to support the<br />
<code><iframe></code> element,<br />
the document that is supposed to be here is<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"PAGE.html">PAGE.html</a>.<br />
</iframe><br />
<br />
<br />
or you could always merge the two:<br />
<br />
<br />
<object data="PAGE.html" type="text/html"><br />
<iframe src=http://www.webdeveloper.com/forum/archive/index.php/"PAGE.html"<br />
width="90%" height="300"><br />
Your browser does not appear to support the<br />
<code><object></code> or the<br />
<code><iframe></code> element,<br />
the document that is supposed to be here is<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"PAGE.html">PAGE.html</a>.<br />
</iframe><br />
</object><br />
<br />
<br />
But again I think IE will have problems with that, and may show a box for both the iframe and object. I'd just stick with the iframe.<!--content-->The tag is simple. The contents of the tag is what gets complicated, and the rules are different and specific for whatever object is contained in the tag. You have to find the rules for the specific object.<br />
<br />
For example, if you need to make a MediaPlayer object, you would have to go to Microsoft's MediaPlayer documentation to find out how to set the tag.<br />
<br />
It really doesn't have much to do with HTML. The object is a system thing rather than a browser thing. It's like a window in the browser to another application.<br />
<br />
An <OBJECT> can even be another HTML document, as explained by Rick.<br />
<br />
Interestingly, the <OBJECT> in NS 4 acts almost identically to the <IFRAME> in IE.<!--content-->I'm using IE 5.5 and Rick's <OBJECT> example did not work. The <IFRAME> does precisely what I want though so I guess I'll go with that. How do I create a link to change the contents of the <IFRAME> ?? What about from a separate <FRAME><!--content-->See <!-- m --><a class="postlink" href="http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/iframe.asp">http://msdn.microsoft.com/workshop/auth ... iframe.asp</a><!-- m --> for a detailed explanation.<!--content-->Just in case you're like me and are too lazy to read Gil's link, you just add a name to the iframe (<iframe name="targetMe">) then target your links (<a href=http://www.webdeveloper.com/forum/archive/index.php/"#" target="targetMe">).<!--content-->I was in the process of reading that link.<br />
<br />
I was trying all sorts of extravagant javascript to get it to work with no luck. Thanks for that Rick, I can't believe it was so simple.<!--content-->
 
Back
Top