Introduction
This free JavaScript will find all links to PDF or doc files. It adds an additional link. On rollover, the new link will create a floating div
with an iPaper visualisation of the document on the fly.
Users don't have to download a file before they see its contents.
Using the code
Copy the code into the body section of your webpage. The script will find and visualize the download links. The script uses jquery and scribd API:
<script src="http://code.jquery.com/jquery-latest.js"
type="text/javascript"></script>
<script src="http://ui.jquery.com/latest/ui/ui.core.js"></script>
<script src="http://ui.jquery.com/latest/ui/ui.draggable.js"></script>
<script src="http://www.tdv.ch/api.js" type="text/javascript"></script>
<script type="text/javascript">
jQuery.noConflict();
jQuery(document).ready(function(){
createDocViewer();
});
</script>