![]() |
|
||||
MU Home |
|
|
|
|
LINKS |
Web Page Counter Introduction In this guide we will show you how to insert Marshall’s counter into your web page on www.marshall.edu. Please note that this counter will only work for pages that end in .asp and are on the www.marshall.edu server. Using the Counter To insert the Marshall counter in your web page: 1. Enter the text the will go around the counter. 2. Place the cursor where you want the counter number to appear.
Figure 1 - Cursor at Place for Counter 3. Click on the Code tab at the bottom to switch to the Code view.
Figure 2 - Code View Tab 4. Without moving the cursor, enter the following HTML code exactly as it appears: <!--#include virtual="/cgi-bin/counter.asp" -->
Figure 3 - Code View with Counter Code Inserted 5. Click on the Design tab to switch back to the Design view. Setting the Counter to a Value 1. Place the cursor some place before the counter. 2. Switch to Code view. 3. Enter the following ASP statement – you may replace the zero with any value to which you wish to set the counter: <% setCounter = 0 %> 4. Save the web page and upload it to the server. 5. View the web page on the server. This will set the counter. A message stating that the counter has been set will appear where the counter number typically does. 6. Remove the ASP statement you inserted in step 3. 7. Save the web page and upload it to the server. Conclusion This counter script is an easy way to show yourself or your visitors how many visits a particular web page has had. This can be useful in determining how popular a site is and whether or not it is worth the time spent maintaining it.
|
|
|
||
Site Maintained by the University Web Administrator. Copyright ©2008 Marshall University. All Rights Reserved. Read Site Disclaimer and Privacy Policy for more information. Marshall University - One John Marshall Drive - Huntington, WV 25755 |
||