...

View Full Version : button counter



jlaw1017
02-24-2008, 06:16 PM
hello I have created a page with basicly nothing but button links in css What I would like to do is add a counter to each button to how many times it is hit. that will display next to each button. Here is basicly what I am working with.

<style type="text/css">
body {
font-family: "Bookman Old Style",
Times, serif;
color: white;
margin-left: 5%; margin-right: 5%;
background-color: black;
background-image: url('http://jlaw1017.com/01.jpg');
}
ul.navbar {
list-style-type: none;
padding: 0;
margin: 0;
position: absolute;
top: 6em;
left: 5em;
width: 9em }
ul.navbar li {
background-color: #680106;
margin: 0.5em 0;
padding: 0.3em;
border-style: outset;
}
ul.navbar a {
font-family: "Bookman Old Style",
Times, serif; }
a:link
{
color: white;
background-color: #680106;
}
a:visited
{
color: white;
background-color: #680106;}
a:hover
{
color: blue;
background-color: green;}
ul.navbar2 {
list-style-type: none;
padding: 0;
margin: 0;
position: absolute;
top: 6em;
left: 25em;
width: 9em }
ul.navbar2 li {
background-color: #680106;
margin: 0.5em 0;
padding: 0.3em;
border-style: outset;
}
ul.navbar2 a {
font-family: "Bookman Old Style",
Times, serif; }
ul.navbar3 {
list-style-type: none;
padding: 0;
margin: 0;
position: absolute;
top: 6em;
left: 45em;
width: 9em }
ul.navbar3 li {
background-color: #680106;
margin: 0.5em 0;
padding: 0.3em;
border-style: outset;
}
ul.navbar3 a {
font-family: "Bookman Old Style",
Times, serif; }
</style>
</head>
<body>
<center>
<font color="red"><b><h1>Title</h1></b></font><hr>
<ul class="navbar">
<li><a href="link" target="_blank">name</a>
<li><a href="link" target="_blank">name</a>
</ul>

There are currently 3 sets of these links as I am sure you saw in the css. Any help adding counters would be great.

jcdevelopment
02-25-2008, 04:08 AM
well you will need a counter from javascript. this cant be done with html or css!

outseeker
02-25-2008, 06:23 PM
You can grab a very nice counter (and other scripts) at http://www.cj-design.com/products/free_downloads/php_scripts/page_2



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum