Slash Screen help
-
I setup a site for my neighbors band and he wants a splash screen. The problem is my cookie script I wrote isn’t playing nice with wordpress and I’m beyond my capability now. It works if you click the picture before the song loads; however, if you let the song load then click it, it reloads the page. Try it for yourself: https://www.theleasduo.com
Here are some snippets:
From index.php<script type="text/javascript" src="cookie.js"></script> <html> <head> <script type="text/javascript"> // name, value, expires, path, domain, secure //alert('alert'); //Set_Cookie( 'test', 'none', '1', '/', '', '' ); // if Get_Cookie succeeds, cookies are enabled, since the cookie was successfully created. //if ( Get_Cookie( 'test' ) ) //{ // alert('got cookie true'); // cookie_set = true; // name, path, domain // make sure you use the same parameters in Set and Delete Cookie. // Delete_Cookie('test', '/', ''); // window.location = 'splash.php'; //} // if the Get_Cookie test fails, cookies are not enabled for this session. //else // cookie_set = false; setTimeout("location.href='https://theleasduo.com/splash.php'", 1); </script>
From splash.php
<script type="text/javascript"> Set_Cookie( 'test', 'none', '1', '/', '', '' ); </script>
Here’s a link to cookie.js which I’m sure isn’t the problem.
cookie.jsPlease help!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Slash Screen help’ is closed to new replies.