SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member chals1's Avatar
    Join Date
    Nov 2003
    Location
    spain
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Dragging over slide

    I need some ideas to make a script.
    My idea is to build a row of image products passing from right to left.User dragging over slide could stop it at a particular image or reverse its directoion.
    Each image is a link to a layer where its product information is showed.

  2. #2
    ♪♪ ♪ ♪ ♪ ♪♪ ♪ ♪♪ Markdidj's Avatar
    Join Date
    Sep 2002
    Location
    Bournemouth, South UK
    Posts
    1,551
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    You could use a large div containing the pics inside a small scrolling div. You could then use
    Code:
    onmouseover="document.getElementById('scrollingDiv').scrollLeft++"
    scrollLeft-- to reverse it.

    With IE you can hide the scrollbars and it will still scroll, with NS you have to leave the scrollbars in, but this is a good method as people who decide to turn js off will still see all the pics.

    You can do it by changing the position of the inner div and hidding or clipping what you dont want clients to see, but this is more difficult and will only show a few pictures if js is off.
    LiveScript: Putting the "Live" Back into JavaScript
    if live output_as_javascript else output_as_html end if


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
  •