Forum Moderators: phranque
[edited by: jdMorgan at 5:26 pm (utc) on Jan. 1, 2005]
[edit reason] Removed specifics per TOS [/edit]
The script will need to insert code on the page at the end of the original <head> section, and at the beginning and end of the original <body> section of the page in order to avoid destroying the page's meta-information, and in order to preserve the validity of the original HTML.
Since you have no guarantee that the original page will be valid HTML, your script will need to be written so that it won't crash if the original page is missing HTML elements such as <head>, </head>, <body>, and </body>.
Whatever method you choose, you'll need to be very careful to avoid interfering with the ad providers' ability to spider and classify the original page, in order to allow them to provide targeted ads.
Jim