Results 1 to 3 of 3

Thread: Drag and Drop HELP!!!!!

  1. #1
    Join Date
    Jul 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Drag and Drop HELP!!!!!

    I've used the drag and drop script from dynamic drive on my website and its working great! But how to i change the images layer properties so that some pictures will go overtop others, cuz right now they just go randomly.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Well actually, the items later in the HTML markup will go over the ones earlier. From the example:
    Code:
    <img src="test.gif" class="drag"><br>
    <img src="test2.gif" class="drag"><br>
    <h1><b class="drag">Hi there</b></h1>
    Hi there will always be on top, test2.gif will always be on top of test.gif but under Hi there, test.gif will always be under the other two. To change this behavior, either change the order or use the z-index property of each element's style. For example, we can reverse the situation with z-index:
    Code:
    <img src="test.gif" class="drag" style="z-index:100;"><br>
    <img src="test2.gif" class="drag" style="z-index:50;"><br>
    <h1><b class="drag" style="z-index:10;">Hi there</b></h1>
    Now test.gif will always be on top and Hi there always on the bottom. I used 100, 50 and 10 but you can use any numbers. The higher z-index will always be on top of the lower z-index.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jul 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    omg thank you sooooooo much! I really needed help on that one!!

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
  •