SitePoint Sponsor

User Tag List

Results 1 to 7 of 7

Thread: Image Click

  1. #1
    SitePoint Member
    Join Date
    May 2013
    Location
    http://www.hdpeak.net/
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Image Click

    Hi,

    On my site: http://www.hdpeak.net/

    I would like to prevent people from clicking the images and to prevent the lightbox showing up.

    How do I do that?


    Thank you!
    Last edited by Paul O'B; May 2, 2013 at 03:44. Reason: de-linked

  2. #2
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    6,060
    Mentioned
    219 Post(s)
    Tagged
    12 Thread(s)
    Hi there,

    Which images do you mean?
    I couldn't find any that opened in a lightbox.

  3. #3
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,546
    Mentioned
    183 Post(s)
    Tagged
    6 Thread(s)
    I couldn't see a lightbox either but the site never stopped loading for me so I gave up.

    You will need to clarify what your aims are and provide a little more detail.

    Are you saying that you don't want the lightbox to show up when someone clicks an image?

    Usually that would just mean removing the trigger class from the image in the html.

  4. #4
    dooby dooby doo silver trophybronze trophy
    spikeZ's Avatar
    Join Date
    Aug 2004
    Location
    Manchester UK
    Posts
    13,807
    Mentioned
    158 Post(s)
    Tagged
    3 Thread(s)
    ..and why would you want to stop the basic functionality of a script that is supposed to do exactly that......?!
    Mike Swiffin - Community Team Advisor
    Only a woman can read between the lines of a one word answer.....

  5. #5
    SitePoint Member
    Join Date
    May 2013
    Location
    http://www.hdpeak.net/
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry for the late reply.

    For example,
    http://www.hdpeak.net/2013/05/chelse...ts-5-2-13.html

    I do not want people to be able click on the first image and scroll to see another image in lightbox.

    I am not sure how to do that.

    Sorry for my bad English. I hope you understand what I mean.

    Thank you very much.

  6. #6
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    6,060
    Mentioned
    219 Post(s)
    Tagged
    12 Thread(s)
    Hi there,

    Quote Originally Posted by hdpeak View Post
    For example,
    http://www.hdpeak.net/2013/05/chelse...ts-5-2-13.html

    I do not want people to be able click on the first image and scroll to see another image in lightbox.
    Thanks for that.

    So, how did you attach the lightbox functionality in the first place?
    Are you using a plugin? It looks like a blogger.com site.

  7. #7
    Non-Member
    Join Date
    Apr 2013
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You will have to remove the anchor tag from the image, ie the <a></a> tag to prevent it from being clickable.

    And by lightbox, I gather you mean the effect shown when you take the mouse over the image. This has been done through the scripting and you will have to edit it in your script.


Bookmarks

Posting Permissions

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