SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Sep 2007
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    slider moving problem

    Hi All:
    I encounter a problem in dealing with slider bar moving in javascripts.

    The case is that I have created slider bar with ,I have four functionalities in slider bar functions


    Please see the below image

    (+)----------------|--------------(-)



    1) when I click the (+) button the slider is moving (+) direction , when I click (-) button the slider is moving (-) direction .This process was working fine.


    2) But when I click the mid bar slider right position the slider will go to (-) position and then when I click the mid bar slider left position , the slider will go to (+) position. This is concept. But when I click the mid bar both direction’s the slider is going (-) direction only.

    function ZoomOutIn()
    {
    var currnetZoomValue = GetElement('sliderValue');
    if ( currnetZoomValue.value < previousZoomLvlValue )
    {
    ZoomOutMinus();
    alert("zoomOutminus");
    }
    else if (currnetZoomValue.value > previousZoomLvlValue )
    {
    ZoomInPlus();
    alert("zoomIn");
    }
    else
    {
    alert("Equal");
    }
    }
    The above coding was problem .

    Really need help from yrs...
    Cheers and Thanks much !!
    Arhun
    Last edited by amca.arun; Sep 13, 2007 at 01:30.

  2. #2
    SitePoint Evangelist bals28mjk's Avatar
    Join Date
    Aug 2007
    Posts
    405
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)


Bookmarks

Posting Permissions

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