Results 1 to 7 of 7

Thread: Vertical slideshow

  1. #1
    Join Date
    Sep 2006
    Location
    Buxières les Mines, France
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Vertical slideshow

    Hi, I'm new on this forum. I just want to know if there's a script exactly like the 'Conveyor belt slideshow' script, but sliding vertically. I've tried to change it to vertical, but obviously didn't succeed... I like the vertical slideshow from the Screensafer ad on this website too. Maybe that one is available?
    Thanks,

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

  3. #3
    Join Date
    Sep 2006
    Location
    Buxières les Mines, France
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question

    Thanks John, that's where I was looking for!
    I saved it on my computer, opened it in Dreamweaver, but when I preview in IE it doesn't work...It only sais: Loading.... What am I doing wrong?

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by MarciaB
    Thanks John, that's where I was looking for!
    I saved it on my computer, opened it in Dreamweaver, but when I preview in IE it doesn't work...It only sais: Loading.... What am I doing wrong?
    I'm not sure except, unless the images are where you say that they are in the code, IE would do that. Make sure the image paths are correct here:

    Code:
    var photos=new Array();
    //Specify images, optional link, optional target:
    photos[0]=['files/photo1.jpg', 'http://www.google.com', '_blank']  //Image w/link and target
    photos[1]=['files/photo2.jpg', 'http://www.dynamicdrive.com']  //Image w/link
    photos[2]=['files/photo3.jpg']  //Plain Image
    photos[3]=['files/photo4.jpg']
    photos[4]=['files/photo5.jpg']
    photos[5]=['files/photo6.jpg']
    photos[6]=['files/photo7.jpg']
    photos[7]=['files/photo8.jpg']
    photos[8]=['files/photo9.jpg']
    and that they all exist. That's for the second one. The first one shouldn't have that problem but, it doesn't preload as well. In any case, all your images should be available to either script as listed in its array.

    Generally, you should insert scripts of this type into your page using a text editor after copying them from the web, in this case, by using your browser's 'view source'. It would be virtually impossible for me to tell anything more specific than that without seeing your code and knowing at least which script you are trying to use.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Sep 2006
    Location
    Buxières les Mines, France
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post

    Thanks for all your trouble, but it doesn't work. I did all the things you wrote already. I send you my code anyway. The second one is in it. I left the links as they where. BTW this page is a page I use for try-outs, so it's a bit of a mess... If you don't have time to answer me, that's ok...Thanks again.

  6. #6
    Join Date
    Sep 2005
    Posts
    882
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default

    I took a quick look through that file. First off, you have two <title> tags. Secondly, it appears you have two copies of the script copied into that file. One of them has the default images. Remove the second one, I don't think you wan t it there.

  7. #7
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by blm126
    I took a quick look through that file. First off, you have two <title> tags. Secondly, it appears you have two copies of the script copied into that file. One of them has the default images. Remove the second one, I don't think you wan t it there.
    All that and more, do remove the second duplicate script and - get rid of this:

    Code:
    <script language="JavaScript">
    <!--
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    }
    
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    }
    
    function MM_findObj(n, d) { //v4.0
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && document.getElementById) x=document.getElementById(n); return x;
    }
    
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    }
    //-->
    </script>
    and the red stuff here:

    Code:
    <body text="#000000" background="bg.jpg" onstart="MM_preloadImages('buttons/button3.gif','buttons/button5.gif')"onload="start();">
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •