View Full Version : Cool DHTML tooltip - image in text

08-05-2010, 03:49 PM
1) Script Title: Cool DHTML tooltip

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex5/dhtmltooltip.htm

3) Describe problem: I am using this script to add glossary words to some online training. The glossary terms are medical and therefore sometimes it's useful to have a picture in the description. I would like to add an image in there but do to all the " and ' usage in the code I can't get the image tag to recognize the src location.

So here is the code I have at the moment for one word.

<a onmouseout="hideddrivetip()" onmouseover="ddrivetip('<strong>Bar coding system:</strong> A system that scans bar codes on patient wristbands as well as on their medications and incorporates the information into an EHR while electronically checking against the Five Rights of Medication Administration.<br /><img src=\'barcode_system.jpg\'')"><font color="#aca242"><strong>bar coding system</strong></font></a>

So far I can't get it to recognize the image. Any ideas?

08-05-2010, 05:12 PM
It is working as it should now.