Guest User

Untitled

a guest
Jan 3rd, 2011
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>Untitled Document</title>
  6. <style>
  7. #test {
  8. display:block;
  9. width:974px;
  10. height:731px;
  11. font-family:Arial, Helvetica, sans-serif;
  12. font-size:18px;
  13. background:none;
  14. margin-left:300px;
  15. text-decoration:none;
  16. }
  17.  
  18.  
  19. .tooltip {
  20. display:none;
  21. background:transparent url(bg_tooltip.png); background-repeat:no-repeat;
  22. height:37px;
  23. width:166px;
  24. padding:3px 0 0 5px;
  25. color:#fff;
  26. font-family:Arial, Helvetica, sans-serif;
  27. font-size:10px;
  28. font-weight:bold;
  29. position:absolute;
  30. }
  31.  
  32.  
  33. </style>
  34. <script src="http://cdn.jquerytools.org/1.2.5/full/jquery.tools.min.js"></script>
  35. <script type="text/javascript">
  36. $(document).ready(function() {
  37.  
  38. $('a[rel=tooltipp]').tooltip();
  39. $('a').mousemove(function(e) {
  40. var x_offset = 15;
  41. var y_offset = 18;
  42. $('.tooltip').css('left', e.pageX + x_offset).css('top', e.pageY + y_offset);
  43. });
  44.  
  45. });
  46. </script>
  47.  
  48. </head>
  49.  
  50. <div id="demo">
  51.  
  52. <a rel="tooltipp" Id="test" href="http://www.google.nl" title="Shop the end of season sale"></a>
  53.  
  54. </body>
  55. </html>
Advertisement
Add Comment
Please, Sign In to add comment