View Full Version : Postit Script in Javascript

06-10-2015, 05:23 PM
Can anyone advise where I'm going wrong; I'm loking to put this Tooltip script into a Javascript so I can repeat on multiple occasions and pages on my website. I want to ensure the text is the same and if I need to edit it updates all instances.

The link I currently have is

<a href="#nogo" Style="Text-Decoration: None" onMouseover="ddrivetip('Beech is a Hard Wood which makes a slightly heavier Skittle Pin Compared to Sycamore.')"; onMouseout="hideddrivetip()"><font color="blue">Beech</font></a>

What i would like to put in it's place is

<script language="JavaScript1.2" src="js/beechtooltip.js"></script>

I tried this within beechtooltip.js but it doesn't appear to work

document.write("<a href'#nogo Style=Text-Decoration: None onMouseover=ddrivetip('Beech is a Hard Wood which makes a slightly heavier Skittle Pin Compared to Sycamore.'); onMouseout=hideddrivetip()><font color=blue>Beech</font></a>")

Any assistance appreciated

06-10-2015, 06:58 PM
Warning: Please include a link to the DD script in question in your post. See this thread (http://www.dynamicdrive.com/forums/showthread.php?t=6) for the proper posting format when asking a question.

Please post a link to the page on your site that contains the problematic script so we can check it out.

If you are unable to provide a link to a live web page on your own server, then please use one of the following services;

- http://jsbin.com/
- https://jsfiddle.net/
- http://codepen.io/pen/

live edits = more convenient = faster replies