Forums

ASP

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>

&lt;div align="center"&gt;
&lt;% while (! Recordset1.EOF) { %&gt;
&lt;div id="shop2" onClick="goToOnClick('&lt;%=(Recordset1.Fields.Item("website".Value)%&gt;')" style="position:relative; width:381px; height:219px; z-index:1; background-color: #FFFFFF; layer-background-color: #FFFFFF; border: 5px double #000000;"&gt;&lt;%=(Recordset1.Fields.Item("Page_Code".Value)%&gt;&lt;/div&gt;
&lt;br&gt;
&lt;%
Recordset1.MoveNext()
}
%&gt;
&lt;/div&gt;
</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:

&lt;DIV onClick="alert('&lt;%=rs("name" & " - - " & rs("pet"%&gt;');"

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.

Reply to this topic