Forum Moderators: phranque

Message Too Old, No Replies

Iframe question

specifying only part of a page in the iframe

         

Doood

5:33 pm on Jan 9, 2005 (gmt 0)

10+ Year Member



I have a links page with lots of text links on it and I want to put one section of those links on my new site, not the whole page. I guess iframes are the way to go but I don't know how to iframe only a certain section of a page. Is it possible?

The purpose is so when I make changes to the original links, the changes will appear in the links on the new site too.

Can you specify a certain part of a page to be in the iframe? Or would I have to make a seperate page for those links and use iframes on both sites?

I tried iframes across domains on different servers before and my server load when sky high. This time both sites are on the same server.

httpwebwitch

5:25 am on Jan 11, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



you can crop an iframe to the top left corner by specifying the height and width and turning off scrollbars.

you can even scroll within the iframe using some JS trickery

but really it would be better to put your links on a seperate page and include them in both places.

The best alternative is to use a server scripting language to INCLUDE one file into another - a useful technique for single-sourcing.

for example:
<?php include("mylinks.htm");?>

or

<!--#include virtual="mylinks.htm"-->