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
    Member MidloRollin's Avatar
    Join Date
    Dec 2004
    Location
    Midlo
    Posts
    38
    Member #
    8390
    Hi, im trying to put this changetext js on my site (a mimic marquee in javascript form) and i cant find a way for the element to autoloop/restart.
    Here is the code. (w/o script open and close tags)

    function changetext(a) {

    x = document.getElementById("mmjs").rows[0].cells[0]
    switch (a) {
    case 0: x.innerHTML = "1"
    break
    case 1: x.innerHTML = "2"
    break
    case 2: x.innerHTML = "3"
    break
    case 3: x.innerHTML = "4"
    break
    case 4: x.innerHTML = "5"
    break
    case 5: x.innerHTML = "6"
    break
    case 6: x.innerHTML = "7"
    break
    }
    a++;
    if (a <= 6) self.setTimeout('changetext(' + a +')',2000);
    }

    Excuse the descriptions as numbers 1-7 i just wanted to example line without text. Anyone's help would very useful.

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