Connecting Tech Pros Worldwide Forums | Help | Site Map

Div mouseover movement ?!?!

Newbie
 
Join Date: Mar 2009
Posts: 7
#1: Apr 3 '09
Hey i am building a website, we are in the very early stages of development.

The site can be viewed on www.urememberit.com

What I want to do, is when a user rolls over the numbered images (1 to 4)

The div of the bubble (shown at the bottom) appears where the cursor is, showing information on the image, then disappears when the mouse leaves the image.

I have no idea how to go about this, can any help me out ?

Newbie
 
Join Date: Mar 2009
Posts: 7
#2: Apr 3 '09

re: Div mouseover movement ?!?!


p.s
my code is as follows

Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2.     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <title>U Remember It</title>
  6. <meta http-equiv="Content-Type"
  7. content="text/html; charset=iso-8859-1" />
  8. <meta name="Robots" content="NOINDEX" />
  9. <meta http-equiv="PRAGMA" content="NO-CACHE" />
  10. <link rel="stylesheet" type="text/css"
  11. href="style.css" />
  12.  
  13. <style type="text/css">
  14. <!--
  15. .style4 {
  16.     font-family: Arial, Helvetica, sans-serif;
  17.     font-weight: bold;
  18.     font-size: 14px;
  19. }
  20. .style5 {
  21.     font-family: Arial, Helvetica, sans-serif;
  22.     font-size: 14px;
  23. }
  24. .style6 {
  25.     font-family: Arial, Helvetica, sans-serif;
  26.     font-weight: bold;
  27. }
  28.  
  29. -->
  30. </style>
  31. <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
  32.  
  33.  
  34. <script type="text/javascript">
  35. <!--
  36. function MM_preloadImages() { //v3.0
  37.   var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
  38.     var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
  39.     if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
  40. }
  41. //-->
  42. </script>
  43. </head>
  44. <body>
  45.  
  46. <div id="left">
  47. <div id="login"></div>
  48.  
  49. <div id="navbar">
  50. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  51.   <tr>
  52.     <td width="61%" height="89" align="right">&nbsp;</td>
  53.     <td width="39%" align="left" valign="middle"><span class="style6">TEXT HERE</span></td>
  54.   </tr>
  55.   <tr>
  56.     <td height="117" align="right">&nbsp;</td>
  57.     <td align="left" valign="middle"><span class="style6">TEXT HERE</span></td>
  58.   </tr>
  59.   <tr>
  60.     <td height="81" align="right">&nbsp;</td>
  61.     <td align="left" valign="middle"><span class="style6">TEXT HERE</span></td>
  62.   </tr>
  63. </table>
  64. </div>
  65.  
  66. <div id="navbottom">
  67.   <div align="center">
  68.     <p>
  69.       <script type="text/javascript">
  70. AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','300','height','164','title','Graph','src','Flash/graph','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','Flash/graph' ); //end AC code
  71.     </script>
  72.       <noscript>
  73.         <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="300" height="164" title="Graph">
  74.           <param name="movie" value="Flash/graph.swf" />
  75.           <param name="quality" value="high" />
  76.           <embed src="Flash/graph.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="300" height="164"></embed>
  77.         </object>
  78.         </noscript>
  79.     </p>
  80.     <table width="96%" border="0" cellspacing="10" cellpadding="0">
  81.       <tr>
  82.         <td width="61%" bgcolor="#CCCCCC"><p class="style4">EDIT PROFILE</p>
  83.           <p class="style4">PREDICT MY MEMORIES</p>
  84.           <p class="style4">WHO'S LIKE ME?</p></td>
  85.         <td width="39%" bgcolor="#CCCCCC"><p class="style5"><strong>HISTORY</strong></p>
  86.           <p class="style5"><strong>I FEEL LUCKY</strong></p>
  87.           <p class="style5"><strong>HELP</strong></p></td>
  88.       </tr>
  89.     </table>
  90.     </div>
  91. </div>
  92. </div><div id="right">
  93. <div id="menu">MENU WILL BE HERE</div>
  94. <div id="content">
  95.   <table width="100%" border="0" cellspacing="10" cellpadding="0">
  96.   <tr>
  97.     <td width="24%"><div align="center"><img src="Images/1.jpg" width="200" height="200" /></div></td>
  98.     <td width="24%"><img src="Images/2.jpg" width="200" height="200" /></td>
  99.     <td width="3%"><img src="Images/3.jpg" width="200" height="200" /></td>
  100.     <td width="49%"><img src="Images/4.jpg" width="200" height="200" /></td>
  101.   </tr>
  102.   <tr>
  103.     <td>&nbsp;</td>
  104.     <td>&nbsp;</td>
  105.     <td>&nbsp;</td>
  106.     <td>&nbsp;</td>
  107.   </tr>
  108.   <tr>
  109.     <td></td>
  110.     <td>&nbsp;</td>
  111.     <td>&nbsp;</td>
  112.     <td>&nbsp;</td>
  113.   </tr>
  114.   <tr>
  115.     <td>&nbsp;</td>
  116.     <td>&nbsp;</td>
  117.     <td>&nbsp;</td>
  118.     <td>&nbsp;</td>
  119.   </tr>
  120. </table>
  121.  
  122. </div>
  123.  
  124. </div>
  125. <div id="bubble"></div>
  126. </body>
  127. </html>
Expert
 
Join Date: Aug 2008
Posts: 397
#3: Apr 3 '09

re: Div mouseover movement ?!?!


Maybe these will help get you started in a search to find a specific solution for what you want to do?

A CSS method
http://www.cssplay.co.uk/menu/balloons.html

A Javasrcript method
http://jqueryfordesigners.com/demo/coda-bubble.html

I'm not going to even think about asking why you are constructing a table based layout in the year of our lord 2009.
Reply

Tags
div, dreamweaver, html, mouseover