Advanced Search

Results 1 to 3 of 3

Thread: Navigating JS gallery by clicking on images

  1. #1
    Join Date
    Feb 2013
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Navigating JS gallery by clicking on images

    Hi All

    I have another question regarding the following website:

    http://www.catherinehyland.co.uk/

    The user would like to be able to have the added option on the work/gallery page of clicking through the images by clicking on the images. Currently the only way to move through the images is by using the numbers below and the next/previous buttons.

    Any comments greatly appreciated

    All the best

    Samuel

  2. #2
    Join Date
    Dec 2008
    Location
    Portsmouth, UK
    Posts
    1,708
    Thanks
    2
    Thanked 388 Times in 383 Posts

    Default

    at the bottom of the page
    Code:
     
    
    var imgs=document.getElementById('cf7').getElementsByTagName('IMG');;
     for (var z0=0;z0<imgs.length;z0++){
      imgs[z0].onclick=function(){ Next(1); }
     }
    Vic
    God Loves You and will never love you less.
    http://www.vicsjavascripts.org/Home.htm
    If my post has been useful please donate to http://www.operationsmile.org.uk/

  3. #3
    Join Date
    Feb 2013
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Simple as that! Thank you so much Vic, that is a great help.

    All the best

    Samuel

Similar Threads

  1. Issue with IE only when navigating page
    By Defender90 in forum HTML
    Replies: 14
    Last Post: 07-20-2012, 04:48 PM
  2. Resolved Change several Images by clicking one
    By Fuchspower in forum Looking for such a script or service
    Replies: 3
    Last Post: 06-14-2011, 09:56 AM
  3. Trouble navigating directory structure
    By JasonDFR in forum PHP
    Replies: 5
    Last Post: 04-02-2009, 04:41 PM
  4. Navigating Back problem
    By cblake843 in forum JavaScript
    Replies: 0
    Last Post: 04-25-2006, 08:06 PM
  5. Navigating through Site directory...
    By almarenan in forum JavaScript
    Replies: 0
    Last Post: 11-20-2004, 04:48 AM

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
  •