473,785 Members | 2,553 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

probably beaten to death-disabling context menu

Been searching around and seems that most people say it's impossible
because people can steal your code or images a million different ways
but here's what I want to do:
I'm trying to make a javascript slideshow. I want the left click to
next slide but the right-click to go to the previous slide.
My code works. It does what I want. But every time I right click on
the div in addition to going to previous slide it also opens up the
context menu.
I am not trying to prevent people from stealing code or anything. Just
don't want them to have to be able to easily change slides without
navigating around or messing with the keyboard.
Does anyone know of a way?

Feb 17 '07 #1
3 1379
andrew wrote:
Been searching around and seems that most people say it's impossible
because people can steal your code or images a million different ways
but here's what I want to do:
I'm trying to make a javascript slideshow. I want the left click to
next slide but the right-click to go to the previous slide.
My code works. It does what I want. But every time I right click on
the div in addition to going to previous slide it also opens up the
context menu.
I am not trying to prevent people from stealing code or anything. Just
don't want them to have to be able to easily change slides without
navigating around or messing with the keyboard.
Does anyone know of a way?
The code I use does the following:

if( event.preventDe fault )
{
event.preventDe fault();
}

event.returnVal ue = false;

return true;

Which stops the context menu from being displayed an IE and Mozilla.

--
Ian Collins.
Feb 17 '07 #2
On Feb 16, 6:45 pm, Ian Collins <ian-n...@hotmail.co mwrote:
... stops the context menu from being displayed an IE and Mozilla.
Unless, of course, the user unchecked the box in Preferences Content
Advanced (Javascript) Disable or Change Context Menus.
--i

Feb 17 '07 #3
Isaac Schlueter wrote:
On Feb 16, 6:45 pm, Ian Collins <ian-n...@hotmail.co mwrote:
>>... stops the context menu from being displayed an IE and Mozilla.


Unless, of course, the user unchecked the box in Preferences Content
>>Advanced (Javascript) Disable or Change Context Menus.

Or even Preferences Content Enable JavaScript....

--
Ian Collins.
Feb 17 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

47
2740
by: Daniel Silva | last post by:
Shriram Krishnamurthi has just announced the following elsewhere; it might be of interest to c.l.s, c.l.f, and c.l.p: http://list.cs.brown.edu/pipermail/plt-scheme/2005-April/008382.html The Fate Of LAMBDA in PLT Scheme v300 or Lambda the Ultimate Design Flaw About 30 years ago, Scheme had FILTER and MAP courtesy of Lisp hackers
0
562
by: Rick | last post by:
I am a novice to embedded XP. I have an application that makes a call to the ManagementClass to get the MAC address. This code runs fine on XP professional and XP home, but when I copy the executable to an Embeded XP system that has the 1.1 framework installed, I get the blue screen of death. Prior to that the code throws an exception System.TypeInitializationException. The type initializer threw an exception: Provider load failure" at...
1
1927
by: =?Utf-8?B?RGpub3J0aHl5?= | last post by:
Hey guys, i am having a problem with my pc. It is running XP Home and is an advent. Sometimes it does it when it starts up or some times jsut randomly. Here is the error code: 0x0000003 0x82771bb8, 0x82771dc2, 0x805d1140 This error codes comes up in the blue screen of death! Then it forces me to
102
5166
by: BoogieWithStu22 | last post by:
I am running into a problem with a web page I have created when viewing it in IE6 on some machines. The page has a database lookup. The user enters an account name or number and clicks a lookup button. This hits an AS400 database looks for matches and returns a dataset that is used to populate a datagrid. The user then selects one of the entries from the list, this entry is used to populate a couple of textboxes on the page and a couple...
1
3712
by: James | last post by:
Database was no responding when user did some query operation. I checked db2diag.log and found EDU error mentioned in it. I pasted them below. I am not sure how to sovle it. Any advice? Thanks in advance!! James ********db2diag.log*********** 2007-04-26-08.30.16.452274 Instance:db2inst2 Node:000 PID:65284(db2tcpcm 0) TID:1 Appid:none
1
2128
by: ashore | last post by:
Under Win32/Vista, PHP 5, I have a batch of files to convert and I'm trying to script that in PHP. The following fails silently - while the hand-entered version - sans the escapes of course - works. (I've tried system(), and added an output parameter for debug, but still a silent death. exec ("C:\\Program Files\\FWTools\\ogr2ogr-f \"MapInfo File\" f:\ \out2.mif f:\\tgr24001\\tgr24001cty00.shp");
1
1709
by: Nicolas | last post by:
Hello, On a Windows platform (XP SP2), using Wampserver 2.0, each time I try to access a distant file with PHP: $contents = file_get_contents("http://www.google.fr/intl/fr_fr/images/logo.gif"); or copy("http://www.google.fr/intl/fr_fr/images/logo.gif", "logo.gif"); or any other function,
0
2186
by: eddy82 | last post by:
Hi guys.I need some advice as i my db2 instance was kill off suddenly at late night and not sure what has kill it. 2008-10-14-22.47.53.326765+480 E31715373A878 LEVEL: Severe PID : 856268 TID : 1 PROC : db2gds 0 INSTANCE: db2egq NODE : 000 FUNCTION: DB2 UDB, oper system services, sqloEDUSIGCHLDHandler, probe:50 DATA #1 : <preformatted> Detected the death of an EDU with process id 1409148....
6
5729
by: Rocketmagnet | last post by:
Hi all, I have been kind of forced (honestly) into writing a class structure which contains a Diamond of Death, and I'm not entirely sure what to do about it. This is a simplified version of my class structure: class entity { public:
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10147
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10090
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8971
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7499
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6739
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5380
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4050
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.