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 1 of 1
  1. #1
    Senior Member
    Join Date
    Jan 2011
    Posts
    148
    Member #
    26229
    Liked
    1 times
    Hey,

    Been checking this for a couple of hours and was hoping to get some fresh eyes on it...

    I've put a Javascript to scroll images on a site i'm working on and it works fine in Sarafi however not in other browsers.

    The page is here:

    http://www.ddvdesigns.com/fullham.html

    And here is my Javascript...

    var imgs = new Array(); var imgcnt = 0; var thisimg = 0;
    imgs[imgcnt++] = 'images/fullhamscroll0.jpg';
    imgs[imgcnt++] = 'images/fullhamscroll1.jpg';
    imgs[imgcnt++] = 'images/fullhamscroll2.jpg';
    imgs[imgcnt++] = 'images/fullhamscroll3.jpg';
    imgs[imgcnt++] = 'images/fullhamscroll4.jpg';
    imgs[imgcnt++] = 'images/fullhamscroll5.jpg';
    imgs[imgcnt++] = 'images/fullhamscroll6.jpg';
    imgs[imgcnt++] = 'images/fullhamscroll7.jpg';
    imgs[imgcnt++] = 'images/fullhamscroll8.jpg';
    imgs[imgcnt++] = 'images/fullhamscroll9.jpg';
    imgs[imgcnt++] = 'images/fullhamscroll10.jpg';


    function nextImg() {
    if (document.images) {
    thisimg++;
    if (thisimg >= imgcnt) thisimg = 0;
    document.rollimg.src = imgs[thisimg];
    }
    }
    function prevImg() {
    if (document.images) {
    thisimg--;
    if (thisimg < 0) thisimg = imgcnt-1;
    document.rollimg.src = imgs[thisimg];
    }
    }

    I've also attached my CSS file,

    Any help with will be greatly appreciated, I'm sure there's a really simple solution but I'm now blind to it!

    Thanks,
    John

  2.  


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:26 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com