摘要: 1.document.write(""); 输出语句2.JS中的注释为//3.传统的HTML文档顺序是:document->html->(head,body)4.一个浏览器窗口中的DOM顺序是:window->(navigator,screen,history,location,document)5.得到表单中元素的名称和值:document.getElementById("表单中元素的ID号").name(或value)6.一个小写转大写的JS: document.getElementById("output"). 阅读全文
posted @ 2012-04-20 14:28 烟F火 阅读(355) 评论(0) 推荐(0) 编辑
摘要: <title>朝暮数据www.zhaomu.com</title><script>//图标距离与菜单ico_top=11;ico_left=11;ico_bottom=31;ico_x=65;ico_y=65;function set_zzjs_net(){//我们的网址是www.zhaomu.com 朝暮数据divCount = document.all.ico.all.tags("DIV");for (i=0; i<divCount.length; i++) {obj = divCount(i);win_y=document.b 阅读全文
posted @ 2012-04-19 13:56 烟F火 阅读(359) 评论(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=gb23 阅读全文
posted @ 2012-04-17 16:24 烟F火 阅读(254) 评论(0) 推荐(0) 编辑
摘要: /*http://www.zhaomu.com*/* { padding: 0; margin: 0; }li { list-style: none; }body { background: #333; }#iphone { width: 900px; height: 600px; background: url(images/bg.png); position: absolute; top: 50%; left: 50%; margin: -300px 0 0 -450px; }#wrap { width: 238px; height: 360px; position: absolute; 阅读全文
posted @ 2012-04-16 12:46 烟F火 阅读(190) 评论(0) 推荐(0) 编辑
摘要: http://www.zhaomu.comperfectDrag.js//http://www.zhaomu.com//perfectDrag.jsfunction MiaovperfectDragSimple(vElement, fnOnDragStart, fnOnDraging, fnOnDragEnd){ var oElementDrag=null; if(typeof vElement == 'string') { oElementDrag=document.getElementById(vElement); } else if(t... 阅读全文
posted @ 2012-04-16 12:37 烟F火 阅读(448) 评论(0) 推荐(0) 编辑
摘要: 这里是上文用到的图片,有需要的可以拿去http://www.zhaomu.com 阅读全文
posted @ 2012-04-16 12:34 烟F火 阅读(170) 评论(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=u 阅读全文
posted @ 2012-04-16 12:32 烟F火 阅读(221) 评论(0) 推荐(0) 编辑
摘要: jscroll.js/*** jscroll.js* http://www.zhaomu.com/*--------------------------------------------------------------------------------------------------*/$.fn.extend({//添加滚轮事件//by junmousewheel:function(Func){return this.each(function(){var _self = this; _self.D = 0;//滚动方向if($.browser.msie||$.browser.sa 阅读全文
posted @ 2012-04-09 13:37 烟F火 阅读(256) 评论(0) 推荐(0) 编辑
摘要: jquery.js/** jquery.js* http://www.zhaomu.com*/(function(){var l=this,g,y=l.jQuery,p=l.$,o=l.jQuery=l.$=function(E,F){return new o.fn.init(E,F)},D=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;o.fn=o.prototype={init:function(E,H){E=E||document;if(E.nodeType){this[0]=E;this.len 阅读全文
posted @ 2012-04-09 13:36 烟F火 阅读(230) 评论(0) 推荐(0) 编辑
摘要: <html><style> body{padding:10px 0 0px 0;margin:0; font-size:12px; color:#666666; line-height:20px;}p.text{padding:10px; margin:10px; background:#f5f5f5; border:1px solid #ccc;}.fontRed{ color:#FF0000}.title{font-family:Verdana, Arial; font-weight:bold; font-size:14px; padding:0 20px}.dem 阅读全文
posted @ 2012-04-09 13:31 烟F火 阅读(156) 评论(0) 推荐(0) 编辑