Installation of a Guest book

We're offering a free Guest book for all registered customers. It stores the 250 newest entries.

Please activate this function inside the member zone under Guest book. Then come back here to copy and paste this code

<A HREF="http://www.webhits.de/cgi/gbook.pl?version=E&df=ID">WebHits Guest book</A>

into your page. Don't forget to replace ID with your counter ID!

We'd be happy if you leave a note in our own Guest book too! :-)

Various parameters are available to modify the layout and make it match your other pages. This is an example for how to change the background color:

http://www.webhits.de/cgi/gbook.pl?version=E&df=ID&bgcolor=FFFF00

All parameters can be separated by & or |.

Parameter Description Default
face=X Typeface
Determines the font being used. Spaces in font names must be replaced by _. Example: Trebuchet_MS.
face=Arial,Helvetica
size=X Font size
Determines the font size.
size=12px
or
size=-1
if js=off
fcolor=X Font color
Determines the font color.
fcolor=000000
lcolor=X Link color
Determines the link color.
lcolor=FFFF00
tcolor=X Divider color
Determines the color of dividers.

Please note: Don't use a # with numerical values! See the color chart too.

same as link color
tsize=X Divider size
Determines the size of dividers.
tsize=2
twidth=X Divider length
Determines the length of dividers.
twidth=475
bgcolor=X Background color
Determines the background color.

Please note: Don't use a # with numerical values! See the color chart too.

bgcolor=FFFFFF
bg=X Background image
Specifies that you want a background image. Replace X with the complete URL of the image on your server.
 
version=X Language version
Determines the language to use. Possible values for X are D (German), E (English), F (French) or S (Spanish).
version=D
ads=B Banner ads
Using ads=0 no banners of third parties will be displayed.
ads=1
message=B Notification
With message=0 you will not be notified if there's a new entry in your book. By default a message is sent to the address stored in our database.
message=1
msg_email=X Address to notify
msg_email= sends the notification about a new entry to the address specified by X.
 
showip=B Show IP address
By default the user's IP address is shown beneath the entry form. In many cases this protects your book from unwanted entries. Using showip=0 you can switch of this feature, the posters IP will then not be shown.
showip=1
js=X Formatting via JavaScript and CSS
Replace X with the complete URL of a JavaScript file on your server. This .js-file has to hold all necessary commands for linking to an external CSS. Please see the explanation below.

With js=nosrc no external CSS is needed, instead our defaults and the above mentioned overrides will be used.

js=off switches to "traditional" HTML formatting.

js=nosrc


Formatting via CSS

More complex formatting can be done with a CSS (i.e. gbook.css) stored on your server. In addition to the common CSS standards the following classes can be (re-)defined:

body { text-align:left; background:#FFFFFF; }
p,td,th { font-family:Arial,Helvetica; font-size:12px; color:#000000; }
a:link { color:#C80000; }
a:visited { color:#C80000; }
a:hover { color:#000000; }
p.head { font-size:15px; font-weight:bold; } /* Headline */
.trenner { background:#FF0000; } /* Dividers */
.marginleft { margin-left:25px; width:475px; } /* Left margin and width */
.varisubmit { font-family:Arial,Helvetica; font-size:11px; font-weight:normal; height:19px; } /* Buttons */

To use your own CSS for your Guest book, you also need a JavaScript (i.e. gbook.js) on your server. It can be as simple as:

document.write("<LINK REL='stylesheet' TYPE='text/css' HREF='Address of your .css'>");

Of course this script could perform a browser check and link to different CSS files if desired.

Instead of formatting through parameters you must link to your Guest book like this:

<A HREF="http://www.webhits.de/cgi/gbook.pl?version=E&df=ID&js=Address of your .js">WebHits Guest book</A>

This feature is only recommended for advanced users.

Related topics

Formatting via CSS

Help / FAQ