PDA

View Full Version : Javascript help


Dreamer
03-30-2002, 04:07 PM
I have javascript popup which is activated for all surfers except those from certain sites. Those sites are defined with this code:<br /><br />var console=true;<br />if (document.referrer.indexOf('eutopiamovies.com') &gt; -1) { exit = false; }<br />if (document.referrer.indexOf('jizzhut.com') &gt; -1) { exit = false; }<br />if (document.referrer.indexOf('ramis-movies.com') &gt; -1) { exit = false; }<br />if (document.referrer.indexOf('dailymoviepost.com') &gt; -1) { exit = false; }<br /><br />Does someone know what line should I add into this so people which are comming from bookmarks also don't get popup when they exit site?<br /><br />Thanks.

basik
03-30-2002, 04:09 PM
i'm not sure of the exact code but you would definetly have to use some cookies to do that.<br />you could go to a free JS site and look at the source to one of the scripts that say write "You have been to this site ____ times" and modify that. thats all i could think of. wish i could help more.

PeepNTom
03-30-2002, 07:28 PM
contact me on ICQ dreamer and I'll fix ya up, and<br />no it difinetely doesnt need cookies to work <img border="0" title="" alt="[Roll Eyes]" src="rolleyes.gif" />