...

View Full Version : Question for Spookster



fconijn
10-27-2002, 01:55 AM
Greetings Spookster,

I read on http://warriorlibrarian.com/IMHO/antiplag.html that you had invented a method to prevent NS users from copying text off a web site by simply preventing the ability to highlight a text. It says that one has to use a transparent image as shield.

However, the Warrior web page is not very clear on what to do exactly. I've been experimenting all day, but I can't get it to work. Would you be willing to help me out?

Thanks,
Frank

(P.S.: I'm not looking for a fool-proof method. Preventing people from highlighting text, which is easy enough in IE, but seems impossible in NS, will do just fine.)

Spookster
10-27-2002, 02:38 AM
Well first of all ASAAKI impersonating me will get you zapped with my moderator gun. :mad:

Seoncd of all fconjin please don't address topics to specific people.

Third of all this will work in both NS and IE. Here is the original code I had used. Had to dig around to find it:



<html>
<head>
<title>Prevent copy and paste</title>
</head>
<body marginwidth="0" marginheight="0" bgcolor="#0000ff">
<h3>This is a test to see if this text can be highlighted<a href="#">This is a link</a></h3>
<div id="blank" style="position:absolute;top:0;left:0">
<img src="images/blank.gif" width="800" height="600" alt="Blank Image">
</div>
</body>
</html>


What you need to do is use a graphics program ie Macromedia Fireworks, Photoshop, PaintshopPro, whatever and create a 1 pixel by 1 pixel transparent gif. That is the graphic file you will use. You need to set the width and height of the image tag to cover all of your text.

As has been mentioned obviously they can just view the source and grab what they want but this can deter the novice users.

ionsurge
10-27-2002, 04:37 PM
I just use:




<SCRIPT language=JavaScript1.2>
function disableselect(e)
{
return false
}
function reEnable()
{
return true
}
document.onselectstart=new Function ("return false")
if (window.sidebar)
{
document.onmousedown=disableselect
document.onclick=reEnable
}
</SCRIPT>




Ionsurge.

Bosko
10-27-2002, 05:19 PM
-moz-user-select:none :rolleyes:

ASAAKI
10-27-2002, 09:19 PM
Originally posted by Spookster
Well first of all ASAAKI impersonating me will get you zapped with my moderator gun. :mad:


err..soooorrryy :o
i earnestly apologize...didn't realize...

fconijn
10-28-2002, 02:35 AM
Thanks guys, for your responses. It seems, Spookster, that your solution is the only one that would really disable all methods of highlighting text. The other methods that were mentioned are too easy to work around in NS (by means of Ctrl+A, or Select All, which I see as standard operating knowledge).

One problem, however: I don't have a graphics program with which I could make a 1x1 transparent gif. Would it be a lot of work for you to make one (assuming you do have such a program), and send it to me? Of course I'll mention you on my "I Am Grateful To"-page then (and I'll send you the URL).

Thanks a million in advance! I'd really be helped with it.

Frank
(e-mail: ptu@planet.nl)

Spookster
10-28-2002, 03:15 AM
Originally posted by fconijn
Thanks guys, for your responses. It seems, Spookster, that your solution is the only one that would really disable all methods of highlighting text. The other methods that were mentioned are too easy to work around in NS (by means of Ctrl+A, or Select All, which I see as standard operating knowledge).

One problem, however: I don't have a graphics program with which I could make a 1x1 transparent gif. Would it be a lot of work for you to make one (assuming you do have such a program), and send it to me? Of course I'll mention you on my "I Am Grateful To"-page then (and I'll send you the URL).

Thanks a million in advance! I'd really be helped with it.

Frank
(e-mail: ptu@planet.nl)

You can download this one:

http://www.designqueue.com/blank.gif

fconijn
10-28-2002, 08:17 PM
You're brilliant, Spookster. It works, and in all browsers! Slight problem was that the hyperlinks covered by the gif neither work anymore, but for the most important pages that's no problem.

Thanks!
Frank



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum