Page 2 of 2

Re: a nice jquery toolbar ;)

Posted: Sat Mar 06, 2010 3:57 am
by Jackolantern
Wow, nice stuff :) I haven't gone through it yet, but it has inspired me to put my game on hold for now and learn how to use Javascript/AJAX. It just has so many useful applications for game development and can save a ton of bandwidth as well :)

Re: a nice jquery toolbar ;)

Posted: Sun Mar 07, 2010 10:36 pm
by Torniquet
ok a quick alteration. i will make the change to the main tutorial after i have given a breif explanation here lol.

i have removed the queuing from the animation, so where as before it jumped up and down if u scrolled in and out to quick, it will now interupt the animation which is making it go up, and force it back down into place again.

you can see if you visit the test page again.

new final jQuery code.

$(document).ready(function(){
$('#bar').animate({bottom:'-40',opacity: 0.5},{},500,function(){});
$('#bar').mouseenter(function(){
$('#bar').animate({bottom:'0', opacity: 1},{queue:false,duration:800});
});
$('#bar').mouseleave(function(){
$('#bar').animate({bottom:'-40', opacity: 0.5},{queue:false,duration:800});
});
});

Re: a nice jquery toolbar ;)

Posted: Sun Mar 07, 2010 10:43 pm
by Jackolantern
I am learning JS right now, and am planning to make use of Jquery as well when I get into AJAX. Once I get there, I will go through this tutorial to learn how to make the toolbar. Thanks :D

Re: a nice jquery toolbar ;)

Posted: Sun Mar 07, 2010 11:23 pm
by Torniquet
tbh, i think looking @ jquery after u learn ajax is a pointless exercise (imo, but thts cuz i cnt get the hange of ajax lol)

jquery is just a library of ajax commands that make coding ajax easier and neater.

but again thts my opinion :)

Re: a nice jquery toolbar ;)

Posted: Mon Mar 08, 2010 12:20 am
by Jackolantern
I know what you mean, but I would like to try to get a good understanding of it, and then I would like to use JQuery to reduce the amount of work I have to do for effects. It does seem a bit backwards, but I would hope that understanding the underlying AJAX would allow me to use JQuery more effectively.