Javascrip&Jquery
文章平均质量分 68
cattei
这个作者很懒,什么都没留下…
展开
-
得到id以及属性
用javascrip在.net中写代码,得到其ID方法满多种,一种是在.net控件中直接写onclientclick=fuctionname(this.id),然后把ID传过去,一种是在javascrip中直接写document.getElementById() 得到ID后,要写点属性什么的咋办?用firbug点中控制后看Dom就行了,基本上都能搞定。别的就慢慢写类原创 2010-01-17 21:39:00 · 139 阅读 · 0 评论 -
.net + html 同意注册
.net 功能十分强大,其实可以直接在里面写一些html的代码,比如像这样This is ABC web onclick="ValidateTandCs" /> 这种可以用于注册时的超链接到别的地方,当然可以发挥想像,所有Text都可以这么用。 ClientValidationFunction="ValidateT原创 2010-01-17 21:24:00 · 176 阅读 · 0 评论 -
Javascript&Jquery 常用属性
JScript code Attribute:$(”p”).addClass(css中定义的样式类型); 给某个元素添加样式$(”img”).attr({src:”test.jpg”,alt:”test Image”}); 给某个元素添加属性/值,参数是map$(”img”).attr(”src”,”test.jpg”); 给某个元素添加属性/值$(”img”).at转载 2010-02-03 11:34:00 · 511 阅读 · 0 评论 -
FileUpload filter
When we need to <a id="KonaLink0" class="kLink" style="position: static; text-decoration: underline !important;" onclick="function onclick(){adlinkMouseClick(event,this,0);}" onmouseov原创 2010-02-03 14:25:00 · 328 阅读 · 0 评论 -
about use javascrip change button image
function ValidateTandCs(source, args) { } function disableBtn(btnID, newText) { if (Page_IsValid == true) { var btn = document.getElementById(转载 2010-02-04 17:17:00 · 225 阅读 · 0 评论 -
"Stack overflow in line 0" errors when I look at it in Internet Explorer.
I had an OnError() event in some code that was setting the image source to a default image path if it wasnt found. Of course, if the default image path wasnt found it would trigger the error handl原创 2010-04-14 11:35:00 · 304 阅读 · 0 评论 -
system.Web.UI.Page.Server.get 要求引用解决方法
代码是判断是否支持一些服务器组件 如下 public static string IsObject(string ObjectName) { try { Server.CreateObject(ObjectName); return "√"; } catch (Exception转载 2010-04-15 19:11:00 · 531 阅读 · 0 评论