cruelio
12-26-2003, 07:42 PM
be careful this works for your visitors and not just you
i whipped this up for my website, so my visitors can see the graph, and click on it for more details. copy and paste the code below, make sure to at least customize your project id number:
<script>
// <------------------------------------------->
// <------ CRUELIO'S STAT GRAPH SCRIPT -------->
// <------------------------------------------->
// Author: cruelio
// Email: cruelio@msn.com
// Comments: as seen on http://opendreambox.afraid.org. just fill in your
// custom values and insert the script where
// you want the graph displayed
// <------------------------------------------->
// <----- FILL IN YOUR CUSTOM VALUES ---------->
// <------------------------------------------->
var projectId=xxxxxx // Type your project id here
var length=7 // How many days the report should include
// <------------------------------------------->
// <------- DO NOT EDIT BELOW HERE ------------>
// <------------------------------------------->
var img="<img src=\"http://www.statcounter.com/project/standard/graph_daily_summary.php?project_id="+projectId+"&startDate="
var TheDate=new Date()
var TheMonth = TheDate.getMonth() + 1;
if (TheMonth < 10) TheMonth = "0" + TheMonth;
var TheMonthDay = TheDate.getDate();
if (TheMonthDay < 10) TheMonthDay = "0" + TheMonthDay;
var TheYear = TheDate.getYear();
if (TheYear < 1000) TheYear += 1900;
var d2=TheYear+"-"+TheMonth+"-"+TheMonthDay
TheDate.setDate(TheDate.getDate()-length)
TheMonth = TheDate.getMonth() + 1;
if (TheMonth < 10) TheMonth = "0" + TheMonth;
TheMonthDay = TheDate.getDate();
if (TheMonthDay < 10) TheMonthDay = "0" + TheMonthDay;
TheYear = TheDate.getYear();
if (TheYear < 1000) TheYear += 1900;
var d1=TheYear+"-"+TheMonth+"-"+TheMonthDay
img=img+d1+"&endDate="+d2+"&\">"
img="<a href=\"http://www.statcounter.com/project/standard/stats.php?project_id="+projectId+"&guest=1\">"+img+"</a>"
document.write(img)
</script>
tell me what you all think.
regards
cruelio
p.s. happy holidays :D
i whipped this up for my website, so my visitors can see the graph, and click on it for more details. copy and paste the code below, make sure to at least customize your project id number:
<script>
// <------------------------------------------->
// <------ CRUELIO'S STAT GRAPH SCRIPT -------->
// <------------------------------------------->
// Author: cruelio
// Email: cruelio@msn.com
// Comments: as seen on http://opendreambox.afraid.org. just fill in your
// custom values and insert the script where
// you want the graph displayed
// <------------------------------------------->
// <----- FILL IN YOUR CUSTOM VALUES ---------->
// <------------------------------------------->
var projectId=xxxxxx // Type your project id here
var length=7 // How many days the report should include
// <------------------------------------------->
// <------- DO NOT EDIT BELOW HERE ------------>
// <------------------------------------------->
var img="<img src=\"http://www.statcounter.com/project/standard/graph_daily_summary.php?project_id="+projectId+"&startDate="
var TheDate=new Date()
var TheMonth = TheDate.getMonth() + 1;
if (TheMonth < 10) TheMonth = "0" + TheMonth;
var TheMonthDay = TheDate.getDate();
if (TheMonthDay < 10) TheMonthDay = "0" + TheMonthDay;
var TheYear = TheDate.getYear();
if (TheYear < 1000) TheYear += 1900;
var d2=TheYear+"-"+TheMonth+"-"+TheMonthDay
TheDate.setDate(TheDate.getDate()-length)
TheMonth = TheDate.getMonth() + 1;
if (TheMonth < 10) TheMonth = "0" + TheMonth;
TheMonthDay = TheDate.getDate();
if (TheMonthDay < 10) TheMonthDay = "0" + TheMonthDay;
TheYear = TheDate.getYear();
if (TheYear < 1000) TheYear += 1900;
var d1=TheYear+"-"+TheMonth+"-"+TheMonthDay
img=img+d1+"&endDate="+d2+"&\">"
img="<a href=\"http://www.statcounter.com/project/standard/stats.php?project_id="+projectId+"&guest=1\">"+img+"</a>"
document.write(img)
</script>
tell me what you all think.
regards
cruelio
p.s. happy holidays :D