1) Script Title: splashpage.js
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...amicsplash.htm
3) Describe problem: I am trying to get the script to work on Xampp on my local drive. I am not a js Savant by any stretch of the imagination and I wonder if someone can look at my settings to see where I have gone wrong.
This is the simple code for the landing page...
"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript" src="js/splashpage.js">
/***********************************************
* Splash Page script- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
</script>
</head>
<body>
<p>Now is the time for all good men to come to the aid of their party.</p>
</body>
</html>"
*******
This is the relevant splashpage.js entries...
"//Splash Page script- http://www.dynamicdrive.com/
//Created: August 17th, 2007'
var splashpage={
// Splash Page Script Activation (1=enabled, 0=completely disabled!)
splashenabled: 1,
//1) URL to file on your server to display as the splashpage
// Original Code splashpageurl: "http://images.google.com/",
splashpageurl: "http://localhost/website/splashpage1.html
//2) Enable frequency control? (1=yes, 0=no)
enablefrequency: 1,
//3) display freqency: "sessiononly" or "x days" (string value). Only applicable if 3) above is enabled
displayfrequency: "sessiononly",
//4) HTML for the header bar portion of the Splash Page
// Make sure to create a link that calls "javascript:splashpage.closeit()")
// An IE bug means you should not right align any image within the bar, but instead use "position:absolute" and the "right" attribute
defineheader: '<div style="padding: 5px; color: white; font: bold 16px Verdana; background: black url(images/blockdefault.gif) center center repeat-x;"><a style="position:absolute; top: 2px; right: 5px" href="javascript:splashpage.closeit()" title="Skip to Content"><img src="images/skip.gif" border="0" width="114px" height="23px" /></a>test 1</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,
////No need to edit beyond here//////////////////////////////////"
*******
The html files are in the root directory(website)..the javascript images are in separate directories, in the root directory.
Thanks for the view.
IGLOOTOO
**Sorry for the truncated post. I had to attend a meeting.**
I have tried all sort of addressing for the splashpageurl, including the full path to the landing page, ie "c:\yada\yada\yada\yada.html" ; "http://localhost.website.splashpage1.html" ; "http://localhost/website/images/SaveOurForests.jpg" ; etc.
I tried variations of the Frequecy Control 1;0 ; I also increased the timer function to 150-no success.
I realize I am missing something fundamental-but that comes from being a noobe.



Reply With Quote

Bookmarks