943,169 Members | Top Members by Rank

Ad:
Sep 2nd, 2010
0

Printscreen Help

Expand Post »
Hey Guys!

I've already researched this topic across the Internet and DW - and I'm still stuck on creating a script that will allow me to edit my content when Print Screen is pressed.

Now I know I can't disable print screen - I don't want to either, that isn't my decision and I don't have that right - but, I wanted my content to change font colour to white when print screen is pressed ... does anybody know how to do this?

I don't mind if my content has to be inside a separate element or something, I just really need this for a small project of mine!

All your help really is greatly appreciated!

Thanks,
Brownie.
Last edited by brown23; Sep 2nd, 2010 at 10:33 pm.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
brown23 is offline Offline
22 posts
since Sep 2010
Sep 2nd, 2010
0
Re: Printscreen Help
I've managed to find a piece of code laying around Google that clears the users clipboard every second:

JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. <HEAD>
  2. <script language="javascript">
  3. function clearData(){
  4. window.clipboardData.setData('text','')
  5. }
  6. function ccd(){
  7. if(clipboardData){
  8. clipboardData.clearData();
  9. }
  10. }
  11. setInterval("ccd();", 1000);
  12. </script>
  13. </HEAD>
  14.  
  15. <body ondragstart="return false;" onselectstart="return false;" oncontextmenu="return false;" onload="clearData();" onblur="clearData();">

I think we can all agree that although it works, it's just not right to do that. I really hope this isn't the only option I have! Does anyone have a solution? There's no way I'm going to start controlling someone else's PC Controls, I just want to be able to change the colour of the things that belong to me!

Thanks again guys!
Brownie.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
brown23 is offline Offline
22 posts
since Sep 2010

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JavaScript / DHTML / AJAX Forum Timeline: How has Daniweb made it's pop-up?
Next Thread in JavaScript / DHTML / AJAX Forum Timeline: Show / Hide table rows via checkboxes





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC