This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Microsoft Publisher > April 2005 > hit counter





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author hit counter
Nickolas Frost

2005-04-22, 7:44 pm

I have hit counter code for Publisher that works in a text display but I am
unable to get it to work with custom images. I know the code is correct and
it works in other programs but Publisher won't display the .gif images of the
counter. Can anyone help? Here is the 2 part code, the images I have saved as
0-9.gif but Publisher keeps changing the names to something like Image23.gif
in the file folder.

<script
src="http://www.statsmachine.com/cgi-bin/counter.cgi?907|90788"></script>

<CENTER>Number of visitors:
<a href="http://www.statsmachine.com/"><script type="text/javascript"><!--
mycount = mycount + 1;
var oooooo = Math.floor((mycount)/100000);
mycount = (mycount-(oooooo*100000));
var ooooo = Math.floor((mycount)/10000);
mycount = (mycount-(ooooo*10000));
var oooo = Math.floor((mycount)/1000);
mycount = (mycount-(oooo*1000));
var ooo = Math.floor((mycount)/100);
mycount = (mycount-(ooo*100));
var oo = Math.floor((mycount)/10);
mycount = (mycount-(oo*10));
var o = mycount;
document.write("<img border=0 src=" + oooooo + ".gif><img border=0 src=" +
ooooo + ".gif><img border=0 src=" + oooo + ".gif><img border=0 src=" + ooo +
".gif><img border=0 src=" + oo + ".gif><img border=0 src=" + o + ".gif>");
// --></script></a></CENTER>
David Bartosik [MSFT MVP]

2005-04-22, 11:31 pm

You don't want to put your own image files in the same folder as the
Publisher site files. Create a folder on the domain for your own files and
upload your non-Publisher files there.

David Bartosik - [MSFT MVP]
http://www.publishermvps.com
http://www.davidbartosik.com

"Nickolas Frost" <Nickolas Frost@discussions.microsoft.com> wrote in message
news:BFBC20CB-826A-4164-B1EC-2AAD0793CECF@microsoft.com...
>I have hit counter code for Publisher that works in a text display but I am
> unable to get it to work with custom images. I know the code is correct
> and
> it works in other programs but Publisher won't display the .gif images of
> the
> counter. Can anyone help? Here is the 2 part code, the images I have saved
> as
> 0-9.gif but Publisher keeps changing the names to something like
> Image23.gif
> in the file folder.
>
> <script
> src="http://www.statsmachine.com/cgi-bin/counter.cgi?907|90788"></script>
>
> <CENTER>Number of visitors:
> <a href="http://www.statsmachine.com/"><script type="text/javascript"><!--
> mycount = mycount + 1;
> var oooooo = Math.floor((mycount)/100000);
> mycount = (mycount-(oooooo*100000));
> var ooooo = Math.floor((mycount)/10000);
> mycount = (mycount-(ooooo*10000));
> var oooo = Math.floor((mycount)/1000);
> mycount = (mycount-(oooo*1000));
> var ooo = Math.floor((mycount)/100);
> mycount = (mycount-(ooo*100));
> var oo = Math.floor((mycount)/10);
> mycount = (mycount-(oo*10));
> var o = mycount;
> document.write("<img border=0 src=" + oooooo + ".gif><img border=0 src=" +
> ooooo + ".gif><img border=0 src=" + oooo + ".gif><img border=0 src=" + ooo
> +
> ".gif><img border=0 src=" + oo + ".gif><img border=0 src=" + o + ".gif>");
> // --></script></a></CENTER>



Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews