Sponsored by Activision
Introducing DJ Hero Game view!
djhero.com - Scratch and mix 102 songs in 93 original mixes from today's hottest artists. Available Now.
37 Comments
- grawity, on 10/12/2007, -0/+30Did you notice that "3 kb" ball is draggable?
- jalenack, on 10/12/2007, -4/+27Mad4Milk is at it again. Their stuff consistently blows my mind. Take this code for example:
new fx.Styles('elementID').custom({
opacity: [0,1],
height: [50, 200],
top: [-20, 300]
});
That Makes elementID transition from opacity 0 to opacity 1, height from 50px to 200px and top from -20px to 300, all at the same time!
How much simpler could it be! - 7methods, on 10/12/2007, -0/+14Not to mention that the developer is very active with the community, unlike the authors of some other javascript libraries out there.
Moo.fx and MooTools rock. - yourhead, on 10/12/2007, -0/+13OK, time to get coding again. I just love this stuff.
- Uruviel, on 10/12/2007, -1/+10Very well written Javascript I might add.
- yomanfu, on 10/12/2007, -0/+8I always code for javascript disabled browsers first. After that I add some extra candies for the javascript enabled ones.
- Inviz, on 10/12/2007, -0/+8its mootools. not moofx. mootools is much bigger, because of coolness.
- kamicane, on 10/12/2007, -0/+7Hi, I get your point, but I dont see how the code posted above is any different that.
effect = new Fx.Styles({duration: 400});
obj = {
height: [10, 200]
};
effect.custom(obj); //changes just the height
obj.width = [300, 400];
effect.custom(obj); //now changes also the width
In my opinion this is the code that offers more flexibility, as it can be written in a quick way (like the guy from the first comment used to give us a quick example) and supports more complicated handling (the code you pointed) as well.
This is not just some parameters, its the most flexible parameter: an object. - diggapleaze, on 10/12/2007, -1/+8Goodbye Adobe, and all your ***** proprietary let's-not-update-linux-client-for-years flash plugin.
- rip747, on 10/12/2007, -4/+11*cough*
http://www.jquery.com - MySchizoBuddy, on 10/12/2007, -1/+8jQuery is default on Drupal now.
Is mootools default on any major packages.
Mootools download page is really nice. - Nobles350, on 10/12/2007, -2/+7@geminitojanus
I was with you until here: "But I guess web application developers have nothing better to do than to chase after changes in their javascript libraries."
Dump that back handed generalization and it could have been a respectable post. - utcursch, on 10/12/2007, -0/+5@rip747: I liked jQuery very much. But jQuery is GPL-licensed. My project manager won't allow me to use it in our web application. moo is MIT licensed. The license factor makes a lot of difference.
- MySchizoBuddy, on 10/12/2007, -0/+5mootools is a framework that includes the moofx effects library.
- Inviz, on 10/12/2007, -0/+5I guess mootools is too new to be default on any major packages. But I know moofx is used on cnet.com and slashdot.com, just to name a few big websites.
- nofxjunkee, on 10/12/2007, -1/+435k? it's a fair bit. scriptaculous and prototype are larger though.
- JacNet, on 10/12/2007, -2/+4http://moofx.mad4milk.net/mootools.js
Now THAT is alot of JavaScript. - inactive, on 10/12/2007, -0/+2awesome find! haha thats amazing!
- sirsteveh, on 10/12/2007, -0/+2@vbsurfer: Hate to break it to you, but not all of us have flash. Not all of us want flash. Not only is flash proprietary (which I don't particularly like), it's also prone to be one of the most annoying things on the Web.
- scosol, on 10/12/2007, -0/+2and you... don't even include a link to mochikit itself...
no wonder it's underrepresented...
http://mochikit.com/ - Protonz, on 10/12/2007, -1/+2Is a "javascript enabled" requirement okay for a mainstream page, or do you still code a method to do everything with "noscript" tags?
- rhyno2000, on 10/12/2007, -2/+3Prototype is certainly the most popular base right now, but jQuery has a very active community (including the developer), lots more demos, tutorials and (gasp!) documentation, is easier to learn, has dozens of plugins available for effects like these (see Interface, et al.) and is much more svelte.
So where's jMooTools?! ;) - Grimboy, on 10/12/2007, -1/+2Wow, mochikit is surprisingly under-represented in this discussion. Well, mochikit == "crazy delicious" (according to me). Scriptalicious has been ported to it and is in the trunk. Moo.fx has been ported under the name minikit http://candyscript.com/projects/minikit/ so has thickbox http://jasonbunting.com/blahg/PermaLink,guid,297d24b0-f5e8-47d1-82e2-1804133fc6bf.aspx on top of that there is a graph drawing library for it called plotkit http://www.liquidx.net/plotkit/. So yeah, also it's fun to use and well documented(!)
- MySchizoBuddy, on 10/12/2007, -2/+3Inviz jQuery is inspired by moofx. but it doesn't use moofx
- Grimboy, on 10/12/2007, -0/+1Ah, slipped my mind.
- ChadBurggraf, on 10/12/2007, -0/+0I'm a huge fan of prototype.js, less so of scriptaculous.js (although that's mostly because I'm not a huge fan of effects or transitions in the first place). Generally I use scriptaculous' builder and testing functions.
HOWEVER, I may be playing with this kit for any effects I might be interested in simply because that gravity demo on the Wiki is AMAZING! - geminitojanus, on 10/12/2007, -4/+1"Dump that back handed generalization and it could have been a respectable post."
Wow, Digg really is devoid of human beings capable of understanding sarcasm; I was pointing out that no developer wants to spend days at a time going through their code updating it every single time a new library is released, not even web developers, who most of the time have more important things to worry about, like keeping their site running, dodging spam, and generating content. - shit, on 10/12/2007, -4/+1http://labs.adobe.com/downloads/flashplayer9.html
- decades, on 10/12/2007, -7/+2I was going to correct you too, but then I realised I was too stoned for that sort of behaviour ;-)
- geminitojanus, on 10/12/2007, -17/+12"Please pardon my ignorance, but what is so mind blowing about a constructor with some parameters?"
He asks a good question, I'm not seeing any reason to bury him. It's actually bad design, as it makes the object's constructor overly complicated, when the purpose of the constructor is to construct the object (i.e. do things to build the object that are necessary for the object's lifecycle).
While uglier, it's technically better to have a synchronous event system outside of the constructor;
obj = new EventSystem(milliseconds);
obj.queueEvent(someObject.height, 50, 200, 100); //changes the height of the object from 50 to 200 in 100 milliseconds
obj.queueEvent(fade(someObject.opacity), 0, 1, 1000);
obj.executeEvents();
At least this makes more sense from an Object Oriented point of view, and makes the entire framework more flexible (as the event system could perform any action repetitively if designed right). While it doesn't save on line count, it improves the re-ability of the code ten-fold (many of you could probably tell what the method "queueEvent()" does without needing the comment), and makes the code more reusable, making it the better choice all around. So really, what's so great about a constructor that takes a bunch of parameters? Sure it's "neat", but it's inflexible, and it just means you're going to have to break API stability to improve on it later. But I guess web application developers have nothing better to do than to chase after changes in their javascript libraries. - inactive, on 10/12/2007, -9/+2There was some syntax error in the code but I corrected it:
var Try = {
these: function() {
var returnValue;
for (var i = 0; i < my.corrupted.brain; i++) {
var lambda.driver = arguments[i];
try {
returnValue = lambda.driver(alcohol,smoke,drugs);
break;
quake4();
} catch (e) {}
}
return returnValue;
}
}
c__c - Viper007Bond, on 10/12/2007, -11/+4OMG OMG OMG! Yay! :D
- darkfate, on 10/12/2007, -9/+1http://duggmirror.com/
- vbsurfer, on 10/12/2007, -9/+1its 2006. I'm sorry to tell you but this whole size matters on the web is old news. As of April 2006, 70% among active internet users are broadband users. Don't be scared to use flash.
- Inviz, on 10/12/2007, -11/+1jQuery uses moofx too!
- MySchizoBuddy, on 10/12/2007, -18/+7yup start adding useless javascript effects on your website. First it was the Flash curse and now the javascript curse.
Don't let me stop you though. - antechinus, on 10/12/2007, -29/+17Please pardon my ignorance, but what is so mind blowing about a constructor with some parameters?


What is Digg?
Catch all of your favorite Digg shows in one place, including Digg Dialogg, Diggnation, The Digg Reel and More!