Forums
This topic is locked
Hit Counter
Posted 12 Apr 2006 14:22:55
1
has voted
12 Apr 2006 14:22:55 michael Sinton posted:
Hi Guys,Is it possible to incorparate a Hit Counter to count the number of hits on a DIV instead of a page.
Below is the code of my DIV I would like to include the code for the counter inside this DIV. If at all possible???
<pre id=code><font face=courier size=2 id=code>
<div align="center">
<% while (! Recordset1.EOF) { %>
<div id="shop2" onClick="goToOnClick('<%=(Recordset1.Fields.Item("website".Value)%>')" style="position:relative; width:381px; height:219px; z-index:1; background-color: #FFFFFF; layer-background-color: #FFFFFF; border: 5px double #000000;"><%=(Recordset1.Fields.Item("Page_Code".Value)%></div>
<br>
<%
Recordset1.MoveNext()
}
%>
</div>
</font id=code></pre id=code>
Thanks for the help
Michael.
Replies
Replied 12 Apr 2006 18:40:28
12 Apr 2006 18:40:28 micah santos replied:
i've tested it using javascript alert like this:
<DIV onClick="alert('<%=rs("name" & " - - " & rs("pet"%>');"
then it worked!
but i'm not 100% sure, though, there's a probability that it may work.
depending on how you place your scripts within the DIV tag.
<DIV onClick="alert('<%=rs("name" & " - - " & rs("pet"%>');"
then it worked!
but i'm not 100% sure, though, there's a probability that it may work.
depending on how you place your scripts within the DIV tag.