View Full Version : Dragable elements Script

08-03-2005, 12:33 PM

I just love the Dragable elements Script (http://www.dynamicdrive.com/dynamicindex4/image3.htm), but is it possible to have the pics name underneeth it? (whitout the .gif extension/ which also moves along with the pic)

So like this: (picname: monster.gif)


And this will be dragable


08-03-2005, 12:44 PM
Make a div, then put the image in it, and the text underneath; then make the div draggable, not the image.

<div class="drag">
<img src="piccie.png"/><br/>

08-03-2005, 12:48 PM
Thx but what is a div? I believed only the pics where dragable. Sorry if this is a noob questions, but I am new to this.

Best way is to give the code I need so I can copy past it and test it. And if you will, add comments to it to parts to explain what they do.

Hope this is not too much i ask, but need to learn :)


08-03-2005, 12:59 PM
Divider. Code above.
If you read the script's demo page, it says that any element is draggable, and gives an example of a draggable paragraph at the bottom.

08-25-2005, 08:55 AM

Thx for the reply, really appreciate it.

Another question, the above code works great, but I find the text underneeth it a bit plain. So I wondered, is it possible to get the text in a "balloon like" look? Just like the buttons on this forum (post reply, quote, etc) So like this: (picture.gif) And this balloon has a color (#FFFFFF) and canges size to match the text length... is there a script for this? Couldn't find anything like this on the net, so maybe you guys have an idea? I know I can use images to achieve this, but I rather have it with-out using images...

Is there a way to make a big square-border-area where you only can move the pic in? Like a big sqaure or somthing. Now peeps can move the pics over the entire site, but I only want to let them move the pics I a specific area (big square)...

Many thx,