Connecting Tech Pros Worldwide Forums | Help | Site Map

Left mouse click

Trikki
Guest
 
Posts: n/a
#1: Jul 23 '05
Hi, Im very new to Javascript and i'm in the very early learning
stages.

My question is:

I have a web page with 8 links on, i want to disable the left mouse
click on 6 of these links but still be able to use right click to
"save target as"
I still want 2 of the links to operate normally with left click.

I have managed to get most of this working but the problem i have is
the 2 links i want to left click on won't work because the left click
has been disabled on the whole page.

I have searched and searched the net for answers to my problem with no
luck.

I know the leftclick block annoys people but this page of my site is
not public and is only accessable by my employees who need direction
to say the least.

Thanx in advance

Rick

----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----

kaeli
Guest
 
Posts: n/a
#2: Jul 23 '05

re: Left mouse click


In article <r64m81tenhcvjvevojs2ovf7lo78gs0lkp@4ax.com>, Trikki <>
enlightened us with...[color=blue]
>
> I have a web page with 8 links on, i want to disable the left mouse
> click on 6 of these links but still be able to use right click to
> "save target as"[/color]

Why use links then?
Why not use a button for them to save the file, and stream it out, like a
download?
Seems odd to use links for something that isn't actually a link.
[color=blue]
> I still want 2 of the links to operate normally with left click.
>
> I have managed to get most of this working but the problem i have is
> the 2 links i want to left click on won't work because the left click
> has been disabled on the whole page.[/color]

Don't do that.
Instead, disable individual links if you feel the need to use them instead of
buttons. (you can style a button to look like a link if you have really dense
employees or something)
<a href="someFileForDownload.mpg" onClick="return false;">download</a>
[color=blue]
>
> I know the leftclick block annoys people but this page of my site is
> not public and is only accessable by my employees who need direction
> to say the least.[/color]

hahahaha
Sounds like my job. ;)

--
--
~kaeli~
A midget fortune teller who escapes from prison is a small
medium at large.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Closed Thread