Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 5 of 5
  1. #1
    Junior Member
    Join Date
    Jun 2003
    Posts
    2
    Member #
    1732
    Hi everyone,
    I have a problem with the script :
    Code:
    <!-- Begin
    // Set slideShowSpeed (milliseconds)
    var slideShowSpeed = 7000;
    // Duration of crossfade (seconds)
    var crossFadeDuration = 10;
    // Specify the image files
    var Pic = new Array();
    // to add more images, just continue
    // the pattern, adding to the array below
    
    Pic[0] = 'pic1.gif'
    Pic[1] = 'pic2.gif'
    Pic[2] = 'pic3.gif'
    Pic[3] = 'pic4.gif'
    Pic[4] = 'pic5.gif'
    Pic[5] = 'pic6.gif'
    Pic[6] = 'pic7.gif'
    Pic[7] = 'pic8.gif'
    Pic[8] = 'pic9.gif'
    Pic[9] = 'pic10.gif'
    Pic[10] = 'pic11.gif'
    Pic[11] = 'pic12.gif'
    
    // do not edit anything below this line
    var v;
    var s = 0;
    var y = Pic.length;
    var breLoad = new Array();
    for (i = 0; i < y; i++) {
    breLoad[i] = new Image();
    breLoad[i].src = Pic[i];
    }
    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 = breLoad[s].src;
    if (document.all) {
    document.images.SlideShow.filters.blendTrans.Play();
    }
    s = s + 1;
    if (s > (y - 1)) s = 0;
    v = setTimeout('runSlideShow()', slideShowSpeed);
    }
    // End -->
    it works perfect when i try to work this script in Explorer and Netscape when i don't use no other scripts on the same page.
    If i try to use it with a scroll down javascript menu in the same page it gives me an error like :

    line 46 ----> which is ( document.images.SlideShow.src = breLoad[s].src; )
    document.images.SlideShow has no properties.


    It does not give any property errors before this line i guess that is interesting and i could not understand why this line is crucial.

    If there is something to help me i will be really pleased.
    Thanx a lot

    :classic:

  2.  

  3. #2
    JR
    JR is offline
    Senior Member JR's Avatar
    Join Date
    Nov 2002
    Location
    UK
    Posts
    4,354
    Member #
    257
    that is probably not the problem, sometimes when you add new javascript code with errors it says that your other code has the errors.
    JR

  4. #3
    Junior Member
    Join Date
    Jun 2003
    Posts
    2
    Member #
    1732
    so i have to check my other scroll menu script right? but that scroll menu and this sliding image script are both different javascripts and they work perfect on the same page when i use explorer. But when i open it with netscape it continues to give the same error

  5. #4
    JR
    JR is offline
    Senior Member JR's Avatar
    Join Date
    Nov 2002
    Location
    UK
    Posts
    4,354
    Member #
    257
    it might be netscape then...
    JR

  6. #5
    Senior Member skrlin's Avatar
    Join Date
    Apr 2003
    Location
    Illinois
    Posts
    562
    Member #
    1063
    Post a link to the page.
    - Brian


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 10:51 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com