We appreciate your visit – thanks!
close this once-only message

We hope that you are finding this resource guide useful. If you may wish to return, please bookmark this page or the .

 Email if you need help on any topic in the Guide, have suggestions and comments, or can help by reporting a page bug.

Vital resources directly to your mailbox
Like to try our twice-monthly email newsletter Web Evangelism Bulletin? It will give you a unique range of evangelism strategies and news (for Web, church, and beyond), plus webmaster and page promotion tips:



close this once-only messageClose this once-only message box
 Webmaster > Popup tooltips  < YOU ARE HERE  KEY:
 FAQs
Green link = offsite page 
Blue link = site page 
 Site
 search

 Meaning
 of life?
 
Help
flag



 More about Internet Evangelism Day - the new focus day in 2006

Popups

Giving extra information

Until fairly recently, popups had to be new browser windows opened by Javascript. However, with the introduction of the 'TITLE' annotation tooltip (which can also be inserted into hyperlinks to explain the link in more detail), the familiar (to Windows users) yellow popup box can be added to any word in the text of a webpage. This has many uses:

To make a TITLE popup appear, without a word being a true hyperlink, we need to use the SPAN tag, and also color the word - otherwise no-one would realise they must hover the mouse over it. It seems logical to color-code words a different color than the real hyperlinks on your page - (and probably non-underlined) and also include an explanation somewhere on the site about the meaing of words so colored.

This is supported by all the latest browsers, and we can confidently expect it to be universal very soon.

Each word could be colored by a font color tag. However, it is much easier to use a Style sheet to control an entire class of such words.

The descriptive TITLE text description can be quite long if needed.

A style sheet in the page header, or incorporated into a site-wide style, could look something like this:

.popup
{
COLOR: #9F141A;
CURSOR: help;
TEXT-DECORATION: none
}
</STYLE>

with the text on the page appearing like this:

<SPAN title=" description here " class="popup">text</SPAN>

By leavng a space before and after the description, additional left/right padding is created making the text easier to read. The value for CURSOR can be the following: default, auto, crosshair, hand, move, n-resize, s-resize, e-resize, w-resize, ne-resize, se-resize, nw-resize, sw-resize, text, wait, help. The HELP value creates a mouseover ? mark, and seems the most suitable for any situation where you are wishing to provide an answer or further information.

The value for color can be any possible color using hexadecimal or whatever. Text-decoration can be none or underline if you wish it to appear like a normal link.

You can also add the line FONT-STYLE with these values: normal, italic, oblique. Additional other style elements can be introduced if needed.

See it working
Here are some examples:

You can also add a title annotation to the text area of a form, and/or to the form button, to amplify any instructions you wish to provide to users.

Additional information at CSS sites such as: W3 | Hypergurl | Jigsaw.

You can achieve more sophisticated results with colored text, background and even graphics in the annotation box, using DHTML tooltips - but it requires a lot of extra code on the page:

Using Javascript

If you want bigger popups with colored backgrounds, control over font appearance, etc, it is necessary to use Javascript mouseover popups. Be aware however, that about 5% of people have Javascript-disabled browsers, so your pages must still be meaningful to these visitors. In addition, some popup killers are now preventing a mouseover popup actually working. So, increasingly, it is better to look at Javascript/CSS, or ideally, pure CSS alternatives which do not require a new browser window to open. Here's a CSS-only solution.

If you include the coding for the text, color, even graphics, within the script, they are much quicker to operate because they don't actually have to open a new page. Here is one example, offering a word definition.

"I was surprised to see an adder in my garden today."

If you view the source code for this page (including the style sheet and javascript in the page head, you will see how this popup has been created. Copy the coding and make modifications according to your own requirements. The link in this case goes to a footnote or new page, for those for whom Javascript is not working or who have blocked popops (see below. You can control many features of the popup - size, background, font, even include a graphic.

For more detailed information on creating Javascript popups, check:

Unfortunately, it seems that some browsers or popu; killers, when set to remove popup ads also block ANY window which is opened by Javascript. This is a shame because javascript-opened popup windows have many legitimate uses. For example, online booking sites so you can get extra information in a small popup when you need it. It can be useful to open a Bible reference in a javascript-opened window of defined size. You can overcome this problem in many cases by creating a hybrid link like this:

<a href="page.html" target="_blank" onclick="window.open(this.href, this.target,'toolbar=no,scrollbars=yes,location=no,status=yes'); return false;" title=" Description of link ">Click here</a>

If you have further comments on this problem, the subject of making TITLE= annotations, or any other suggestions for using them, please write.

Helping second-language English speakers

Unless your page is for teaching English, it would be very hard work to include many word definitions on your pages. However, you can offer a one-click definition/translation option on your site, or even a link to online dictionaries, in the way this site does.


 Bookmark: this page | Web Evangelism Guide Overview    Link to this page?    Free newsletter    Free content/permissions        Poster    Page update alert  

© Oct 2008 Web Evangelism Guide   Contact us   Sitemap   Privacy   About us   Meaning of life

Bible Toolbox


More tools


BSafe filtering graphic

Gospelcom.net graphic
Printed from Web Evangelism Guide © 2008
Can be freely reproduced in print in any non-profit situation with attribution to web-evangelism.com. This page content can also be inserted into your own web-page by copying a simple Javascript insert code into your page - explained in the online version of this page: guide.gospelcom.net/resources/
Please do not copy the text of this page onto your own web-page - search engines do not like hard-copy duplicate content on different sites.
To receive the twice-monthly email newsletter Web Evangelism Bulletin, visit the Guide.