Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-07-2012, 01:49 AM   PM User | #1
amateurist
New to the CF scene

 
Join Date: May 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
amateurist is an unknown quantity at this point
implementing .resizable in code

i found this jquery code on jsfiddle and have been able to modify it to suit my plans, only thing i still want to change is to add the jquery .resizable to the beach divs..
every time i try to implement it, it just messes up the rest of the code.
it's probably super easy but i'm a bit new to this

thanks!


Code:
$(document).ready(function() {
    var a = 3;
    $('#beach01,#beach02,#beach03,#beach04').draggable({
        start: function(event, ui) {
            $(this).css("z-index", a++);
        }


    });
    $('#dragZone div').click(function() {
        $(this).addClass('top').removeClass('bottom');
        $(this).siblings().removeClass('top').addClass('bottom');
        $(this).css("z-index", a++);

    });
});
amateurist is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 07:12 AM.


Advertisement
Log in to turn off these ads.