Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    May 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Using Cut & Paste JavaScript Slideshow Remove the Click on Image and go to URL

    I was searching the forum but did find an answer. I need to NOT use the ability to have the images clickable and directed to a URL. How do I remove this feature?



    http://www.javascriptkit.com/script/.../jsslide.shtml

    //configure the paths of the images, plus corresponding target links
    slideshowimages("..//Slides/smaller/slide1.jpg","..//Slides/smaller/slide2.jpg","..//Slides/smaller/slide3.jpg","..//Slides/smaller/slide4.jpg","..//Slides/smaller/slide5.jpg","..//Slides/smaller/slide6.jpg","..//Slides/smaller/slide8.jpg","..//Slides/smaller/slide9.jpg","..//Slides/smaller/slide10.jpg","..//Slides/smaller/slide11.jpg","..//Slides/smaller/slide12.jpg","..//Slides/smaller/slide13.jpg","..//Slides/smaller/slide14.jpg","..//Slides/smaller/slide15.jpg","..//Slides/smaller/slide16.jpg","..//Slides/smaller/slide17.jpg","..//Slides/smaller/slide18.jpg","..//Slides/smaller/slide19.jpg","..//Slides/smaller/slide20.jpg","..//Slides/smaller/slide21.jpg","..//Slides/smaller/slide22.jpg","..//Slides/smaller/slide23.jpg","..//Slides/smaller/slide24.jpg","..//Slides/smaller/slide25.jpg","..//Slides/smaller/slide26.jpg","..//Slides/smaller/slide27.jpg","..//Slides/smaller/slide28.jpg","..//Slides/smaller/slide29.jpg","..//Slides/smaller/slide30.jpg","..//Slides/smaller/slide31.jpg","..//Slides/smaller/slide32.jpg","..//Slides/smaller/slide33.jpg","..//Slides/smaller/slide34.jpg","..//Slides/smaller/slide35.jpg","..//Slides/smaller/slide36.jpg","..//Slides/smaller/slide37.jpg","..//Slides/smaller/slide38.jpg","..//Slides/smaller/slide39.jpg")
    slideshowlinks("/index.php")

    This works for the first image and takes the user back to the same page. I really don’t want the images to be clickable.

  • #2
    Senior Coder
    Join Date
    Mar 2005
    Location
    Portsmouth UK
    Posts
    4,498
    Thanks
    3
    Thanked 500 Times in 487 Posts
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    
    <head>
      <title></title>
    <script type="text/javascript">
    <!--
    
    /*
    JavaScript Image slideshow:
    By JavaScript Kit (www.javascriptkit.com)
    Over 200+ free JavaScript here!
    */
    
    
    
    //-->
    </script></head>
    
    <body>
    <img src="http://www.vicsjavascripts.org.uk/StdImages/Egypt5.jpg" id="slide" border=0 width=200 height=150>
    <img src="http://www.vicsjavascripts.org.uk/StdImages/1.gif" id="slide2" border=0 width=200 height=150>
    <script type="text/javascript">
    
    function slideit(id,ary,ms){
     if (typeof(ary[0])=='string'){
      slideit[id]=0;
      for (var src,z0=0;z0<ary.length;z0++){
       src=ary[z0];
       ary[z0]=new Image();
       ary[z0].src=src;
      }
     }
     document.getElementById(id).src=ary[slideit[id]].src
     slideit[id]=++slideit[id]%ary.length;
     slideit[id+'to']=setTimeout(function(){ slideit(id,ary,ms); },ms||1000)
    }
    
    var slideshowimages=[
    "http://www.vicsjavascripts.org.uk/StdImages/Egypt5.jpg",
    "http://www.vicsjavascripts.org.uk/StdImages/Egypt6.jpg",
    "http://www.vicsjavascripts.org.uk/StdImages/Egypt7.jpg",
    "http://www.vicsjavascripts.org.uk/StdImages/Egypt8.jpg",
    "http://www.vicsjavascripts.org.uk/StdImages/Egypt9.jpg"
    ];
    
    slideit('slide',slideshowimages,2000);
    slideit('slide2',['http://www.vicsjavascripts.org.uk/StdImages/1.gif','http://www.vicsjavascripts.org.uk/StdImages/2.gif','http://www.vicsjavascripts.org.uk/StdImages/3.gif'],1000);
    
    </script>
    <p align="center"><font face="arial" size="-2">This free script provided by</font><br>
    <font face="arial, helvetica" size="-2"><a href="http://javascriptkit.com">JavaScript
    Kit</a></font></p>
    </body>
    
    </html>
    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
    New to the CF scene
    Join Date
    May 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Vic, thank you for the reply. I see you have posted code. I am not what you are telling me?

    Please elaborate.

    Thanks


  •  

    Tags for this Thread

    Posting Permissions

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