On Feb 17, 2007, at 10:22 AM, Joel Birch wrote:
My thoughts exactly Karl.On another note, I just created a simple plugin (my first ever!) that I have applied to the Preshil site and may ask for feedback tomorrow if it still seems like a good idea after a good night's sleep (its late here). It creates a menu of in-page links out of whatever query you supply as a parameter, within the jQuery elements you chain the plugin to. Easier to show an example... Example usage: $("#content").contentMenu("h2");
Ha! Now you are scaring me! :) That's exactly what I've done on learningjquery.com! (You're not reading my mind, are you?)
Well, I didn't convert it into a plugin, but I did add page-content links using jQuery. I've been meaning to write up a little tutorial on how I did it, but haven't gotten around to it yet. For my site, it looks through the main content area to see if there is more than one <h2> element. If so, it builds a page-content list based on those, and links to each one. If not, it tries to find more than one <h4> element (which is what I use for the tutorial subheadings) and uses those for its page contents.
--Karl _________________ Karl Swedberg www.englishrules.com www.learningjquery.com
_______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
