·: Site description :·
Welcome!

NetBulge.com provides code, scripts, tips & tricks and general information about web development aimed to help webmasters and web designers.

Instead of packing all the info we can get into a huge database, our goal is to produce a high quality compilation of code snippets and articles. Web developers will find in these pages a fresh and savvy view of most of the issues concerning programming and designing for the web; as well as a good site to visit regularly for help and inspiration.

Enjoy!
Zones
Navigation
Search

Sessions

NetBulge.com RSS2 feed



About Hosting:

I use and recommend Hostgator for all my hosting needs. It is the only company I have tried (and I have tried plenty) that hasn't given me a headache and responds quickly and fairly to everything I ever need. I run 3 accounts that host over 20 sites with Hostgator and I am happy recommending it to all my family, friends and clients. If you are looking for a cheap yet solid host, IMO Hostgator is the way to go. I do get a comission if you register through the link, but even if you don't like me and don't want me to get a comission, go to Hostgator for your hosting needs and save yourself plenty of cash and headaches.


 Print version Send article via e-mail  

CSS Tooltip


web zone resourcesA tooltip is a small popup triggered by a MouseOver that displays quick info about anything. This article uses a mix of CSS and Javascript to produce very simple yet functional code for multiple tooltips.


Example:

Move your mouse over this text to see the tooltip This is an example of a tooltip at work

This tooltip is very simple and easy to implement. Just add the CSS styles to your page and use the code snippet below anytime you need a tooltip.

The CSS code:

<style type="text/css">
.ToolText{position:relative; }
.ToolTextHover{position:relative;}
.ToolText span{display: none;}

.ToolTextHover span{
  display:block;
  position:absolute;
  border:1px solid black;
  top:1.3em;
  left:5px;
  background-color:gray; color:white;
  text-align: center;
}
</style>

 

The tooltip snippet:

<p class="ToolText" onMouseOver="javascript:this.className='ToolTextHover'" onMouseOut="javascript:this.className='ToolText'">

This is the text that will cause the tooltip

<span> And this is the Tooltip's text </span></p>

Just copy the snippet and replace the text (or content) with your own.




Author : Esopo, Read 41500 times, Comments: 0
Rating :  rating resourcesrating resourcesrating resourcesrating resourcesrating resourcesrating resourcesrating resourcesrating resourcesrating resourcesrating resources  |  Thursday, 30. June 2005

Add new comment/Comments
Your rating :   Poor ranking resourcesrating resourcesrating resourcesrating resourcesrating resources Excellent




css stylescss stylesDo you have something to say?
Then say it! NetBulge.com is devoted to web development. We are always looking for fresh and relevant ideas. If you are a web designer with a voice, this is the place to make it heard. Join us!

Featured *
It almost felt like a joke finding out about this type of server packs after spending a couple of days working hard to setup my personal web server to test my PHP – MySql scripts. Reactor server comes with Apache, PHP, MySql, SQLite, phpMyAdmin, Nuke, etc, and all in an almost plug and play package. If you don’t have one of these in your PC, you better be asking yourself why. – The only draw back: about 38 MBs in size.
NOTE: This is ver1.2 that supports PHP 4. For the latest version visit their homepage.

Often people ask the same question: What is the best PHP book? - The answer is so simple they still go ahead and buy some book. Besides being one of the most thorough manuals ever written, the online PHP manual includes user comments adding greatly to its richness. This is the first and most important resource a PHP coder should have.
http://www.php.net/manual/en/