PHP Text Counter

In case you have problems with some other PHPJunkyard script (not that there are THAT many).
Post Reply
tyee
Posts: 1
Joined: Mon Jan 05, 2015 9:21 pm

PHP Text Counter

Post by tyee »

This counter is working good. However I want to change the font color. Any one have any tips?
Can I add it within the <script> tags??
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Re: PHP Text Counter

Post by Henrie »

If you are referring to php text hit counter

In the page that should display the number of hits, you would include code like this in the <body> of your page

Code: Select all

<script type="text/javascript" src=counter.php?page=test"></script>
to change color you could change it to

Code: Select all

<span style="color:red;"><script type="text/javascript" src=counter.php?page=test"></script></span>
Greetings,
Henrie
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
Post Reply