www.webdeveloper.com
Results 1 to 2 of 2

Thread: javascript equivalent to php range

  1. #1
    Join Date
    Sep 2006
    Posts
    51

    javascript equivalent to php range

    I am relatively sure that javascript has an equivalent to php's range.

    This is a quote from the php manaul for range.
    Quote Originally Posted by php manual
    range() returns an array of elements from low to high, inclusive. If low > high, the sequence will be from high to low.
    I need this for several different reasons. I am trying to determine if the scrollTop of a div is between 0 and 150. Also I need to see if the scrollTop is less then the scrollHeight by the range of 1 to 4..

    Any suggestions would be great..

    Thanks,
    Tom
    Last edited by tomfmason; 09-30-2006 at 01:31 AM.

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    I can't see how an equivalent of range, which doesn't exist in JavaScript, would help you in this case.
    Use if...else
    At least 98% of internet users' DNA is identical to that of chimpanzees

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles