随笔分类 -  JS

播放图片
摘要:<!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>... 阅读全文
posted @ 2009-10-12 15:32 heart-in-sky 阅读(106) 评论(0) 推荐(0)
弹出页面
摘要:思路:弹出的div层中嵌入一个Iframe弹出层:<script type="text/javascript">function openSelUserDiv() { // 弹出层 var newDiv = document.getElementById("divSelUser"); newDiv.style.display = ""; newDiv.style.position = ... 阅读全文
posted @ 2009-08-26 11:32 heart-in-sky 阅读(242) 评论(0) 推荐(0)
JS调用后台方法
摘要:html:<asp:Button ID="Button1" runat="server" Text="Button" style="display:none;" onclick="Button1_Click" /><input id="Button2" type="button" onclick="document.getElementById('Button1').click(... 阅读全文
posted @ 2009-07-23 15:40 heart-in-sky 阅读(231) 评论(0) 推荐(0)
JS类库
摘要:using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using... 阅读全文
posted @ 2008-05-06 14:28 heart-in-sky 阅读(261) 评论(0) 推荐(0)
弹出层
摘要: 阅读全文
posted @ 2008-05-05 14:14 heart-in-sky 阅读(291) 评论(0) 推荐(0)
滚动条
摘要: 阅读全文
posted @ 2008-04-24 09:47 heart-in-sky 阅读(103) 评论(0) 推荐(0)
js控制不能为空
摘要:if(document.getElementById('TabControl1_tabOriginal_UC_TargetRequirements1_K2FileName').value =='') { mes='文件名不能为空!'; alert(mes); return false; } 阅读全文
posted @ 2008-03-21 13:11 heart-in-sky 阅读(282) 评论(0) 推荐(0)
提示框
摘要:1:后台不刷新页面(页面不停止)Page.RegisterStartupScript("msg","");2:可判断选择项后台:Button1.Attributes.Add("onclick","return confirm('是否真的删除此记录!');"); JS: if(confirm('是否真的删除此记录!')==true) jsFun(... 阅读全文
posted @ 2008-01-17 17:41 heart-in-sky 阅读(133) 评论(0) 推荐(0)