Batman and Robin aint got nothing on this.
You can use simple PHP like the include statement to get a file imported into a file. For example all the pages of the redesign have this going on. I thought you can only do PHP files, but appartently HTML files work too. There is a little stuff that is lost in translation, as the original file (.php) has to be in the same directory as the imported file in order for the links to work, unless the links are based on root level.
Here is the command:
Ex: www.ugasmis.org/time.php
time.php has a include statement that states


Notice how the SMIS logo works, but the images for the thumbnails do not.
The page its loading is: http://www.ugasmis.org/rphoto/rd2003/noflash.html
PS:
I'm about 85.6% done converting the site to the new template...
Here is the command:
<? include("announcements.php"); ?>Now, lets say we are working on time.php wich is in the root level of the site.
Ex: www.ugasmis.org/time.php
time.php has a include statement that states
<? include(" http://www.ugasmis.org/rphoto/rd2003/noflash.html"); ?>Now, the html from noflash.html will be imported, but the links won't work since time.php is not in the rd2003 directory. Once moved there the page starts to work. Ofcourse, there are breaks that need to be avoided as this is not like the iframe script, but rather imports the html dynamically into the requestiong page. Check it out:


Notice how the SMIS logo works, but the images for the thumbnails do not.
The page its loading is: http://www.ugasmis.org/rphoto/rd2003/noflash.html
PS:
I'm about 85.6% done converting the site to the new template...

0 Comments:
Post a Comment
<< Home