clyx studios

everything clicks with Clyx
welcome to clyx studios       sign in           
in Search

clyx development blog

You too can have fancy tooltips

I had a fairly busy web page that I thought could be streamlined through the use of popups or tooltips (no, not the standard yellow ones!). I was also keen on including images in the tooltips as well, to make them a little more interesting. So I thought about writing my own Javascript & DHTML library, but quickly abandoned that idea, deciding not to reinvent the wheel. Instead, some googling revealed a wonderful little library called wz_tooltips.js from Walter Zorn and it does just what I need.

It looked pretty simple to add this libary into Community Server so I thought about the most logical place to put it, and drag-and-dropped it to the utility directory in the Web Visual Studio project. "A file with the name utility/wz_tooltips.js already exists.". Huh??.... Did I already do that?.... Before I signed myself up for some more brain training, I double-checked the Community Server deployment files. Turns out the guys at Telligent had obviously done their research too and already used the wz_tooltips library for CS tooltips.

So here's a really easy way to add your own tooltips to your pages in Community Server.

  1. Include a call to JavaScript.RegisterToolTips in your Page_Load handler eg.

    <script language="C#" runat="server">
    void Page_Load(object sender, EventArgs e) {
    JavaScript.RegisterToolTips(this);
    }
    </script>

  2. On each element that you want to display a tooltip from (such as a button, link, etc.), add an onmouseover call to the escape function as per the wz_tooltip documentation. Here's the HTML for the example tooltip shown above:


<li
onmouseover="this.T_WIDTH=400;return escape('<table><tr><td><img src=\'../images/communities.jpg\'
             height=150 /></td><td><b>communities</b> - establishing online communities with
             services such as forums, newsgroups, blogs, file sharing and photo galleries</td>
             </tr></table>')">
         communities</li>

That's all there is to it!   Here's a pic of how we've used it.

You can also see it in action yourself at our Services page. Just hover your mouse over the services list at the right.

Published Monday, June 26, 2006 12:57 PM by admin

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

 

Community Server Daily News said:

Community Server featured in a Forrester Wave™ Vendor Summary with the title, &quot;Telligent Provides A Strong,
June 27, 2006 11:53 AM
 

Torrent F85, Discount Oldsmobile F85 Body Supreme Cutlass Ciera said:

May 20, 2010 3:51 AM
 

600sl Rent V12, 600sl Fog Light Online said:

May 20, 2010 10:14 AM
 

Sierra Denali Awd Truck Gm, Coty Sierra Fragrance Spray said:

May 20, 2010 10:37 PM
 

Cougar Promo Related Videos, Eos 450d Full Camera Read said:

May 22, 2010 9:46 AM
 

P30 Series Used Battery Toshiba Satellite A70, P35 P3005dn Vin said:

May 22, 2010 2:17 PM
 

230sl Sale White Mercedes Montecito Motors, Bmw 230sl Replacement Radiator Hose said:

May 22, 2010 2:22 PM
 

Solara Prices, 2002 Toyota Solara P1135 Bank 1 Sensor 1 - 325.jeepsunlimted.com said:

May 23, 2010 1:08 AM
 

Illumina Substitute Measures, Lumina Coolant Flush - 243.dlmreza.net said:

May 23, 2010 5:16 AM
 

Custom Cadillac Eldorado Coupe Front Wheel Drive, K15 K1500 Pickup Boiler Chevrolet Malibu 1981 Cadillac Eldorado - 301.jordanbrandallamerican.com said:

May 24, 2010 9:21 AM
 

2002 Cadillac Eldorado Touring Coupe, 1954 Cadillac Eldorado - 328.ja3ra.com said:

May 24, 2010 1:38 PM
 

Insight Into English, Five Ten Mens Insight Approach Shoe - 31.1fh.org said:

May 24, 2010 5:45 PM
 

Compro Chevrolet Luv 1600, Luv Radiator Aftermarket Turn Signal Suzuki - 269.akemet.com said:

May 25, 2010 12:42 AM
 

Used 330xi Cars 2005 Bmw 3 Series, Purchase 2002 Bmw 330xi - 205.tijuanareader.com said:

May 25, 2010 6:16 PM

Leave a Comment

(required) 
(optional)
(required) 
Submit