Bookmark to del.icio.us
FF1+ IE5+ Opr7+
Ajax Rotating Includes Script
Note: Updated Dec 14th', 05 to fix bug related to calling the script multiple times on a page.
Description: This is a shakeup of the Ajax Includes script to let you input a list of external pages for the script to choose and selectively include one onto the current page. Three types of inclusion are supported:
You can call the script multiple times on the same page, each with a different inclusion type. Note that due to inherent limitations, the included files MUST be from the same domain as the page doing the inclusion.
Demo (Display type used below is "dailyw", or different file for each day of the week):
Step 1: Insert the below script to the HEAD section of your page:
Step 2: Once that's done, to include an external page, use the below code in the BODY section of your page where you want the external file to be included:
Where "includedfiles" is the name of the array in the code of Step 1 that contains your list of files, and "dailym", the inclusion type. For the inclusion type, the 3 valid values are: