<ralphdahlgren.com>


 
Navigation
  • Home
  • Etomite CMS News
  • Code Library
  • Tutorials
    • Templates
    • New parseChunk() Tutorial
    • XHTML Objects
    • XMLHttpRequest
  • Ralphs Rants
  • Site Map
  • Search Help
  • Login|Logout
 
Credits
 
Valid XHTML 1.1 Valid CSS! Powered By PHP Powered By MySQL
Powered By Etomite
 

XHTML Objects

This is an example of how an embedded object can be used in place of an iframe when using the XHTML 1.1 DOCTYPE which doesn't support them due to deprication. This tutorial, actually more of a simple example, is a direct result of attempting to help a member of the Etomite community modify his site to be XHTML 1.1 compliant. It really does validate even with attributes which would cause other tags to throw errors. You can read more about the object tag on the w3.org website.

Chunk: VirusRadar
<div class="alignCenter">
  <object 
    style="overflow:hidden;" 
    width="120" 
    height="163" 
    type="text/html" 
    data="http://www.virus-radar.com/banner_top1_enu.html">
  </object>
  <object 
    style="overflow:hidden;" 
    width="120" 
    height="163" 
    type="text/html" 
    data="http://www.virus-radar.com/banner_top5_enu.html">
  </object>
  <object 
    style="overflow:hidden;" 
    width="120" 
    height="163" 
    type="text/html" 
    data="http://www.virus-radar.com/banner_tir_enu.html">
  </object>
  <object 
    style="overflow:hidden;" 
    height="163" 
    type="image/jpg" 
    data="assets/images/misc/RalphD.jpg">
  </object>
</div>


Powered by Etomite 1.1 (Prelude).
MySQL: 0.3182 s, 13 request(s), PHP: 0.1359 s, Total: 0.4542 s, document retrieved from database
2008-11-21 03:55 PM