View Full Version : Help, I need a code!
SeroZ
06-19-2001, 06:02 AM
I want to make an exit trade with a good friend, but I don't want the exit window be opened, when the visitor allready came from my friends site.
Is this possible?
Thanks
SeroZ
Pinhead
06-19-2001, 09:35 AM
Yes, it's possible. This is just one way:
Write a cookie to the surfer's browser, which tells whether (s)he came from your friend's site, and check that same cookie before opening any exit window.
Check out the cookie and document.referrer parts of your favorite JS manual.
copy index.html to friend.html and make him send to that one.. remove the popups from friend.html ...
simple?
I think you mean this code:
<!--
function SetToFalse()
{
exit = false;
}
var exit=true;
function console()
{
if(exit)
if(parent.document.referrer!="http://www.friendsdomain.com/index.html")
window.open("http://www.yourdomain.com/console.html");}
//-->
Add the script language="javascript" at the top and the /script at the end
ICQ me (4559346) if you want to see a working example... I'm not sure if the one I posted will work http://bbs.adultwebmasterinfo.com/ubb/smile.gif
vBulletin® v3.7.3, Copyright ©2000-2012, Jelsoft Enterprises Ltd.