| |

VerySource

 Forgot password?
 Register
Search
View: 1431|Reply: 16

Mouse shielding problem, please support

[Copy link]

3

Threads

10

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

Post time: 2020-3-14 17:30:01
| Show all posts |Read mode
I want to realize that an image is not allowed to be obtained, that is, not to be saved or downloaded by others. How to achieve it?
Reply

Use magic Report

0

Threads

119

Posts

67.00

Credits

Newbie

Rank: 1

Credits
67.00

 China

Post time: 2020-6-12 02:00:02
| Show all posts
<img src='' .....oncontextmenu="window.event.returnValue=false">
Reply

Use magic Report

3

Threads

10

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

 Author| Post time: 2020-6-12 19:45:01
| Show all posts
It can still be saved, why?
Reply

Use magic Report

0

Threads

11

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

Post time: 2020-6-13 16:00:01
| Show all posts
Shield the right mouse button and use script to control

<script language="JavaScript">
<!--

if (window.Event)
  document.captureEvents(Event.MOUSEUP);

function nocontextmenu()
{
event.cancelBubble = true
event.returnValue = false;

return false;
}

function norightclick(e)
{
if (window.Event)
{
  if (e.which == 2 || e.which == 3)
   return false;
}
else
  if (event.button == 2 || event.button == 3)
  {
   event.cancelBubble = true
   event.returnValue = false;
   return false;
  }

}

document.oncontextmenu = nocontextmenu; // for IE5+
document.onmousedown = norightclick; // for all others
//-->
</script>
Reply

Use magic Report

0

Threads

11

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

Post time: 2020-6-13 23:30:01
| Show all posts
Or like this
<script language="javascript">
  function nomenu()
  {
      return false;
  }
   
  document.oncontextmenu = nomenu;
  </script>
  Or:
  <body oncontextmenu="javascript:self.event.returnValue=false">
Reply

Use magic Report

3

Threads

10

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

 Author| Post time: 2020-6-15 15:00:02
| Show all posts
This is fine, but it will automatically appear on the picture to save the shortcut, you can also save the picture
Think about it for me
Reply

Use magic Report

0

Threads

11

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

Post time: 2020-6-15 23:00:02
| Show all posts
That seems to be a problem with IE settings,
Reply

Use magic Report

3

Threads

10

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

 Author| Post time: 2020-6-18 18:00:01
| Show all posts
Ah, the right button is no longer available, but there is still an icon to save it
Reply

Use magic Report

0

Threads

7

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-6-18 20:45:01
| Show all posts
Do what is useless, as long as someone visits your website, you can get your picture. Your picture is not downloaded into the IE cache of others, how can others see your picture?
Reply

Use magic Report

0

Threads

15

Posts

12.00

Credits

Newbie

Rank: 1

Credits
12.00

 Japan

Post time: 2020-6-19 09:15:01
| Show all posts
<IMG SRC="mypicture.jpg" HEIGHT="100px" WIDTH="100px" GALLERYIMG="false">
or
<head>
<meta http-equiv="imagetoolbar" content="no">
</head>
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list