The only issue I see preventing the script from going into an external file is the line:
<div id="dhtmltooltip"></div>
Just delete that line, and have the script dynamically write it out, by adding this line to the start of the script:
Code:
<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
***********************************************/
document.write('<div id="dhtmltooltip"></div>')
var offsetxpoint=-60 //Customize x offset of tooltip
var offsetypoint=20 //Customize y offset of tooltip
"
"
Then save the resulting script as an external .js file.
Bookmarks