[RESOLVED] Disable right click for one photo only?
Results 1 to 8 of 8

Thread: [RESOLVED] Disable right click for one photo only?

  1. #1
    Join Date
    Mar 2000
    Location
    NYC,NY USA
    Posts
    633

    Resolved [RESOLVED] Disable right click for one photo only?

    Hi, there, I would like to disable right click on only one photo on my websbite. What would I add to the below code to do so? I removed the <> ends so the code would post. Thank you.

    img src=”https://www.website.com/wp-content/u.../05/lb3.jpg” alt=”” width=”283″ height=”401″ /
    I have two laptops:

    #1 2016 HP 15.6" Premium High Performance Laptop PC, AMD Quad-Core A6-5200 Processor, 4GB RAM, 500GB HDD, DVD+/-RW, Webcam, WIFI, HDMI, UbuntuMate 18.04

    #2 2019 HP Premium 15.6" HD Laptop, AMD A6 Dual-Core 2.6 GHz, 4GB|8GB|16GB RAM, 1TB|2TB HDD, 128GB|256GB|512GB|1TB SSD, WiFi Bluetooth HD Webcam 3-in-1 SD Reader HDMI, Windows 10,

  2. #2
    Join Date
    Sep 1999
    Location
    Largo, Fl.
    Posts
    22,322
    Did you Google-> Disable right click for one photo only

    and see all the hits?
    If you're happy and you know it......it's your meds.

  3. #3
    Join Date
    Mar 2000
    Location
    NYC,NY USA
    Posts
    633
    Hi, Steve, I did Google it and all I got was how to disable right click on ALL the photos on your site. I just need it for one photo.
    I have two laptops:

    #1 2016 HP 15.6" Premium High Performance Laptop PC, AMD Quad-Core A6-5200 Processor, 4GB RAM, 500GB HDD, DVD+/-RW, Webcam, WIFI, HDMI, UbuntuMate 18.04

    #2 2019 HP Premium 15.6" HD Laptop, AMD A6 Dual-Core 2.6 GHz, 4GB|8GB|16GB RAM, 1TB|2TB HDD, 128GB|256GB|512GB|1TB SSD, WiFi Bluetooth HD Webcam 3-in-1 SD Reader HDMI, Windows 10,

  4. #4
    Join Date
    Feb 2000
    Location
    Idaho Falls, Idaho, USA
    Posts
    18,063

  5. #5
    Join Date
    Mar 2000
    Location
    NYC,NY USA
    Posts
    633
    Thank you, jdc2000. MY question is, where would I put the ..oncontextmenu="return false;"... in the code above so it only disables right click on that one photo?
    I have two laptops:

    #1 2016 HP 15.6" Premium High Performance Laptop PC, AMD Quad-Core A6-5200 Processor, 4GB RAM, 500GB HDD, DVD+/-RW, Webcam, WIFI, HDMI, UbuntuMate 18.04

    #2 2019 HP Premium 15.6" HD Laptop, AMD A6 Dual-Core 2.6 GHz, 4GB|8GB|16GB RAM, 1TB|2TB HDD, 128GB|256GB|512GB|1TB SSD, WiFi Bluetooth HD Webcam 3-in-1 SD Reader HDMI, Windows 10,

  6. #6
    Join Date
    Feb 2000
    Location
    Idaho Falls, Idaho, USA
    Posts
    18,063

  7. #7
    Join Date
    Mar 2000
    Location
    NYC,NY USA
    Posts
    633
    Thank you, jdc! The first link had the solution!
    I have two laptops:

    #1 2016 HP 15.6" Premium High Performance Laptop PC, AMD Quad-Core A6-5200 Processor, 4GB RAM, 500GB HDD, DVD+/-RW, Webcam, WIFI, HDMI, UbuntuMate 18.04

    #2 2019 HP Premium 15.6" HD Laptop, AMD A6 Dual-Core 2.6 GHz, 4GB|8GB|16GB RAM, 1TB|2TB HDD, 128GB|256GB|512GB|1TB SSD, WiFi Bluetooth HD Webcam 3-in-1 SD Reader HDMI, Windows 10,

  8. #8
    Join Date
    Feb 2000
    Location
    Idaho Falls, Idaho, USA
    Posts
    18,063
    Thanks for the update.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •