Click here to Skip to main content
15,885,875 members
Articles / Web Development / XHTML

Free scribd automation JavaScript

Rate me:
Please Sign up or sign in to vote.
1.00/5 (1 vote)
17 May 2009CPOL 14.1K   7   1
Visualizes doc and PDF on the fly to iPaper by scribd.

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:

JavaScript
<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>

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Switzerland Switzerland
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralMy vote of 1 Pin
manojsitapara7-Jan-10 0:57
manojsitapara7-Jan-10 0:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.