Web前端
文章平均质量分 74
Omarix
这个作者很懒,什么都没留下…
展开
-
JS宝典学习笔记
1.document.write(); 输出语句2.JS中的注释为1.//2./*...*/3.传统的HTML文档顺序是document-html-(head,body)4.一个浏览器窗口中的DOM顺序是window-(navigator,screen,history,location,document)5.得到表单中元素的名称和值document.getElementById(表单中元素的ID号原创 2011-06-20 13:35:00 · 847 阅读 · 0 评论 -
新浪的网页背景特效,可以关闭不显示
新浪的网页背景特效,可以关闭不显示if(typeof(sina)!="object"){var sina={}}sina.$=function(i){if(!i){return null}return document.getElementById(i)};var原创 2011-08-26 16:04:02 · 752 阅读 · 0 评论 -
网页上的点击弹出层代码,居中显示
点击弹出层特效代码,网页上已经有很多类似的代码了,使用挺广泛的,代码先判断浏览器的版本,ie6创建的div样式和非ie6创建的div样式在解析时有点区别,为了兼容性考虑,才加了判断,虽然实现的有点粗糙,不过从实现的方法来说,容易理解,便于修改完善。点击弹出原创 2011-08-26 16:17:47 · 1502 阅读 · 0 评论 -
几种常见的DIV边框样式
几种常见的DIV边框样式,无边框、点线式边框、破折线式边框、直线式边框、双线式边框、槽线式边框、脊线式边框、内嵌效果的边框、突起效果的边框等。边框样式 无边框 点线式边框 破折线式边框 直线式边框 双线式边框转载 2011-09-18 12:38:19 · 2347 阅读 · 0 评论 -
弹出框往回传值
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/1999/xhtml" xml:lang="zh-cn" lang="zh-cn">弹出层www.转载 2011-08-18 13:45:14 · 633 阅读 · 0 评论 -
网罗~~~~
网罗天下~~~~~~~JQuery--ZTree插件 http://www.baby666.cn创意~~时尚元素书签网站 http://www.chouti.com登录界面原创 2011-09-11 15:18:08 · 651 阅读 · 0 评论 -
Javascript和CSS浏览器兼容总结
javascript部分1. document.form.item 问题问题:代码中存在 document.formName.item(“itemName”) 这样的语句,不能在FF下运行解决方法:改用 document.formName.elements["elementNam转载 2011-07-15 17:29:40 · 347 阅读 · 0 评论 -
带横向滚动条的表格
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> http://www.w3.org/1999/xhtml"> body {background-color: #F0F0F0 ; fo原创 2011-07-06 13:44:07 · 4660 阅读 · 0 评论 -
仿163邮箱鼠标放上变色的按钮样式
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/1999/xhtml">仿163邮箱鼠标放上变色的按钮样式>.btn02 { width:60px; height:24px; border:1px solid #87a3c1; background:url(/uploadfile/200911/1原创 2011-06-13 13:23:00 · 1641 阅读 · 0 评论 -
javascript多级联动select
-->var menu = [ {val: 1, txt: value}, {val: 2 ->, menu: [ {val: 2_1}, {val: 2_2} ]}, {val: 3 ->, menu: [ {val: 3_1 ->, menu: [转载 2011-06-23 17:28:00 · 1965 阅读 · 0 评论 -
带滚动条的下拉表格
==================================================================http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> http://www.w3.org/1999/xhtml"> body {background-color: #F0F0F0 ; font:原创 2011-06-24 09:43:00 · 1554 阅读 · 0 评论 -
JS+DIV表单实例——鼠标移上背景变色和文字提示
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">http://www.w3.org/1999/xhtml">JS+CSS实现的一种交互体验@charset "utf-8";/*元素初始值*/html {background: #FFF;}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,原创 2011-06-13 13:05:00 · 1705 阅读 · 0 评论 -
Div层随滚动条移动
New Document window.onscroll=function(){ var oDiv=document.getElementById("d"); oDiv.style.top=document.body.scrollTop + 300; //控制上下位置oDiv.style.left = document.body.scrollLeft + 300; //控制横向位置} as原创 2011-06-22 09:44:00 · 12726 阅读 · 0 评论 -
两个常用的DIV弹出层效果代码
有时候我们想让div遮挡整个页面,页面可能出现滚动条,也可能不出现,页面有可能是html或者xhtml,这个方法可以通杀这些情况,而且根据你的要求,是盖整个页面,或者可视部分,在兼容性方面支持ie6-8、ff3.0-3.6、chrome、safari……浏览器等。原创 2011-08-26 16:23:59 · 895 阅读 · 0 评论