Good, but why limit it to 1 class per span?
My proposal separates different functionality in multiple classes,
allowing the user to mix and match. If you limit yourself to 1 class,
you have to provide classes for all possible combinations a user might
want, such as: "gbsv-link-to-preview-with-thumbnail".
- Godmar
On Mon, Mar 17, 2008 at 4:30 PM, Bess Sadler <[log in to unmask]> wrote:
> Matt Mitchell here at UVa just wrote a jquery plugin to access google
> book covers and link to google books. I wrote up how to use it here:
> http://www.ibiblio.org/bess/?p=107
>
> We're using it as part of Blacklight, and we're making it
> available through the Blacklight source code repository under an
> Apache 2.0 license.
>
> First, grab the plugin here: http://blacklight.rubyforge.org/svn/
> javascript/gbsv-jquery.js, and download jquery here: http://
> code.google.com/p/jqueryjs/downloads/detail?name=jquery-1.2.3.min.js.
>
> Now make yourself some HTML that looks like this:
> <html>
> <head>
> <script type="text/javascript"
> src="jquery-1.2.3.min.js"></script>
> <script type="text/javascript" src="gbsv-jquery.js"></
> script>
> <script type="text/javascript">
> $(function(){
> $.GBSV.init();
> });
> </script>
> </head>
> <body>
> <span title="ISBN:0743226720 $B!m (B class="gbsv-link-to-
> preview"></span>
> <span title="ISBN:0743226720 $B!m (B class="gbsv-link-to-
> info"></span>
> <span title="ISBN:0743226720 $B!m (B class="gbsv-
> thumbnail"></span>
> <span title="ISBN:0743226720 $B!m (B class="gbsv-link-to-
> preview-with-thumbnail"></span>
> </body>
> </html>
>
> Now load your page and you should see something like this: http://
> blacklight.rubyforge.org/gbsv.html
>
> If you link to a non-existent ISBN it will be silently ignored.
>
> Give it a shot and give us some feedback!
>
> Bess
>
>
> Elizabeth (Bess) Sadler
> Research and Development Librarian
> Digital Scholarship Services
> Box 400129
> Alderman Library
> University of Virginia
> Charlottesville, VA 22904
>
> [log in to unmask]
> (434) 243-2305
>
|