嘿傢伙和女孩! 製作了這個自定義提醒框。如何在點擊時關閉警告框?
<script type="text/javascript">
$(function() {
var $alert = $('#alert');
if ($alert.length) {
var alerttimer = window.setTimeout(function() {
$alert.trigger('click');
});
$alert.animate({ height: $alert.css('line-height') || '80px' }, 200).click(function() {
window.clearTimeout(alerttimer);
$alert.animate({ height: '0' }, 200);
});
}
});
</script>
我希望它是開放的,直到用戶選擇點擊它或屏幕上的任何其他地方。我該做什麼?
謝謝你的幫助!
當我回家時要檢查這一點!感謝名單! – Ismailp 2011-05-26 06:26:51
作品! :) Thanx! – Ismailp 2011-05-26 16:55:49