index.html

来自「ajax实现的字体的FADER效果」· HTML 代码 · 共 33 行

HTML
33
字号
<html><head><style>.alert {   opacity: 0.0;  border:2px dashed black;  padding:5px;  background:#eee;  font-family: arial, verdana;  font-weight: bold; }</style><script src="lib/prototype.js"></script><script src="src/effects.js"></script><script>function submit(){ new Ajax.Updater( 'result', 'alert.html', {  method: 'get',  onSuccess: function() {   new Effect.Opacity('result',    { duration: 2.0, from: 0.0, to: 1.0 } );   new Effect.Opacity('result',    { delay: 10.0, duration: 2.0, from: 1.0, to: 0.0 } );  }	} );}</script></head><body><div id="result" class="alert"></div><br/><br/><button onclick="submit()">Submit</button></body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?