/* The following code was created by the UT System Administration TeleCampus technology team. Instructions for preventing right clicking and printing, CTRL + P to print, and selection of text within a WebCT assessment for copying and pasting. Note: This is not full-proof. Please contact one of the Online Instructional Course Design Specialists for details. 1) Create a "noCopy" directory in the File Manager area of your course. Make sure you are under the course files (you'll see the title of your course highlighted in the upper left of screen) and not My Files. 2) Copy the JavaScript lines at the bottom of this file to a new file named noCopyr2.js in the noCopy directory. You can do this using Notepad. Rename the extension to .js. Or use the noCopyr2.js file already created by Heather Caprette. 3) Click the actions link drop down arrow beside the noCopyr2.js file, and choose "View file HREF" information. If it is different from the line listed below, you'll need to copy it to a text editor for pasting into src="" below in line four. If it the same as the line below, you can simply cut and paste the four lines in item 4 into your custom instructions box of each quiz. /webct/RelativeResourceManager/Template/noCopy/noCopyr2.js 4) Place the following in the custom instructions box of your test under Edit Properties. The first two lines are CSS. The third line is javascript that references the location of the noCopyr2.js file. The fourth line is html. 6) Check off the box next to HTML below the custom instructions box of the assessment's edit properties window. 7) Save the properties you set on your assessment and preview it within WebCT CE 8. You should not be able to highlight, copy and paste text. You should not get a context window when you right click. And, if you press CTRL + P on your keyboard, the page that is printed should be blank. ----- Testing that was done by the developers: These functions have been tested under IE 5.5, IE6, and IE 7 under Windows XP and Windows Vista; Netscape 7.1, Netscape 8, and Netscape 9 under Windows XP and Windows Vista; Firefox 2.5 and Firefox 3 under Windows XP and Windows Vista; and Safari 1.1, Safari 1.2, and Safari 2 under Mac OS 10.2, OS 10.3, and OS 10.4. These functions have been tested with Blackboard 7.1/7.2/7.3, WebCT CE4/CE6/Vista, and Moodle 1.9 (although not in every OS/browser pair for each LMS instance). This approach was pioneered by David Carter-Tod at Wytheville Community College, Dennis James at Madison Area Technical College (as far as we can tell; several schools have implemented the MATC solution and the original author is unclear), and Carl Martin at Angelo State University. Without the efforts of these giants on whose shoulders we stand, our own solution would have been more difficult-if not impossible-to achieve. In most instances, it is more efficient and sounder (pedagogically) to provide authentic assessments via team PBL projects and group-led discussions. Research from CAI (http://www.academicintegrity.org/) suggests that developing a community of academic integrity provides a longer-lasting deterrent to cheating than does a policing approach exemplified by these lines of code. ----- Copy the lines below to Notepad to create the noCopyr2.js file talked about above. ondragstart=function(){ return false; } onrightclick=function(){ return false; } onselectstart=function(){ return false; } oncontextmenu=function(){ return false; } document.oncontextmenu=function(){ return false; } document.onselectstart=function(){ return false; } document.onrightclick=function(){ return false; } document.ondragstart=function(){ return false; } function noClickSelect() { var allLab=document.getElementsByTagName("label"); for (var i=0; i