molendijk
11-23-2012, 10:57 AM
Author: Arie Molendijk.
A script that loads the content pages of a site in an iframe. When the iframe is 'ready', the iframed page's URL is displayed in the main page. The address bar contains relevant info regarding the iframe's URL. The main page is static i.e. it doesn't change. It contains buttons for printing and bookmarking the iframed pages. Any iframed page that isn't accessed via the site's main page automatically puts itself on it (=on the main page), except when it belongs to a foreign domain.
The dynamic info in the main page regarding the iframed page's URL(s) is not lost when the visitor starts using the browser's history buttons.
Advantages:
No need to find a way to include the navigation menu (contained in the main page) on every page of the site, since the main page 'is always there'.
As the main page (containing the menu) never changes, there will be no flicker (white flash) on page transition.
Scripts running in the main page will not be stopped when the visitor goes from one page to another. So, for instance, a video started by a script in the main page will not be stopped on page transition.
DEMO here (http://www.mesdomaines.nu/eendracht/include_menu_web_templates9c). EDIT: updated 11-26-2012 --> 11-27-2012.
(I have submitted scripts like this one before, but this one essentially differs from the others in that the address bar and the iframe contain clearly visible info about the actual url of the pages).
A script that loads the content pages of a site in an iframe. When the iframe is 'ready', the iframed page's URL is displayed in the main page. The address bar contains relevant info regarding the iframe's URL. The main page is static i.e. it doesn't change. It contains buttons for printing and bookmarking the iframed pages. Any iframed page that isn't accessed via the site's main page automatically puts itself on it (=on the main page), except when it belongs to a foreign domain.
The dynamic info in the main page regarding the iframed page's URL(s) is not lost when the visitor starts using the browser's history buttons.
Advantages:
No need to find a way to include the navigation menu (contained in the main page) on every page of the site, since the main page 'is always there'.
As the main page (containing the menu) never changes, there will be no flicker (white flash) on page transition.
Scripts running in the main page will not be stopped when the visitor goes from one page to another. So, for instance, a video started by a script in the main page will not be stopped on page transition.
DEMO here (http://www.mesdomaines.nu/eendracht/include_menu_web_templates9c). EDIT: updated 11-26-2012 --> 11-27-2012.
(I have submitted scripts like this one before, but this one essentially differs from the others in that the address bar and the iframe contain clearly visible info about the actual url of the pages).