Results 1 to 5 of 5

Thread: drag queen

  1. #1
    Join Date
    Jul 2005
    Location
    UK
    Posts
    159
    Thanks
    15
    Thanked 0 Times in 0 Posts

    Default drag queen

    1) Script Title:
    :ragable elements Script

    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamicindex4/image3.htm

    3) Describe problem:

    this just gives the image a z-index of 100, allowing it to be dragged over top any other important elements, like navigation bars, etc. is there a way to constrain draggable content within certain areas, like say, an html table?

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    How about this script(look at the bottom of the page):
    http://www.dynamicdrive.com/dynamicindex11/domdrag/
    Jeremy | jfein.net

  3. The Following User Says Thank You to Nile For This Useful Post:

    moscarda (02-02-2009)

  4. #3
    Join Date
    Jul 2005
    Location
    UK
    Posts
    159
    Thanks
    15
    Thanked 0 Times in 0 Posts

    Default

    you must just sit around waiting for me to ask stupid questions.

    although, since i don't know anything, i guess the stupid questions are just as valid as the smart ones.

  5. #4
    Join Date
    Jul 2005
    Location
    UK
    Posts
    159
    Thanks
    15
    Thanked 0 Times in 0 Posts

    Default

    except i did look at that script and dont know if it can suit my purposes... i just want to keep the draggable items away from the top 30 pixels of the page, where the navigation bar is.

  6. #5
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    No questions are stupid.

    Code:
    <script type="text/javascript" src="http://www.dynamicdrive.com/dynamicindex11/domdrag/dom-drag.js"></script>
    <img id="example" src="http://unlinkthis.net/templates/style/images/unlinkthis.png" style="position: relative" />
    
    <script language="javascript">
    var aThumbv = document.getElementById("example");
    Drag.init(aThumbv, null, 0, 1000, 30);
    </script>
    Jeremy | jfein.net

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
  •