- 博客(13)
- 收藏
- 关注
转载 40种网站设计常用技巧
1. oncontextmenu="window.event.returnValue=false" 将彻底屏蔽鼠标右键 no 可用于Table 2. 取消选取、防止复制 3. onpaste="return false" 不准粘贴 4. oncopy="return false;" oncut
2008-03-02 12:37:00
651
转载 分享JS广告代码 如sina 163 首页平铺瞬间消失的那种
SYFS=truevar adInterPath="/AD/UploadADPic/200605/20060524145252541.gif"if (document.all) { // this is a 4.x browser, no? document.write(document.writeln( SRC="js/TopFullScreen.js">); }// --> if (
2008-02-17 17:59:00
1252
转载 不用js多浏览器兼容纯DIV/CSS对联漂浮广告
.r1{...}{width:80px;height:80px;background:red;float:right; position:fixed !important; top/**//**/:200px; position:absolute; z-index:300; top:expression(offsetParent.scrollTop+2
2008-02-17 17:14:00
1317
转载 CSS属性Display与Visibility的不同
作者:淘特网大多数人很容易将CSS属性display和visibility混淆,它们看似没有什么不同,其实它们的差别却是很大的。visibility属性用来确定元素是显示还是隐藏,这用visibility="visible|hidden"来表示,visible表示显示,hidden表示隐藏。当visibility被设置为"hidden"的时候,元素虽然被隐藏了,但它仍然占据它原来所在的位置。例
2007-11-01 09:32:00
848
转载 使用JavaScript拖拽玩具产品图标到购物车的源代码
remex著 有时候,我访问一些购物的网站,发现他们都可以拖拽喜欢的商品到购物篮中,我被这种功能深深地吸引,决定自己做一个这样的小程序。在这篇文章中,我将实现一个页面,它能够让用户拖拽准备购买的商品图标到购物篮中。 [翻译]Azamsharp著Drag and Drop Products to the Shopping Basket Using JavaScript使用JavaScript
2007-10-16 10:48:00
2306
转载 CSS Hack 汇总快查
屏蔽IE浏览器(也就是IE下不显示) *:lang(zh) select {font:12px !important;} /*FF,OP可见,特别提醒:由于Opera最近的升级,目前此句只为FF所识别*/select:empty {font:12px !important;} /*safari可见*/这里select是选择符,根据情况更换。第二句是MAC上safari浏览器独有的。 仅IE7与
2007-07-31 13:34:00
807
转载 看看神奇的CSS.用一张图片做出这样的效果.
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/1999/xhtml"> 测试页 *{margin:0px;padding:0px;} #topmenu { height: 87px;width:100%; background:url(http://www.s-t
2007-07-27 18:02:00
1312
转载 ASP.NET 中的随机密码生成
在开发需要用户注册后才能使用提供的各项功能的应用程序时,在新用户提交注册信息后,较常见的做法是由程序生成随机密码,然后发送密码到用户注册时填写的电子信箱,用户再用收到的密码来激活其帐户。 在 ASP.NET 中,实现随机密码生成功能是很容易的,下面的代码给出了完整的实现方法:public static string MakePassword(string pwdchars, int pw
2007-07-26 17:08:00
740
转载 CSS仿淘宝首页导航条布局效果
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/1999/xhtml">TAO BAO TEST 2/* www.zishu.cn 子鼠*/body{ font-size:12px; text-align:center; margin-top:30px; font-family:Verdana
2007-07-13 00:55:00
1416
转载 鼠标提示——在鼠标当前位置显示提示信息
document.write(";background-color:#ffdfd0; height: 19px; left: 77px; top: 96px/">");function showtip(text) //显示链接的说明{ if (document.all&&document.readyState=="complete") //针对IE { document.all
2007-06-30 17:37:00
1869
转载 window.location方法获取URL各部分
首先解释一下URL:参考百度百科:URL条目URL即:统一资源定位符 (Uniform Resource Locator, URL) 完整的URL由这几个部分构成:scheme://host:port/path?query#fragment scheme:通信协议常用的http,ftp,maito等host:主机服务器(计算机)域名系统 (DNS) 主机名或 IP 地址。port:端口号整数,可
2007-04-17 21:55:00
1312
转载 ASP.NET - Code Samples - Disable CheckboxList Items
//Add This Code To the HTML directly // checkboxlistID = id of the checkboxlist// chkarray = array of indexes to set enable or disable// disable = true to disablefunction disableListItems(checkBoxList
2007-01-16 09:54:00
1046
转载 仿当当网商品搜索的一段鼠标效果
script>function hideLayer()...{var layer = document.getElementById("popImageLayer");layer.style.visibility=hidden;}function dispear()...{var layer = document.getElementById("popImageLayer");if
2007-01-02 17:57:00
1033
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人