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
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.
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