joon
01-12-2009, 02:56 AM
<html>
<head>
<style type="text/css">
#dhtmltooltip{
OMITTED
}
</style>
</head>
<body>
<div id="dhtmltooltip"></div>
<script type="text/javascript">
/***********************************************
* Cool DHTML tooltip script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
- OMITTED -
document.onmousemove=positiontip
</script>
<a href="http://www.javaSciprtKit.com"
onMouseover="ddrivetip('JavaScriptKit.com JavaScript tutorials', 'yellow', 250)";
onMouseout="hideddrivetip()">LINK1</a>
<a href="http://www.javaSciprtKit.com" onMouseover="ddrivetip('JavaScriptKit.com
JavaScript tutorials', 'yellow', 250)";
onMouseout="hideddrivetip()">LINK2</a>
</body>
</html>The code above is from http://www.dynamicdrive.com/dynamicindex5/dhtmltooltip.htm .
On the bottom of the code above there are two links, i.e. link1 and link2.
Link1 works fine but Link2 which has line breaks in the text doesn't work fine.
Is there any way to make it fine with linebreaks?
<head>
<style type="text/css">
#dhtmltooltip{
OMITTED
}
</style>
</head>
<body>
<div id="dhtmltooltip"></div>
<script type="text/javascript">
/***********************************************
* Cool DHTML tooltip script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
- OMITTED -
document.onmousemove=positiontip
</script>
<a href="http://www.javaSciprtKit.com"
onMouseover="ddrivetip('JavaScriptKit.com JavaScript tutorials', 'yellow', 250)";
onMouseout="hideddrivetip()">LINK1</a>
<a href="http://www.javaSciprtKit.com" onMouseover="ddrivetip('JavaScriptKit.com
JavaScript tutorials', 'yellow', 250)";
onMouseout="hideddrivetip()">LINK2</a>
</body>
</html>The code above is from http://www.dynamicdrive.com/dynamicindex5/dhtmltooltip.htm .
On the bottom of the code above there are two links, i.e. link1 and link2.
Link1 works fine but Link2 which has line breaks in the text doesn't work fine.
Is there any way to make it fine with linebreaks?