473,324 Members | 2,268 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Retriving data from database and displaying on tooltip on mouseover.

190 100+
Hi ,

I am working on www.mynameisoninternet.com .
In this i want that all registered names get retrieved from database and should be running on homepage. And on mouseover of any name , its related data should be retrived and shown in a tooltip or in popup window.

can any one has idea how to proceed ?

I have tried taking help from following link using tooltip.js :
http://ashishware.com/TransTT.shtml

but the result i am getting is you can always see here www.mynameisoninternet.com

my code is as follows :
Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  2. "http://www.w3.org/TR/html4/loose.dtd">
  3. <html>
  4. <head>
  5. <title>Myname IS On Net</title>
  6. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  7. <link href="myname.css" rel="stylesheet" type="text/css">
  8.  
  9. <script language="javascript" src="Tooltip.js"></script>
  10.  
  11.  
  12. </head>
  13. <body onload=init()>
  14. <?php
  15. include("include/connection.php");
  16. $sql = "SELECT * from susers";
  17. $result = mysql_query($sql,$con);   ?>
  18.  
  19. <div id="wrapper">
  20. <div id="header">
  21. <div id="logo"></div>
  22. <div id="hlogin">
  23.  
  24.         <TABLE WIDTH=400  BORDER=0 CELLPADDING=0 CELLSPACING=0 bgcolor="#618BB5">
  25.           <TR align="center" valign="bottom">
  26.             <TD COLSPAN=3>
  27.               <IMG SRC="images/login_bg_01.gif"   ALT="" align="bottom"></TD>
  28.           </TR>
  29.           <TR >
  30.             <TD width="38" align="right" valign="bottom">
  31.               <IMG SRC="images/login_bg_02.gif"  ALT="" hspace="0" vspace="0" align="left"></TD>
  32.             <TD width="330" bgcolor="#618BB5"><form><table><tr><td>E-mail Id</td><td>:</td><td><input type="textfeild" name="emailid"></td><td></td></tr>
  33.             <tr><td>Password</td><td>:</td><td><input type="textfeild" name="password"></td><td><input type="button" name="submit" value="OK"></td></tr></table></form>
  34.             <p align="center">Forgot Password / Register</p></TD>
  35.             <TD width="32" valign="bottom">
  36.               <div align="right"><img src="images/login_bg_04.gif"  alt="" hspace="0" vspace="0" align="right"></div></TD>
  37.           </TR>
  38.                             </TABLE>
  39.  
  40. </div>
  41. </div>
  42. <div id="divider"></div>
  43. <div id="Container"><div align="center"><font style="color: #000000; font-size: 20pt;"><BR>
  44. <table border ="0px">
  45. <tr>
  46. <?
  47.  
  48. $a = 0 ;
  49. while($row = mysql_fetch_array($result))
  50.   {
  51.   if($a > 3)
  52.   {
  53.   echo "</tr><tr>";
  54.   $a = 0 ;
  55.   }
  56.  
  57.  
  58.  
  59.   echo "<td><marquee><span class='ttip' onmouseover=if(t1)t1.Show(event,l1) onmouseout=if(t1)t1.Hide(event)>".$row['name']."</marquee></span></td>";
  60.   ?>
  61. <div id="a" style="background-color:skyblue;width: 184px; height: 49px;border: solid 1px gray; text-align: center;filter: alpha(Opacity=75);opacity:0.75">
  62. Translucent tooltip !
  63. </div>
  64.  
  65.  
  66. <script>
  67. var t1 = null
  68. var l1="<?php echo $row['name']; ?>";
  69. function init()
  70. {
  71.  t1 = new ToolTip("a",true,40);
  72. }
  73. </script>
  74.  
  75.  
  76.   <?
  77.   $a = $a + 1 ;
  78.   }
  79.  
  80. mysql_close($con);
  81. ?>
  82.     </tr></table>
  83.  
  84.  
  85. </font></div></div>
  86. <div id="divider"></div>
  87. <div id="footer"><br><br><form><table align="center"><tr><td><input type="textfeild" name="password"></td><td><input type="button" name="Search" value="Search"></td></tr></table></form>
  88.             </div>
  89. </div>
  90.  
  91. </body>
  92.  
  93. </html>
please help me solving the problem as soon as possible.
thanks
Aug 8 '11 #1
0 1716

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: iffy agbim | last post by:
I have a form that displays information selected from an Access Data base. A select statement is used to do this on my asp page SQLQuery = "SELECT * FROM tblopgaCOm2 WHERE billNo = '" &...
2
by: Niyazi | last post by:
Hi, I have to retrieve a data from AS400 DB2 and after working with data I have to export into one of existing Excel file. I can connect into specific library in AS400 DB2 using AS400...
3
by: pmud | last post by:
Hi, I have 4 columns in my sql database table. I added a data adapter , data set & a data grid to view this information. But the data grid is displaying those 4 columns TWICE , i.e in the data...
1
by: Mian Mahboob | last post by:
Hi in my application i need to save C sharp syntax to SQL Server database then need to call that on Windows UserControl then execute that code and get there output. all i done accept to execute...
2
by: Jake_adl | last post by:
Is there any way to create a Microsoft.Practices.EnterpriseLibrary.Data.Database object without reading from a configuration file? I am writing a utility that manages databases in SQL Server....
0
by: dzemo | last post by:
Which is the fastest way to "pump" data into crystal report in vb.net 2003? Is it: 1. content report as set datasource to dataset and filter data on fill dataset 2. set an output file and set...
1
by: jaggu | last post by:
please help me out. I have designed a form with some text boxes. Now I want to add values to the text box which should get stored in the database(ACCESS) and later that can be retrived using...
1
by: reni | last post by:
how we can retrive the data from the email and store in the database...
2
by: chike_oji | last post by:
Hello, I am displaying data retrieved from a database as a httpresponse in a webform. I noticed that some characters such as the comma (,), display as special characters in the web browser...
0
by: pchaitanya | last post by:
hi all, suppose in a table if i have columns namely name,entrydate now on retriving and binding to a gridview how can I get names rowwise and entrydate columnwise on a gridview on...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.