image dragging across x-axis

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sindhu
    New Member
    • Oct 2006
    • 53

    image dragging across x-axis

    Hello,
    I want to drag an image across the x-axis

    Please can some one tel me what event to approach .

    thanks
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Can you give an example of what you mean?

    Comment

    • sindhu
      New Member
      • Oct 2006
      • 53

      #3
      Suppose i've several horizontal lines 1,2,3. and i've an image of vertical line with arrows at the two ends, which is placed such that its edges touch the 1st and 3rd line with second line at centre.suppose width of the horizontal lines is 500px. i want the vertical line image to be scrolled across the horizontal lines. and get a perticular info that the horizontal lines are representing at that pint.
      i just want to be able to scroll the vertical image across horizontal lines.
      I Hope this is clear. thanks
      Originally posted by acoder
      Can you give an example of what you mean?

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        Use some drag/drop code, e.g. Walter Zorn or webtoolkit and then modify it to restrict it to the X-axis. Just disregard the Y properties.

        Have you got some code already?

        Comment

        • sindhu
          New Member
          • Oct 2006
          • 53

          #5
          yes have got it from the link
          http://www.walterzorn. com/dragdrop/dragdrop_e.htm
          i am able to restrict it to x-axis but the image is portable from left end of browser to the reight end, which is not the requirement. I want to move the imege in some region of the browser like in a div.
          and also the events are disabled on the image like onclick , onmouseoner etc, which i need for some other purposes as well
          thanks

          Originally posted by acoder
          Use some drag/drop code, e.g. Walter Zorn or webtoolkit and then modify it to restrict it to the X-axis. Just disregard the Y properties.

          Have you got some code already?

          Comment

          • acoder
            Recognized Expert MVP
            • Nov 2006
            • 16032

            #6
            Again, restrict the movement using the div's properties. If the left property is less than the beginning or greater than the end dimensions of the div, don't move the image any longer. As for the other events, post your code or a link to a test page.

            Comment

            Working...