Skip to page content or Skip to Accesskey List.

Work

Main Page Content

Third Column Slickness Screen Size Customization

Rated 3.49 (Ratings: 2)

Want more?

  • More articles in Code
 
Picture of andyed

andy edmonds

Member info

User since: 26 Dec 1999

Articles written: 2

The techniques involves using a ILayer or IFrame (NS4 and others respectively) to bring in another page of content. One side effect is that this is also a technique for including content from a separate site.

In this case, I'm using table with alignment wrapped around the iframe/ilayer to avoid having to alter any of the other markup on the page

if (document.layers document.getElementById) {

screenwidth = window.innerWidth;

screenheight = window.innerHeight;

}

if (document.all ) {

screenwidth = document.body.clientWidth;

screenheight = document.body.clientHeight;

}

if(screenwidth > 800) {

if(document.layers) {

document.write('<table align="right" width="180"><tr><td> </td><td><ilayer src="/blogger/featured.cfm" width="180" height="' + screenheight + '" scrolling="no"></ilayer></td></tr></table>');

} else {

if(document.all document.getElementById) {

document.write('<table align="right" width="180"><tr><td> </td><td><iframe src="/blogger/featured.cfm" width="180" height="' + screenheight + '" scrolling="no"></iframe></td></tr></table>');

}

}

}

The access keys for this page are: ALT (Control on a Mac) plus:

evolt.org Evolt.org is an all-volunteer resource for web developers made up of a discussion list, a browser archive, and member-submitted articles. This article is the property of its author, please do not redistribute or use elsewhere without checking with the author.