Feed Sign in with OpenID OpenID

Simon Willison’s Weblog

Blockquote citations

Inspired by Adrian Holovaty, I spent an hour this morning getting dirty with the DOM in an effort to replicate his funky CSS blockquote citations effect but with links that you can actually click on. The resulting code is now active on this weblog—check the javascript out here.

It turns out Paul Hammond had exactly the same idea—his implementation can be found here.

This is Blockquote citations by Simon Willison, posted on 20th December 2002.

View blog reactions

Next: Security and coding style

Previous: Usability.net rant

3 comments

  1. I did some thinking and thought it would be nice to dynamically determine if the citation source was a URL or not. I would find this very useful for times when I want to quote a book, but putting the book's name in the cite attribute would create an erroneous URL. I tried to post it here but you SafeHtml Checker would not have it. Oh well. it is viewable on my homepage http://www.my-dimension.com/ Hope this is helpful to someone. It sure was helpful to me.

    MyDimension - 6th March 2003 03:43 - #

  2. I modified this slightly to allow the "title" attribute to be displayed as the link to the source (example at my site)

    Phil Wilson - 22nd October 2003 10:09 - #

  3. Cool info

    Russian woman - 19th July 2005 02:06 - #

Comments are closed.

Previously hosted at http://simon.incutio.com/archive/2002/12/20/blockquoteCitations

A django site