onmouseover display data

Discussion in 'PHP' started by gigamike, Nov 26, 2008.

  1. #1
    Guys,

    Anyone has a sample code wherein let say i have a data i.e.

    Employee ID: 0001
    Employee ID: 0002
    Employee ID: 0003

    Then if i onmouseover event on the ID a callout (im not sure what's the best word to describe but a floating box) that displays the related data

    i.e.

    Employee ID: 0001 -> callout box which displays Name, Email, Address etc

    Ajax will do which calls something like onmouseover='callout(employee_view.php?id=0001)'

    Thanks,

    Mike
     
    gigamike, Nov 26, 2008 IP
  2. Z33M@N

    Z33M@N Peon

    Messages:
    116
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You should be able to use jquery with php and mysql. All you need to do is put the query you want displayed in a <div></div> tag and make the div tag invisible with css. Then use jquery to show the tag when you mouseover and then to unhide the div tag and run the php/mysql code in the div.

    There should be alot of examples just search google
     
    Z33M@N, Nov 27, 2008 IP