<html>
    <head >
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>          
<script src="js/jquery.js"></script>
<script>
var Submit = function ()
{
var URLs = "Ajax.aspx";
var Val = document.getElementById('val').value;

$.ajax({
url: URLs,
data: ({Text : Val}),
type: "GET",
dataType: 'text',

success: function (msg) {
alert(msg);
},

error: function (xhr, ajaxOptions, thrownError) {
alert(xhr.status + thrownError);
alert();
}
});
}
</script>
</head>
<body>
<form id="sentToBack">
<input type="text" id="val" name="Text" />
<input id="Button16" type="button" value="Html Button AJAX" onclick="Submit()" />
</form>
</body>
</html>

芭樂養樂多 發表在 痞客邦 留言(0) 人氣()

CSS 
<meta http-equiv="Content-Style-Type" content="text/css" />
<style type="text/css">
#top-bar{
width:100%;
height:100px;
background:#00ff00;
position:fixed;
top:-65px;
/* CSS3 陰影*/
-webkit-box-shadow: 0px 8px 15px #333;
-moz-box-shadow: 0px 8px 15px #333;
box-shadow: 0px 8px 15px #333;
}
</style>

芭樂養樂多 發表在 痞客邦 留言(0) 人氣()

1
Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。