View Full Version : counter in frames
Anyone know of a good counter that tracks referrers on a page with frames?
shane
04-07-2001, 10:58 PM
all counters, just modify the code...
eg. change
(document.referrer)
to
(parent.document.referrer)
Flash
04-09-2001, 04:21 AM
So at sexlist that would be the following code, right? (2x PARENT added)
<script language="JavaScript">
<!--
rf=""+escape(PARENT.document.referrer);
function isNotDefined(v) {return((v=="undefined")?true:false);}
if ((isNotDefined(rf)==true)||(rf=="")||(rf=="bookmarks")) {rf="Bookmark";}
else {wl=window.location.href;
if(wl.lastIndexOf('/')!=(wl.length-1)) {wl=wl+"/";}
tdr=PARENT.document.referrer;
if(tdr.lastIndexOf('/')!=(tdr.length-1)) {tdr=tdr+"/";}
if(tdr==wl) {rf="na";}}
u="rf="+rf;
if(document.bgColor!=null) {
itag="<font color=\""+document.bgColor+"\">";
} else {itag=""; }
itag=itag+"<img height='1' width='1' border='0' alt='' "+
"src=\"http://vis.sexlist.com:81/?TSLID=123456&"+u+"\">";
if(document.bgColor!=null) {itag=itag+"</font>";}
document.write(itag+"\n");
//-->
</script>
Thanks 4 the info! http://bbs.adultwebmasterinfo.com/ubb/wink.gif
<font face="Verdana, Arial" size="2">Originally posted by nick:
Anyone know of a good counter that tracks referrers on a page with frames?</font>
www.extreme-dm.com (http://www.extreme-dm.com) - they has 4 different types of code, one of them exactly for using inside frames
vBulletin® v3.7.3, Copyright ©2000-2012, Jelsoft Enterprises Ltd.