I'm working on an assembly code documentation generator with the nifty (I think) acronym: EGADS! - Easy Generation of Assembly Documentation from Source.
I'd like to add a cool feature to the documentation which you see here and there on the web (such as the wikipedia popups) where hovering over a link will bring up a little pop-up box showing a preview of the contents. I believe this technology is called Ajax, but I might be wrong since I don't know much about it and really don't care to learn it for myself!
I was wondering if anybody on here would be able to help me out? I'm basically looking for someone to write the script for me. I'd like to be able to display a popup box containing the first line of the description and the input/output registers. This would be handy for quickly checking something in the docs if you've forgotten which registers do what.
If anybody is interested, reply in this thread or PM me is you wish. By way of thanks you get your name in the credits.
[Javascript] Ajax - or whatever you call it.
Moderator: MaxCoderz Staff
[Javascript] Ajax - or whatever you call it.
"I don't know why a refrigerator is now involved, but put that aside for now". - Jim e on unitedti.org
avatar courtesy of driesguldolf.
avatar courtesy of driesguldolf.
- benryves
- Maxcoderz Staff
- Posts: 3087
- Joined: Thu 16 Dec, 2004 10:06 pm
- Location: Croydon, England
- Contact:
mootools is an excellent JavaScript framework. It even supports tooltips out of the box.
With the mootools tooltips, you could give each link a classname to identify it as a tooltip, and then store the tooltip contents in the title attribute. Like this:
To then add popups, you'd simply need this snippet of JavaScript:
This doesn't use AJAX, and requires that the content is known beforehand. As you're outputting static HTML (rather than generating these documents on the fly using a server-side application), there isn't a huge advantage to using AJAX.
With the mootools tooltips, you could give each link a classname to identify it as a tooltip, and then store the tooltip contents in the title attribute. Like this:
Code: Select all
<a href="somelink.htm" class="tip" title="function_name :: This function does something awesome.">function_name</a>
Code: Select all
window.addEvent('domready', function() { new Tips($$('a.tip')); });
There's also JQuery and Prototype.
I heard that JQuery is really good.
I'm a Prototype guy for now. Takes a bit more code to do stuff with Prototype, but after seeing some of JQuery's examples, I'm really thinking about switching.
I heard that JQuery is really good.
I'm a Prototype guy for now. Takes a bit more code to do stuff with Prototype, but after seeing some of JQuery's examples, I'm really thinking about switching.
"Python has dynamic typing, and dynamic binding, which means that not only does it make a great secretary, it is also pretty damn kinky." --Henry the Adequate
<My Artwork>
<My Artwork>