Hi,
I have a javascript which is a onmouseover help tool that I need help inserting into my site, javahelp.js and picture I would need to be able to edit it. Any help would be greatly appreaciated.
| SitePoint Sponsor |
Hi,
I have a javascript which is a onmouseover help tool that I need help inserting into my site, javahelp.js and picture I would need to be able to edit it. Any help would be greatly appreaciated.


You'd normally link to an external script inside the <head> of your page or just before the closing </body> tag. I think you need to go into a lot more detail about what you need help with here, as it's not clear. Are you having trouble with using the script itself?
I have the .js script with a icon that I'd like on my site to give users information when they hover over it. I just like to know the code to do so.


Programming Group Advisor
Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
Car is to Carpet as Java is to JavaScript
What if there is no body tag? It's a .tpl file, with this code given how would I be able to edit the text for each help box?

All web pages have a body tag. If it is not explicitly entered then the browser will add it.
The very last two tags in any web page are </body></html> so if those are not there (and are going to be added by the browser) then simply attach the JavaScript at the very bottom of the content.
Stephen J Chapman
javascriptexample.net, Book Reviews, follow me on Twitter
HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
<input name="html5" type="text" required pattern="^$">
I tested this on a normal page of the site and still will not work (nothing shows up) here's the last code of the page. All the files from the script are javahelp.js, javahelp.css and helpicon.png
</div>
<!-- Site Wrapper Ends -->
<script src="javahelp.js"></script>
</body>
</html>


Programming Group Advisor
Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
Car is to Carpet as Java is to JavaScript


If your source says src="javahelp.js", also make sure that the javahelp.js is in the same directory/folder as the page on which the link appears.
Last edited by ralph.m; Dec 15, 2012 at 18:12.
I don't think this script is meant to work the way I want it to, I'm not even sure how I would be able to edit it all was given is <script src=""></script> and I had plan to set this up with every field I have. Thanks for the help I might try to get my money back.
Bookmarks