Created
February 23, 2009 21:48
-
-
Save stympy/69199 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
var scribd_doc; | |
function showScribd(link) { | |
scribd_doc = new scribd.Document(link.id, link.rel); | |
scribd_doc.addParam('height', 400); | |
scribd_doc.addParam('width', 620); | |
scribd_doc.addParam('page', 1); | |
scribd_doc.write('scribd_preview'); | |
$('scribd').show(); | |
} | |
Event.observe(window, 'load', function() { | |
$$('a.scribd').each(function(link) { | |
link.observe('click', function(event) { | |
showScribd(link); | |
Event.stop(event); | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment