Tooltip Example

Hover Over The Word Tooltip Below

Result

Tooltip

Tooltip

<!DOCTYPE html>
  <html>
  <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>ToolTip</title>
  <script src="http://code.jquery.com/jquery-latest.js"></script>
  <style type='text/css'>
  #toolTip {
  background-color: #ffffff;
  border: 1px solid #73a7f0;
  width: 200px;
  height: 100px;
  margin-left: 62px;
  position: relative;
  border-radius: 4px;
  -moz-border-radius: 4px;
  -webkit-border-radius: 4px;
  box-shadow: 0px 0px 8px -1px black;
  -moz-box-shadow: 0px 0px 8px -1px black;
  -webkit-box-shadow: 0px 0px 8px -1px black;
  }
  #toolTip p {
  padding: 10px;
  }
  #arrow-shadow {
  background-color: transparent;
  width: 4px;
  height: 4px;
  position: absolute;
  top: 16px;
  left: -8px;
  z-index: -10;
  box-shadow: 0px 0px 8px 1px black;
  -moz-box-shadow: 0px 0px 8px 1px black;
  -webkit-box-shadow: 0px 0px 8px 1px black;
  }
  #arrow-border {
  width: 0px;
  height: 0px;
  border: 10px solid;
  border-color: transparent #73a7f0 transparent transparent;
  position: absolute;
  top: 8px;
  left: -20px;
  }
  #arrow {
  width: 0px;
  height: 0px;
  border: 10px solid;
  border-color: transparent #ffffff transparent transparent;
  position: absolute;
  left: -18px;
  top: 8px;
  }
  .test {
  float: left;
  }
  </style>
  <script type='text/javascript'>//<![CDATA[ 
  $(window).load(function(){
  $("#toolTip").hide();
  $(".test").hover(function(){
  $("#toolTip").fadeIn(1000);
  });
  $(".test").mouseout(function(){
  $("#toolTip").fadeOut(1000);
  });
  });//]]> 
  </script>
  </head>
  <body>
  <div class="test">Tooltip</div>
  <div id="toolTip">
  <p>Tooltip</p>
  <div id="arrow-shadow"></div>
  <div id="arrow-border"></div>
  <div id="arrow"></div>
  </div>
  </body>
  </html>

Available For Freelance:

I Am Available To Work For You Freelance, See My Skills To See If I Can Help Your Project, If I Can Help You Then Please Contact Me.

My Rates Start From £180 A Day, Discount Prices For Regular Clients And Work Over 3 Days.

I Started To Learn Web Development In 2008, I Did A Few Open University Courses While Working Full Time In The Building Trade, I Managed To Get A Diploma With Distinction

Request A Tutorial

If You Are Having Difficulty With The Development Of Your Website Or If You Are Just Starting Out Leaning Web Development And You Think I Can Help You Then Request A Tutorial, I Will Do My Best To Help You

I Dont Charge For My Services If I Can Help You With Something That Can Be Be Fixed In A Few Minutes.

Advertise

If You Would Like To Advertise On This Site Then Please Contact Me, You Will Be Given Login Details To See What Day And Where Clicks Have Come From.

Prices Start From £10 A Month With Discounts Available For 3 Months Or More.

You Can Either Send Me The Banner Advert That You Have Designed Or From £10 I Can Have Designer Design A Banner For You.

Please Leave A Comment And A Rating





image

Chris Gave This Code Rating

This is a simple tooltip just hover over th e word Tooltip please leave feedback and rate

www.codecaven.co.uk image 5.00 out of 5 based on 1 ratings. 1 user reviews.

My Skills:

  • PHP 5
  • JavaScript
  • Jquery
  • XHTML Validation
  • KineticJS
  • HTML5
  • CSS - CSS3
  • SEO

My Social Networks:

  • facebook youtube