My first tip, hope no one has suggested this before,
Create a html splash page, upload using your file manager, then add the code in your custom code box.
Check out mine - http://www.swapbbm.com/splash
<script type="text/javascript">
<!--
function redirect()
{
var thecookie = readCookie('doRedirect');
if(!thecookie)
{
window.location = 'http://www.yourdomain.com/splash'; //set the url you want to redirect to here
}
}
function createCookie(name,value,days)
{
if (days)
{
var date = new Date();
date.setTime(date.getTime()+(days*24*60*60*1000));
var expires = "; expires="+date.toGMTString();
}
else var expires = "";
document.cookie = name+"="+value+expires+"; path=/";
}
function readCookie(name)
{
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for(var i=0;i < ca.length;i++)
{
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
}
return null;
}
window.onload = function()
{
redirect();
createCookie('doRedirect','true','999');
}
//-->
</script>
Replies
sweet like you splash page very nice,,might have to hire you to do mines
I agree! That's one area I freak with designing!
lol
I don't do freelancing sorry!
Okay understandable
Hey Josh, what program did you use to create the splash page itself? Thanks..
Program?
Not one but a few.. Adobe flash, Illustrator, Dreamweaver.
Then converted the .swf to html 5 using googles converter for flash.
hey Josh...just noticed that this also redirects members when trying to sign up so in other words as someone is trying to sign up, it redirects them to the guest page....any ideas on how to make this work for every other page except for sign up page?
The user is already redirected before signing up.