Left mouse click

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Trikki

    #1

    Left mouse click

    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

    #2
    Re: Left mouse click

    In article <r64m81tenhcvjv evojs2ovf7lo78g s0lkp@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="someFileF orDownload.mpg" onClick="return false;">downloa d</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.



    Comment

    Working...