November 11th, 2009
In my recent project, i have found onClose event in shadow box… Using this event we can add our script when user click on close button…
Shadowbox.init({
loadSkin: “classic”,
language: “en”,
players: ['flv', 'html', 'iframe', 'img', 'qt', 'swf', 'wmp']
}
);
window.onload = function(){
Shadowbox.init();
Shadowbox.setup(”a.classname”, {
onClose : function() { someting… }
});
};
Tags: shadow box
Posted in Javascript | No Comments »
May 5th, 2009
PHP 5.3 will be introducing closures to PHP. Closures, also known as anonymous functions, will allow you to declare functions “inline” and store them in variables. While the syntax may seem a bit weird compared to how it is in languages like JavaScript, closures will be a useful addition to the language.
Lambda function style:
$lambda= function() { echo “Hello World!\n” ; };
Tags: Closures
Posted in PHP | 3 Comments »