Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Resizing a div by resizing its borders

Reply
Thread Tools

Resizing a div by resizing its borders

 
 
Proper
Guest
Posts: n/a
 
      04-18-2009
What I have so far is this

http://mxamples.googlepages.com/drag-borders.html

But this script has a few disadvantages. The main disadvantage is in
my eyes that the drag event isn't smooth enough, I mean if the mouse
cursor is too fast it will loose the border and therefore the dragging
of the border will stop.

Thats the reason why the borders in the example are so fat. Making the
borders smaller would show at once what I mean because its no more
possible to grab the borders with the cursor.

I know that this can be done in another way, and I've done similar
things already a few years ago. But I cannot - by no means - remember
the trick.

So I'll try to describe it again what I mean: Dragging can have at
least two results. The first result is seen in my example above that
loses its object if the pressed mouse cursor goes out of the defined
area. The second result would continue dragging as long as the cursor
remains pressed - independant if it goes out of the defined area.

The second result can be seen - for example - here:

http://www.twinhelix.com/javascript/dragresize/demo/

(But this code is obfuscated, so I cannot detect or learn anything).

Thanks for rĉading, and I hope that someone can give me a hint to the
right direction.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Its a bird, its a plane, its.. um, an Attribute based System? thunk Ruby 14 04-03-2010 10:08 AM
Its a bird, its a plane, its.. um, an Attribute based System? thunk Ruby 0 04-01-2010 10:25 PM
Its a bird, its a plane, no ummm, its a Ruide thunk Ruby 1 03-30-2010 11:10 AM
Resizing a div by resizing its borders Pil (Trustworthy from Experience) Javascript 9 04-21-2009 07:35 AM
Tables with different color left and right borders, no top or bottom borders, etc. George HTML 9 10-25-2004 04:25 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57