Go Back   UltraGuest Forum > UltraGuest Forums > Guestbook Support

Reply
 
Thread Tools Display Modes
Old 01-14-2008, 07:39 AM   #1
Dmitrey
 
Join Date: Jan 2008
Posts: 1
Default Using javascript code in guestbook header

hi all,
I want to add javascript-based web visitors counters from the page
http://openopt.blogspot.com (right column)
to my guestbook header.
I have read guestbook > settings but I can't understand how it can be done.

Thank you in advance, D.
Dmitrey is offline   Reply With Quote
Old 01-14-2008, 10:53 AM   #2
Andreas
UltraGuest Admin
 
Join Date: Nov 2003
Location: Oslo, Norway
Posts: 746
Default Re: Using javascript code in guestbook header

Hi,

Using javascript you can display guestbook statistics on your webpage/blog. In the header of your webpage you need to get the information from our server. The link that should be placed in your header is:

Code:
<head>

<script type="text/javascript"
 src="http://www.ultraguest.com/?id=1041779607&type=js"></script>

</head>
You need to replace the numbers in red with your guestbook ID. Now the following javascript variables are accessible from your webpage:

Code:
var messages = 375;

var uniquehits = 225765;

var totalhits = 655110;
These variables are not shown on your webpage before you add the following code where you want the numbers to show up:

Code:
<script type="text/javascript">
    document.write(messages)
    document.write(uniquehits)
    document.write(totalhits)
</script>
This code will display the number only so you migth want to add some text saying what the numbers are telling.

Please let me know if you need any further help!
Andreas is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Header in my Guestbook? Eliza Guestbook Support 1 12-24-2007 05:39 PM
COPPA law and guestbook entries... Sif.Admin Guestbook Support 1 07-28-2007 06:13 PM
Guestbook Code tubes41 Feedback 1 02-17-2005 03:36 AM
Linking to Javascript routines Cugel Guestbook Support 3 09-10-2004 06:32 AM
using same guestbook for several websites? Andreas Guestbook Support 0 12-07-2003 09:00 AM


All times are GMT -5. The time now is 06:55 AM.


Page generated in 0.02958 seconds with 10 queries