Preventing Students from Copying and Printing Quizzes

Back to WebCT for Faculty

Using the script will prevent students from:

 

 

Note: The instructor will not be able to print a copy of the quiz from WebCT either!

 

Instructions:

1.     Open the Quiz Tool. Ensure that you are in Designer Mode.

2.    Click the name of the quiz you want to protect.

3.    In the Actions frame under Customize, click Edit/Add upper textblock.

4.    Copy the script below beginning with <head> and ending with </script> [Highlight the script, press and hold the Ctrl key while pressing C].

5.    Click inside the text box for the upper text block. When you see the cursor blinking, paste the script in the textbox [Press and hold the Ctrl key while pressing V].

6.    Click the Update button at the bottom of the window to save the script.

 

 

<head>
<meta http-equiv="imagetoolbar" content="no">
</head>
<style media="print">body {display:none}</style>
<body ondragstart="return false" onselectstart="return false">

<script language=JavaScript>
<!--
var message="Function Disabled!";

function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false")

// -->
</script>

<script language=JavaScript>

</script>

<script type="text/javascript">

var omitformtags=["input", "textarea", "select"]

omitformtags=omitformtags.join("|")

function disableselect(e){
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
return false
}

function reEnable(){
return true
}

if (typeof document.onselectstart!="undefined")
document.onselectstart=new Function ("return false")
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}

</script>

 

 

Other suggestions for preventing copying quizzes:

 

© Susan Bellomo, 2006-2007. All rights reserved.
E-mail:
Campus e-mail: