Insert the following code into the HEAD section of your page:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
Download the Script file here
Download the Skip to content image here
Download the filler image here
Make sure your html, the script and the images are all in the same folder.
The main settings for this script are done inside splashpage.js. Open the file using any text editor, and configure the first few variables:
but instead use "position:absolute" and the "right" attribute defineheader: '<div style="padding: 5px; color: white; font: bold 16px Verdana;
background: black url(blockdefault.gif) center center repeat-x;">
<a style="position:absolute; top: 2px; right: 5px"
<img src="skip.gif" border="0" width="114px" height="23px" /></a>
Bought to you by Google Images...</div>', //5) cookie setting: ["cookie_name", "cookie_path"] cookiename: ["splashpagecookie", "path=/"], //6) Auto hide Splash Page after x seconds (Integer value, 0=no)? autohidetimer: 15,
Here’s an explanation of each of these variables:
splashpageurl: Full URL to the page you wish to show as the splash page. While this can either be a page on your server or the web at large, note that in the later case, it may not always work reliably. Some sites have scripts on their pages that will throw an error when the page is contained in an IFRAME, or even break out of the frame altogether. Also, if you want the links inside the splash page to open in a new window, for example, you can’t do so on external site pages.
enablefrequency: Set to 1 to enable frequency control, 0 to disable it (so splash page shows each time page loads!).
displayfrequency: If proceeding variable set to 1, specify the desired frequency. Valid values are either “sessiononly”, or “x days”, such as “5 days”.
autohidetimer: Controls whether to automatically close the Splash Page after x seconds. Enter 0 for no, or an integer in seconds, such as 15.