頁面帶遮罩彈窗

2021-07-16 03:06:43 字數 740 閱讀 7250

彈窗在乙個程式中的使用應該是非常多,在web中,彈窗為js的alert()方法,但是真的不好用,容易被瀏覽器遮蔽,而且還特別 醜。

那今天我就根據這個問題,使用div編寫了乙個彈窗,配上了一點小動畫看起來不那麼死板,目前來看還是不錯的,在此保留。

頁面**:

確定

css樣式:

* 

#tc

#tc1

#tc1_top

#tc1_bottom

#tc1_btn

js,需要匯入jquery包:

$(document).ready(function () , 200).animate(, 500, function () );

});//彈出提示框事件

$("#btn").click(function () );

});//彈出提示框方法

function tanchuang(title, context) , 500).animate(, 150).animate(, 350);

$("#tc1_top").text(title);

$("#tc1_bottom").text(context);

};

效果:

div 遮罩層 彈窗

div 遮罩層 彈窗 title style type text css layer1 layer1 win top layer1 win top a shade layer1 content body style head body div id shade div a href onclick ...

小結《跳轉頁面帶引數》

首先從乙個實體跳轉到另乙個窗體帶引數,參考的列子是 xrm.utility.openentityform entityname,賦值的guid,引數 function tocreatecontract var accountid xrm.page.getattribute customerid ge...

jq html 各種頁面帶引數

location.href xd02.html?value 9898 name 6 世上最簡單 方法一 function getquerystring name 呼叫方法 getquerystring value alert getquerystring 引數名1 alert getquerystr...