Javascript slideshow assistance

Discussion in 'JavaScript' started by Arachnocat, Oct 19, 2010.

  1. #1
    I am new to both javascript and .asp. I'm hoping someone here can help me accomplish this task.

    There is a slideshow on this homepage: http://www.ledson.com

    The same type of slideshow needs to go on this page, in approx the same spot (right under the logo on the left side): http://ledsonhotel.com

    I did not write the code for the original site so it's a little confusing to me. I have placed the files in what I believe to be the appropriate folders and added the same code, but my slideshow doesn't show up.
    Is there a simpler javascript slideshow that I can add here that will go under the logo?

    Thanks!
     
    Arachnocat, Oct 19, 2010 IP
  2. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I think you are missing two code blocks at the top, you have the comments but no code between them.
    
    <!-- InstanceBeginEditable name="head" -->
    <script type="text/javascript" src="/js/slideshow.js"></script>
    <script type="text/javascript">
    var fadeimages=new Array()
    //SET IMAGE PATHS. Extend or contract array as needed. Examples in following 3 lines:
    //fadeimages[0]=["/images/homepage-hilite/filename.jpg", "", ""] //plain image syntax
    //fadeimages[0]=["/images/homepage-hilite/filename.jpg", "/foldername/pagename.asp", ""] //image with link syntax
    //fadeimages[0]=["/images/homepage-hilite/filename.jpg", "/foldername/pagename.asp", "_new"] //image with link and target syntax
    fadeimages[0]=["/images/homepage-hilite/merlot.jpg", "https://www.net10.net/ShoppingCart/buy/ProductAdd_6.asp?sid=6&xs=Y&prodid=3827", ""]
    fadeimages[1]=["/images/homepage-hilite/08chard.jpg", "https://www.net10.net/ShoppingCart/buy/ProductAdd_6.asp?sid=6&xs=Y&prodid=3753", ""]
    fadeimages[2]=["/images/homepage-hilite/chardres.jpg", "https://www.net10.net/ShoppingCart/buy/ProductAdd_6.asp?sid=6&xs=Y&prodid=3754", ""]
    fadeimages[3]=["/images/homepage-hilite/Sauvignon-Blanc-Napa-Valley-2008.jpg", "https://www.net10.net/ShoppingCart/buy/ProductAdd_6.asp?sid=6&xs=Y&prodid=3600", ""]
    </script>
    <!-- InstanceEndEditable -->
    
    Code (markup):
    
    <div id="side-content"><!-- InstanceBeginEditable name="side-content" -->
     <script type="text/javascript">
    //new fadeshow(IMAGES_ARRAY_NAME, slideshow_width, slideshow_height, borderwidth, delay, pause (0=no, 1=yes), optionalRandomOrder)
    new fadeshow(fadeimages, 191, 157, 0, 3000, 1, "R")
    </script><!-- InstanceEndEditable --></div>
    
    Code (markup):
     
    Cash Nebula, Oct 21, 2010 IP