by prettyscripts on 2010-05-14 16:45:00
free • javascript • html
i have previously posted about this javascript based bubble help tooltips 1.5 years ago. i decided to use this in a new project but sadly the website is gone. nowhere to download! no documentation!
after doing some research it was said walter zorn, the developer, passed away sometimes last year! don't know how much you can trust information found on the internet, but if this is true, this is really sad... he made some great free tools.
thankfully the website is not completely gone. somewhere further down the thread there's a link to archived version of the website. but it takes forever to load any of pages.
i'm just going to briefly document the usage for my own reference.
thanks to AnotherWZ_tootipFan who left a comment below, download and documentation is available at www.walterzorn.de (along with other scripts). it's from this site that it's confirmed that the author passed away in 2009. the site was continued by his family and friends.
i manged to find a copy downloaded years ago in my backup (v5.31). i'm not sure about the legality of making the file available to download from this website nor distributing the file. i don't want to get into any legal battle. please do not ask me to send you the file.
you should be able to download from the archived website (takes a long time to load) or find source code by searching google.
update: wz_tooltip project can be found on sourceforge. the file can be downloaded from the site. (thanks Steve who left the comment below.)
the code must be placed after the <body> tag. if it's placed where you normally link javascript files, ie between <head>, it won't work!
Code:
<html> | |
<head> | |
.... | |
</head> | |
<body> | |
<script type="text/javascript" src="wz_tooltip.js"></script> | |
.... | |
</body> | |
</html> |
call Tip('tip text') and UnTip() in the event, eg
Code:
<a href="index.htm" onMouseOver="Tip('tip text')" onMouseOut="UnTip();">Homepage </a> |
note: the documentation says no onMouseOut event. if you don't use the event the bubble will follow your mouse all over the browser. so i suggest, use it!
call TagTotip('span_id') and create a <span> with this id with the tooltext somewhere in html content. the <span> content is automatically hidden when the page is loaded.
Code:
<a href="index.htm" onmouseover="TagToTip('tip_1')">Show Tip</a> | |
<span id="tip_1">tooltip inside a span</span> |
you can config the settings inside the code (where specified).
there are commands that can be passed with values, separated by commas, to Tip() and TagToTip().
Code:
onMouseOver="Tip('some tip text', COMMAND, value, COMMAND2, value2');" |
this is just notes from commands table from the website. please go to the archived website for detail. (i'm not copying the table here because i don't want to get into any copyright battle.)