然後輸入的資料都不見了
為了防止種事發生
$('.fancybox').fancybox({ closeBtn: false, // 是否顯示關閉按紐 helpers: { // 防點擊背景時關閉 overlay: { closeClick: false } }, keys: { // 防點擊ESC時關閉 close: null } });參考來源
DISABLE FANCYBOX BOX CLOSE WITH BUTTON, OVERLAY CLICK AND ESCAPE KEY
$('.fancybox').fancybox({ closeBtn: false, // 是否顯示關閉按紐 helpers: { // 防點擊背景時關閉 overlay: { closeClick: false } }, keys: { // 防點擊ESC時關閉 close: null } });參考來源
.fancybox-nav { position: absolute; top: 0; /*width: 40%;Marco*/ width: 60px; height: 100%; cursor: pointer; text-decoration: none; background: transparent url('blank.gif'); /* helps IE */ -webkit-tap-highlight-color: rgba(0,0,0,0); z-index: 8040; } .fancybox-prev { /* left: 0;Marco */ left: -60px; } .fancybox-next { /* right: 0; Marco */ right: -60px; }
protected void Button1_Click(object sender, EventArgs e)
{
ScriptManager.RegisterStartupScript(this, this.GetType(), "訊息", "parent.jQuery.fancybox.close();", true);
}
protected void Button1_Click(object sender, EventArgs e)
{
ScriptManager.RegisterStartupScript(this, this.GetType(), "訊息", "javascript:location.href='b.aspx'", true);
}