Chat LIVE With Programming Experts! There Are 23 Online Right Now...

 

Code Snippets

  

JavaScript Source Code


Welcome to Dream.In.Code
Become an Expert!

Join 244,220 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,391 people online right now. Registration is fast and FREE... Join Now!





Pop-up window over Link

This is a pop-up window over a link or word(s)

Submitted By: zakary
Actions:
Rating:
Views: 6,500

Language: JavaScript

Last Modified: May 13, 2005
Instructions: style in
and in body to call style and display pop-up info

Snippet


  1. <html>
  2. <head>
  3.      <title>Pop Up</title>
  4.  
  5.      <style type="text/css">
  6.      #popupBox{
  7.           position: absolute;
  8.           top: 35px;
  9.           left: 10px;
  10.           border: solid 1px #000000;
  11.           background-color: #FFFF99;
  12.           visibility: hidden;
  13.           }
  14.      </style>
  15.  
  16.      <script language="JavaScript">
  17.      function show_it(){
  18.      document.all.popupBox.style.visibility = "visible";
  19.      }
  20.  
  21.      function hide_it(){
  22.      document.all.popupBox.style.visibility = "hidden";
  23.      }
  24.      </script>
  25. </head>
  26.  
  27. <body>
  28. <a href="javascript://" onMouseOver="show_it()" onMouseOut="hide_it()">Link for pop-up here</a>
  29.  
  30. <div id="popupBox">
  31. <p>This is the info you want displayed in the pop-up window</p>
  32. <p>This is the next line of the pop-up</p>
  33. </div>
  34.  
  35. </body>
  36. </html>

Copy & Paste


Comments


vilotwind 2008-12-22 04:08:24

thank you I will try it and see


Add comment


You must be registered and logged on to </dream.in.code> to leave comments.





Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month