View Full Version : a different script about images....!!
santral
06-20-2007, 02:17 PM
hi; I m looking for a script like this :
when mouse over a special place on image,,,a definition will appear about this special place....
it s for education....(for the names of human muscles on image....etc)
:::
for example like this image that I made :::
http://pic1.resimupload.com/r6/thumb_250257628.jpg (http://www.resimupload.com/ds250257628_cfdf.html)
so;is there a script like this ?????
Veronica
06-20-2007, 02:29 PM
Try the dhtml tooltip http://www.dynamicdrive.com/dynamicindex5/fixedtooltip.htm
To make it work for an imagemap, the links would be done like this:
<MAP NAME="mymap">
<AREA SHAPE="RECT" COORDS="10, 10, 135, 138"
onMouseover="ddrivetip('text to display','yellow', 300)";
onMouseout="hideddrivetip()">
</MAP>
<img src="image.gif" usemap="#mymap">
alexjewell
06-20-2007, 03:13 PM
Make Veronica's code web standard, though:
<map name="mymap">
<area shape="rect" coords="10, 10, 135, 138"
onMouseover="ddrivetip('text to display','yellow', 300)";
onMouseout="hideddrivetip()" />
</map>
<img src="image.gif" usemap="#mymap" alt="The eye's muscles" />
santral
06-20-2007, 03:22 PM
thanks all...
but I want to make special areas on the image...
when mouse over a muscle ,,its name will appear...
for example on my image;
when we go superior muscle its name(m.rectus superior) will appear, when we go inferior muscle its name(m.rectus inferior) will appear,,,on the same image.....
how can we do this ??????????
alexjewell, it's already perfectly valid HTML. You've just converted it to invalid XHTML (the event names should be all lower-case too for XHTML). While there is a chance that the original poster was using XHTML, it's usually safer to assume otherwise, due to IE's lack of support.
santral, Veronica's code will do exactly as you ask. You just have to outline the shapes in the image.
santral
06-20-2007, 04:07 PM
thanks alot :)
but how can I outline the shapes in the image?????
I really dont know how to do !!!! could you explain or write a link about outlining shapes ???
santral
06-20-2007, 04:19 PM
or it could be a program or php file(like module) to make it fast.......
thetestingsite
06-20-2007, 04:21 PM
Take a look through this thread, you will find a link to a program for making image maps and whatnot.
http://www.dynamicdrive.com/forums/showthread.php?t=18955
Hope this help.
alexjewell
06-20-2007, 06:17 PM
Twey! You caught me! I was using XHTML! Haha.
or it could be a program or php file(like module) to make it fast.......Server-side image maps are an accessibility nightmare. Never use them without an alternative, and never use them where a client-side map can be used instead.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.