topical media & game development
lib-jquery-learning-code-10-ui.js / js
// COLOR ANIMATE
document.ready(function() {
$('#color-animate').click(function() {
// $('#mydiv').animate({
// color: '#fff',
// backgroundColor: '#000'
// }, 'slow');
// $('#mydiv').animate({
// color: '#fff',
// backgroundColor: '#000'
// }, 'slow', 'easeInQuart');
$('#mydiv').animate({
color: '#fff',
backgroundColor: '#000'
}, {
duration: 'slow',
easing: 'easeInQuart'
});
});
});
// ANIMATED TOGGLE CLASS
document.ready(function() {
$('#do-toggle').click(function() {
$('#toggle-class').toggleClass('highlight', 'slow');
});
});
// EXPLODE EFFECT
document.ready(function() {
$('#do-explode').click(function() {
$('#explode').effect('explode', {pieces: 16}, 800);
});
});
// SORTABLE LIST
document.ready(function() {
// $('#sort-container').sortable();
$('#sort-container').sortable({
opacity: .5,
axis: 'y',
cursor: 'move'
});
});
// DIALOG
document.ready(function() {
// $('#do-dialog').click(function() {
// $('#dlg').dialog();
// });
var dlg.text();
dlg.empty();
},
buttons: {
'add message': function() {
dlg).remove();
}
}
});
$('#do-dialog').click(function() {
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.