PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WEBDEV 2024
→
Empêcher de sauver l'image.
Empêcher de sauver l'image.
Started by Tom, May, 07 2004 3:02 PM - 1 reply
Connect yourself…
Tom
#1
Posted on May, 07 2004 - 3:02 PM
Bonjour,
y-a-t-il possibilité d'interdire à l'utilisateur du site de sauver une image
avec la touche droite de la souris?
Merci de votre aide.
Report
0
0
Fabrice
#2
Posted on May, 09 2004 - 3:50 PM
Voici un code Javascript que j'ai récupéré sur un site, je ne l'ai jamais
essayé.
Bon dev!
<html>
<head>
<title> </title>
<script LANGUAGE="JavaScript">
<!--
var msg = "Pas de clic droit !!! ";
function noclick(scx) {
if (navigator.appName == "Netscape" && scx.which == 3) {
alert(msg);
return false;
}
if (navigator.appVersion.indexOf("MSIE") != -1 && event.button == 2) {
alert(msg);
return false;
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
if (navigator.appVersion.indexOf("MSIE") != -1)
document.onmousedown = noclick;
else if (document.layers)
document.onmousedown = noclick;
else if (document.getElementById) //NS6
document.onmouseup = noclick;
//-->
</script>
</head>
<body>
</body>
</html>
Report
0
0
→ Go back to WEBDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
WEBDEV (earlier versions)
WINDEV Mobile (earlier versions)
Reports & Queries
Off-topic
Tools
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text