Created
April 2, 2009 17:21
-
-
Save jlong/89299 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FancyZoomImageBehavior = Behavior.create({ | |
initialize: function() { | |
var src = this.element.readAttribute('href'); | |
var div = $div($img({src: src})); | |
document.body.insert({after: div}); | |
this.element.writeAttribute('href', '#' + div.identify()); | |
new FancyZoom(this.element); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment