pls help me to implement my desire to have a popup window when the mouse get over a certain text or link and a window display an image from database that corresponds the ID field of a user profile..
thanks in advance...
thanks in advance...
| akoni176 wrote: |
| pls help me to implement my desire to have a popup window when the mouse get over a certain text or link and a window display an image from database that corresponds the ID field of a user profile..
thanks in advance... |
| Code: |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <script type="text/javascript"> function popup(url) { window.open(url,null, "height=200,width=400,status=yes,toolbar=no,menubar=no,location=no"); } </script> <title>PopUp</title> </head> <body> <a href="#" onmouseover="popup('popup.php?id=1')">Mouse Over This</a> </body> </html> |
| shamil wrote: | ||||
I prefer onClick not onMouseOver but you are the last one to choose which one. You can use javascript function to open image in new window. It is up to you how to write php file for it. Because i don't know where ur images are located. You can even open the new window in same size with image. To do this use php image functions to get image size.
|