/*
* ---------------------------
* functions for the examples
* ---------------------------
*/
function mycallbackfunc(v,m,f){
jQuery.prompt('i clicked ' + v);
}
function mycallbackform(v,m,f){
jQuery.prompt(v +' ' + f.alertName);
}
function mysubmitfunc(v,m,f){
an = m.children('#alertName');
if(f.alertName == ""){
an.css("border","solid #ff0000 1px");
return false;
}
return true;
}
jQuery.fn.extend({
myanimation: function(speed){
var t = jQuery(this);
if(t.css("display") == "none")
t.show(speed,function(){ t.hide(speed,function(){ t.show(speed); }); });
else t.hide(speed,function(){ t.show(speed,function(){ t.hide(speed); }); });
}
});
var txt = 'Please enter your name:
';
var txt2 = 'Try submitting an empty field:
';
var brown_theme_text = '
Save these settings?
';
var statesdemo = {
state0: {
html:'test 1.