04 2013 档案

摘要:<title></title> <script src="jquery-1.9.1.js" type="text/javascript"></script> <style type="text/css"> .qiang{background:url(/images/pas4.JPG) no-repeat;width:150px;height:40px;float:left;} .zhong{background:url(/images/pas3.JPG) no-repeat; 阅读全文
posted @ 2013-04-23 20:30 奇奇博客 阅读(330) 评论(0) 推荐(0) 编辑
摘要:<head> <title></title> <script src="jquery-1.9.1.js" type="text/javascript"></script> <script type="text/javascript"> $(function () { var bool = false; $('#Email').focus(function () { if (bool == false) { $('#Email').v 阅读全文
posted @ 2013-04-23 20:27 奇奇博客 阅读(367) 评论(0) 推荐(0) 编辑
摘要:<head> <title></title> <style type="text/css"> img { width:300px;height:300px; } a { text-decoration:none; } </style> <script src="Jquery1.7.js" type="text/javascript"></script> <script type="text/javascript"> $( 阅读全文
posted @ 2013-04-23 20:22 奇奇博客 阅读(238) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf- 阅读全文
posted @ 2013-04-22 21:56 奇奇博客 阅读(256) 评论(0) 推荐(0) 编辑
摘要:<title></title> <script src="jquery-1.9.1.js" type="text/javascript"></script> <script type="text/javascript"> $(function () { //如果clone()方法的参数为true,则此元素的事件也会被复制,如果为空(默认为false),则事件不会被复制 $('#img1').click(function () { $(this).clone(t 阅读全文
posted @ 2013-04-22 21:45 奇奇博客 阅读(107) 评论(0) 推荐(0) 编辑
摘要:<title></title> <style type="text/css"> img { width:50px; height:50px; } table { width:600px; height:400px; } table tr td{ border:solid 1px #eee;} </style> <script src="Jquery1.7.js" type="text/javascript"></script> ... 阅读全文
posted @ 2013-04-22 21:42 奇奇博客 阅读(139) 评论(0) 推荐(0) 编辑
摘要:<title></title> <script src="jquery-1.9.1.js" type="text/javascript"></script> <script type="text/javascript"> function backgorundColor(i) { // this.document.body.style.backgroundColor = i; // this.document.getElementById('div1').st 阅读全文
posted @ 2013-04-22 21:41 奇奇博客 阅读(349) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <title></title> <style type="text/css"> #titleDiv { w 阅读全文
posted @ 2013-04-22 21:22 奇奇博客 阅读(304) 评论(0) 推荐(0) 编辑
摘要:前台代码:<Canvas Background="{StaticResource AppBarBackgroundThemeBrush}"> <TextBox Name="txtContent" Width="1365" Height="696" TextWrapping="Wrap" FontSize="18" Canvas.Top="1"/> <Button Content="保存到文件" Canvas 阅读全文
posted @ 2013-04-20 00:11 奇奇博客 阅读(196) 评论(0) 推荐(0) 编辑
摘要:前台代码:<Page.Resources> <Style TargetType="TextBlock"> <Setter Property="FontSize" Value="27"/> <Setter Property="FontFamily" Value="宋体"/> </Style> </Page.Resources> <Grid Background="{StaticResource Applicat 阅读全文
posted @ 2013-04-20 00:08 奇奇博客 阅读(200) 评论(0) 推荐(0) 编辑
摘要:<script src="jquery-1.9.1.js"></script> <script type="text/javascript"> $('#txtUserName').focus(function () { $('#txtUserName').val(''); }) $('#txtPassWord').focus(function () { $('#txtPassWord').val(''); }) $(' 阅读全文
posted @ 2013-04-20 00:07 奇奇博客 阅读(439) 评论(0) 推荐(0) 编辑
摘要:<script src="jquery-1.9.1.js"></script> <script type="text/javascript"> $(function () { $('#btn').click(function () { alert($('#s option:selected').val()); }) }) </script>< /head>< body> <select id="s" multiple=&quo 阅读全文
posted @ 2013-04-20 00:05 奇奇博客 阅读(716) 评论(0) 推荐(0) 编辑
摘要:<script src="jquery-1.9.1.js"></script> <script type="text/javascript" > $(function () { $('#btnCreateP').click(function () { var createP = '<p><b><i>白日依山尽<br/>黄河入海流<br/>欲穷千里目<br/>更上一层楼</i></b></p> 阅读全文
posted @ 2013-04-20 00:01 奇奇博客 阅读(129) 评论(0) 推荐(0) 编辑
摘要:<style type="text/css"> table tr td { width:240px;height:240px; } .clasImg { width:500px;height:200px; } </style> <script src="jquery-1.9.1.js"></script> <script type="text/javascript"> $(function () { $('#Button1').click(function ( 阅读全文
posted @ 2013-04-18 15:04 奇奇博客 阅读(97) 评论(0) 推荐(0) 编辑
摘要:<script type="text/javascript"> //展开图片或收缩图片 $(function () { $('#Button3').click(function () { $('#img').show(5000); }) $('#Button4').click(function () { $('#img').hide(5000); }) }) </script> < /head> < body> <img alt="" i 阅读全文
posted @ 2013-04-18 14:57 奇奇博客 阅读(139) 评论(0) 推荐(0) 编辑
摘要:<style type="text/css"> .divFrame { width:260px;border:1px solid #666;font-size:10pt; } .divTitle { background-color:#eee;padding:5px; } .divContent { padding:5px;display:none; } .divCurrColor { background-color:red; } </style> <script src="jQuery/jquery-1.9.1.js"& 阅读全文
posted @ 2013-04-18 14:53 奇奇博客 阅读(265) 评论(0) 推荐(0) 编辑
摘要:<style type="text/css"> body { font-size:12px;text-align:center; } #tbStu { width:260px;border:1px solid #666;background-color:#eee; } #tbStu tr { line-height:23px; } #tbStu tr th { background-color:#ccc;color:#fff; } #tbStu .trOdd { background-color:#fff; } </style> <script 阅读全文
posted @ 2013-04-18 14:50 奇奇博客 阅读(147) 评论(0) 推荐(0) 编辑
摘要:<script type="text/javascript"> $(function () { $("#btnSubmit").click(function () { var txtName = $('#txtName').val(); var gender = $('#gender').is(':checked') ? '男' : '女'; var isMarry = $('#isMarry').is(':checked') ? 阅读全文
posted @ 2013-04-18 14:47 奇奇博客 阅读(201) 评论(0) 推荐(0) 编辑
摘要:<title></title> <script type="text/javascript"> function createNode() { var pNode = document.createElement('p'); var tNode = document.createTextNode('烟花三月下杨州'); pNode.appendChild(tNode); document.body.appendChild(pNode); } function r() { var pNode = docume 阅读全文
posted @ 2013-04-16 19:25 奇奇博客 阅读(384) 评论(0) 推荐(0) 编辑
摘要:<script type="text/javascript"> var i = 1; var n; function showImg() { if (document.getElementById('img').getAttribute("src") == "images/1.jpg") { document.getElementById('img').setAttribute("src","images/2.jpg"); } else { docum 阅读全文
posted @ 2013-04-16 19:17 奇奇博客 阅读(317) 评论(0) 推荐(0) 编辑
摘要:function writeCookie() { var today = new Date(); today.setDate(today.getDate() + 1); document.cookie = 'userName=商商;Expires=' + today.toGMTString();//js进行设置过期时间时,只支持这种日期转码 } function readyCookie() { var cookie = document.cookie; alert(cookie); var array = cookie.split(';'); for (var 阅读全文
posted @ 2013-04-16 19:13 奇奇博客 阅读(162) 评论(0) 推荐(0) 编辑
摘要:<asp:Button ID="Button1" runat="server" Text="写入Cookie" OnClick="Button1_Click" /> <asp:Button ID="Button3" runat="server" Text="读出Cookie" OnClick="Button3_Click" /> <asp:Button ID="Button2" runa 阅读全文
posted @ 2013-04-16 19:09 奇奇博客 阅读(128) 评论(0) 推荐(0) 编辑
摘要:<script type="text/javascript" > function show() { var info = document.getElementById('Text1'); info.value = info.value.substr(1) + info.value[0]; } setInterval(show, 500); function show1() { var info1 = document.getElementById('Text2'); info1.value = info1.value[info 阅读全文
posted @ 2013-04-16 19:04 奇奇博客 阅读(168) 评论(0) 推荐(0) 编辑
摘要:function show(){ for (var i = 1; i < 10; i++) { for (var j = 1; j <= i; j++) { document.getElementById('divmain').innerHTML += j + "*" +i + "=" + i * j + "\t"; } document.getElementById('divmain').innerHTML += "<br/>"; } } 阅读全文
posted @ 2013-04-16 18:59 奇奇博客 阅读(154) 评论(0) 推荐(0) 编辑
摘要:前台代码:<head runat="server"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title></title> <script type="text/javascript"> function tureDelete() { if (confirm('真的要删除吗?') == false) { return false;} } fu 阅读全文
posted @ 2013-04-09 20:40 奇奇博客 阅读(408) 评论(0) 推荐(0) 编辑
摘要:当你把字典声明的静态时,关闭网页后,你存储的数据仍然会存储在内存中,例如:前台代码: <div> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> <asp:Button ID="Button1" runat="server" OnClick="Button1_Click1" Text="查询" /> <asp:Button ID="Button2& 阅读全文
posted @ 2013-04-09 20:26 奇奇博客 阅读(203) 评论(0) 推荐(0) 编辑
摘要:前台代码: <table> <tr> <td> <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"> <Columns> <asp:BoundField DataField="Id" HeaderText="编号" /> <asp:BoundField DataField="NewsTitle" Header 阅读全文
posted @ 2013-04-09 20:18 奇奇博客 阅读(194) 评论(0) 推荐(0) 编辑
摘要:前台代码: <div> <asp:ListBox ID="ListBox1" runat="server" Height="123px" Width="113px" SelectionMode="Multiple"> <asp:ListItem>tom</asp:ListItem> <asp:ListItem>jion</asp:ListItem> <asp:ListItem>j</asp:ListItem 阅读全文
posted @ 2013-04-09 20:17 奇奇博客 阅读(357) 评论(0) 推荐(0) 编辑
摘要:前台代码: <table style="width: 100%;"> <tr> <td> 搜索字: <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> <asp:Button ID="Button1" runat="server" Text="搜索" OnClick="Button1_Click" /> </td> 阅读全文
posted @ 2013-04-09 20:16 奇奇博客 阅读(424) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示