Log in

View Full Version : tooltip script: positioning a picture on the browser window



paldo
05-22-2010, 06:16 PM
Hallo. Today I discovered this nice script: tooltip.js and tooltip.css on your webpage.
I have some pictures to display. The pictures should pop-up at the far right of the browser window.
I changed the script as follow:


.ddimgtooltip{
box-shadow: 3px 3px 5px #818181; /*shadow for CSS3 capable browsers.*/
-webkit-box-shadow: 3px 3px 5px #818181;
-moz-box-shadow: 3px 3px 5px #818181;
display:none;
position:absolute;
right:10px;
top:50px;

border:1px solid black;
background:white;
color: black;
z-index:2000;
padding: 4px;
}

where I've added right:10px; top:50px;
As I'm testing with Safari and Opera on a Mac i do not know if this is a Mac problem, but the pop-up pictures are still positioned near the link and not 10px from the right corner of the browser window.
Any suggestions?

davelf
05-26-2010, 02:56 AM
is there any link to see the example of tooltip that you discover?

if this is dynamicdrive tooltip, you can post it at
Dynamicdrive script help (http://www.dynamicdrive.com/forums/forumdisplay.php?f=2)

paldo
05-26-2010, 06:57 AM
[QUOTE=davelf;227627]is there any link to see the example of tooltip that you discover?

This is the link to the script that you probably know:
http://www.dynamicdrive.com/dynamicindex4/imagetooltip.htm

I want the image to be positioned at a specific place on the browser window, and not next to the image link as the image covers a text.

Paldo