') errorMessage = errorMessage[1].split('
') setError(errorMessage[0]); } }); } return false; } catch(e) { return true; } }.bind($('commentform'))); new Element('input', {type : 'hidden', name : 'isComment', value : 'true'}).injectInside($('commentform')); } }); hideForm = function() { if(xOptions.setHideForm) { var divHide = new Element('div').injectBefore($('commentlist')); $('commentform').injectInside(divHide); divHide.setStyle('overflow','hidden'); var fx = new Fx.Styles(divHide, {duration: 1800}); fx.start({opacity : [1,0], height : [divHide.getStyle('height').toInt(), 0], 'margin-bottom' : [0,divHide.getStyle('height').toInt()]}).chain(function(){ divHide.remove(); }); } else { $('comment').value = ''; } } disableForm = function() { var frmComments = $('commentform'); var fxfrmCommentsOut = new Fx.Styles(frmComments, {duration: 250}); fxfrmCommentsOut.start({opacity : [1,0]}); } enableForm = function() { $('comment').value = '' var frmComments = $('commentform'); var fxfrmCommentsIn = new Fx.Styles(frmComments, {duration: 250}); fxfrmCommentsIn.start({opacity : [0,1]}); } addActivity = function() { var divActivity = new Element('div', {'class': 'activity', 'id': 'activity' }).setHTML('评论正发往火星,稍等... ').injectBefore($('commentform')); divActivity.setStyle('background', 'url("http://jandan.net/wp-content/plugins/if-ajax-comments/img/activity7.gif") no-repeat right'); var fxdivActivityIn = new Fx.Styles(divActivity, {duration: 250}); fxdivActivityIn.start({opacity : [0,1]}); } removeActivity = function() { var divActivity = $('activity'); divActivity.setHTML('发布成功,哦也~ ') var fxdivActivityOut = new Fx.Styles(divActivity, {duration: 250}); fxdivActivityOut.start({opacity : [1,0]}).chain(function(){divActivity.remove();}); var divSuccess = new Element('div').setHTML('发布成功,哦也~ ').injectBefore($('commentform')); var succSlide = new Fx.Slide(divSuccess); succSlide.slideIn(); } setError = function(xMessage) { var divError = new Element('div', {'class': 'commentError', 'id': 'commentError' }).setHTML('' + xMessage + '').injectBefore($('commentform')); var errSlide = new Fx.Slide(divError); errSlide.slideIn(); var fx = new Fx.Style(divError, 'opacity', {duration: 750}); fx.start(0.1,0.9).chain(function(){fx.start(0.9,0.1);}).chain(function(){fx.start(0.1,0.9);}).chain(function(){errSlide.slideOut();}); }
2008-06-25 7:20 pm
居然还有电网 = =
2008-06-25 8:06 pm
共振的那个,happy时有被弹到床外造成骨折的可能。
2008-06-25 8:56 pm
第三张是为我们的史高飞(或者他儿子)设计的。
2008-06-25 10:20 pm
最后一张
床上也能穿的这么严肃,真是...太无视人性了...
2008-06-25 11:01 pm
最好能有跑车款的床