|
Page 1 of 1 |
|
Posted: Mon, 3rd Dec 2007 05:27 Post subject: How to redirect URL with Keep OLD url but there is a problem |
|
 |
I have code to redirect with keeping Original url using frame .. anyway .. its working great but ..
The problem i don't get statics !!
when i use statcounter and put code i got no stats . . .i don't know whats the problem please help me find out and where i could put the code there
Code: | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title>PAGE TITLE</title>
<META NAME="Keywords" CONTENT="KEYWORDS , KEYWORDS 2">
<META NAME="Description" CONTENT="">
<!--<script language="javascript">
function dopage() {
ZZZNULLZZZ.location ="http://redirectf.dnsix.com/zzzcount.php?domain=STOLEMY.COM";
}
</script>-->
</head>
<!--<frameset frameborder="0" framespacing="0" border="0" rows="100%,0,*"
onload="javascript:dopage()">-->
<frameset frameborder="0" framespacing="0" border="0" rows="100%">
<frame name="MYTOPFRAME" src="TARGET URL" noresize>
<!-- <frame name="ZZZNULLZZZ" noresize>-->
<noframes>
<body>
</body>
</noframes>
</frameset> |
I know there is ways with Htacess but i don't want to use it .. i just want to use this way to make stats works .. in that code ..
Help me plz .. !
|
|
Back to top |
|
 |
Rinze
Site Admin
Posts: 2343
|
Posted: Mon, 3rd Dec 2007 11:45 Post subject: |
|
 |
Add the onload tag to the frameset you didn't comment out.
|
|
Back to top |
|
 |
|
Posted: Mon, 3rd Dec 2007 15:32 Post subject: |
|
 |
Can you explain more .. ?
how ? and where i can put the code ?
|
|
Back to top |
|
 |
|
Posted: Wed, 12th Dec 2007 11:07 Post subject: |
|
 |
|
|
Back to top |
|
 |
$en$i
VIP Member
Posts: 3127
|
Posted: Wed, 12th Dec 2007 15:52 Post subject: |
|
 |
You have to put the counter in a page loaded by the frameset. You can add a frame of 0 of height just for that counter frame, it will then logs how many times the frameset was loaded (it is what you are trying to do right?).
Here is your frameset (xhtml 1.0, the javascript in the header is a fix for the deprecated frameSpacing in IE that will let the frameset validate in xhtml):
Code: | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script type="text/javascript">
<!--//
var frm = getElementsByTagName('frameset');
for (i=0; i < frm.length; i++) {
if (frm(i).frameSpacing) {
frm(i).frameSpacing = 0;
}
}
//-->
</script>
</head>
<frameset rows="0,*">
<frame src="counter.html" name="counter" scrolling="no" noresize="noresize" id="counter" title="counter" frameborder="0" />
<frame src="http://example.com" name="redirection" id="redirection" title="redirection" frameborder="0" />
<noframes><body>
</body>
</noframes>
</frameset>
</html>
|
Here is your counter.html page (xhtml 1.0, replace the values in the statistics script with the correct ones):
Code: | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<!-- Start of StatCounter Code -->
<script type="text/javascript">
var sc_project=0000000;
var sc_invisible=0;
var sc_partition=35;
var sc_security="0000000";
var sc_text=2;
</script>
<script type="text/javascript" src="http://www.statcounter.com/counter/counter_xhtml.js"></script><noscript><div class="statcounter"><a class="statcounter" href="http://www.statcounter.com/"><img class="statcounter" src="http://c36.statcounter.com/0000000/0/0000000/0/" alt="blog stats" /></a></div></noscript>
<!-- End of StatCounter Code -->
</body>
</html> |
|
|
Back to top |
|
 |
|
Posted: Thu, 13th Dec 2007 09:21 Post subject: Thank you so much |
|
 |
Thanks so much ..
Yes i understand it , you did it very easy and easy to understand , Nice
|
|
Back to top |
|
 |
Page 1 of 1 |
All times are GMT + 1 Hour |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB 2.0.8 © 2001, 2002 phpBB Group
|
|
 |
|