what is wrong with my script

Discussion in 'JavaScript' started by mws, Sep 11, 2007.

  1. #1
    im not sure why the script is not working can someone tell me whats wrong with it please here the script below thanks

    email me at mws@maildwithstyle.ca

    www.maidwithstlyle.ca


    thanks



    <SCRIPT LANGUAGE="JavaScript">
    <!-- Original: CodeLifter.com (support@codelifter.com) -->
    <!-- Web Site: http://www.codelifter.com -->

    <!-- This script and many more are available free online at -->
    <!-- The JavaScript Source!! http://javascript.internet.com -->

    <!-- Begin
    // Set slideShowSpeed (milliseconds)
    var slideShowSpeed = 5000;
    // Duration of crossfade (seconds)
    var crossFadeDuration = 3;
    // Specify the image files
    var Pic = new Array();
    // to add more images, just continue
    // the pattern, adding to the array below

    Pic[0] = 'mws_2.jpg'
    Pic[1] = 'mws_9.jpg'
    Pic[2] = 'mws_10.jpg'
    Pic[3] = 'mws_11.jpg'
    Pic[4] = 'mws_12.jpg'

    // do not edit anything below this line
    var t;
    var j = 0;
    var p = Pic.length;
    var preLoad = new Array();
    for (i = 0; i < p; i++) {
    preLoad = new Image();
    preLoad.src = Pic;
    }
    function runSlideShow() {
    if (document.all) {
    document.images.SlideShow.style.filter="blendTrans(duration=2)";
    document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
    document.images.SlideShow.filters.blendTrans.Apply();
    }
    document.images.SlideShow.src = preLoad[j].src;
    if (document.all) {
    document.images.SlideShow.filters.blendTrans.Play();
    }
    j = j + 1;
    if (j > (p - 1)) j = 0;
    t = setTimeout('runSlideShow()', slideShowSpeed);
    }
    // End -->
    </script>
     
    mws, Sep 11, 2007 IP
  2. tripy

    tripy Guest

    Messages:
    32
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    And what is the problem you have with this script ????
     
    tripy, Sep 11, 2007 IP
  3. datropics

    datropics Peon

    Messages:
    309
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    0
    #3
    I don't see anything wrong - what problem are you having?
     
    datropics, Sep 12, 2007 IP