tyson記事本

Google & man(Unix) are your best friends!

Skip to: Content | Sidebar | Footer

Date: September 12th, 2007

Slimbox, the ultimate lightweight Lightbox clone

12 September, 2007 (11:39) | JavaScript, jQuery | By: tyson

http://www.digitalia.be/software/slimbox
http://www.huddletogether.com/projects/lightbox2/
http://www.mootools.net/

Play Fifteen puzzle – a game example with jQuery

12 September, 2007 (10:40) | JavaScript, jQuery | By: tyson

jQuery game
http://www.alexatnet.com/node/68

#game15 {
width: 255px; height: 290px; border: 1px solid gray;
}
#game15-controls {
margin: 10px;
height: 25px;
}
#game15-field {
width: 240px;
height: 240px;
margin: 10px 0px 10px 10px;
}
.game-cell {
width: 55px;
height: 55px;
border: 1px solid gray;
text-align: center;
line-height: 55px;
color: #aaa;
font-family: arial;
font-weight: bold;
font-size: 30px;
background: white;
position: absolute;
overflow: hidden;
}

jQuery(function () {
// Game model object
var field = new (function () {
this.moves = 0;
this.cells = [ [0,0,0,0], [0,0,0,0], [0,0,0,0], [0,0,0,0] ];
this.isFree [...]