摘要: <!doctype html><html><style>body { margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px;}.auto_hidden { width:204px;border-top: 1px solid #333; border-bottom: 1px solid #333; border-left: 1px solid #333; border-right: 1px solid #333; position:absolute; display:n 阅读全文
posted @ 2011-06-20 17:21 ╰☆Everytime I try to flying 阅读(403) 评论(1) 推荐(0) 编辑
摘要: each()方法能使DOM循环结构简洁,不容易出错。each()函数封装了十分强大的遍历功能,使用也很方便,它可以遍历一维数组、多维数组、DOM, JSON 等等在javaScript开发过程中使用$each可以大大的减轻我们的工作量。下面提一下each的几种常用的用法each处理一维数组vararr1=["aaa","bbb","ccc"]; $.each(arr1,function(i,val){alert(i);alert(val);});alert(i)将输出0,1,2alert(val)将输出aaa,bbb,ccceach处 阅读全文
posted @ 2011-05-06 12:14 ╰☆Everytime I try to flying 阅读(716) 评论(0) 推荐(0) 编辑
摘要: //遍历option和添加、移除optionfunction changeShipMethod(shipping){var len = $("select[@name=ISHIPTYPE] option").lengthif(shipping.value != "CA"){$("select[@name=ISHIPTYPE] option").each(function(){if($(this).val() == 111){$(this).remove();}});}else{$("<option value=' 阅读全文
posted @ 2011-04-29 16:30 ╰☆Everytime I try to flying 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 为什么要让网页静态化,生成静态的程序来做网站的好处?在三年前,有百分之八十的网站要求做成动态的。也就是从那个时候也就是ASP的发展高峰期。一些静态网页也要求做成动态网站。但是这二年来,网站要求做成静态的。也就是网页要求静态化。 为什么会有这样的变化?到底意味着什么? 目前网页HTML静态化是利用其它的动态技术生成HTML静态页面,还不是静态网站。因为的确是这样的,生成HTML静态网页有一定的好处。 一、加快页面打开浏览速度,静态页面无需连接数据库打开速度较动态页面有明显提高; 二、有利于搜索引擎优化SEO,Baidu、Google都会优先收录静态页面,不仅被收录的快还收录的全; 三、减轻服务. 阅读全文
posted @ 2011-04-14 18:47 ╰☆Everytime I try to flying 阅读(808) 评论(3) 推荐(0) 编辑
摘要: 一、 起因那天用到prototype.js于是打开看看,才看几行就满头雾水,原因是对js的面向对象不是很熟悉,于是百度+google了一把,最后终于算小有收获,写此纪念一下^_^。prototype.js代码片段代码如下:var Class = { create: function() { return function() { this.initialize.apply(this , arguments); } }}// Class使用方法如下var A = Class.create();A. prototype={ initialize:function(v){ this .value=v 阅读全文
posted @ 2013-04-02 17:26 ╰☆Everytime I try to flying 阅读(184) 评论(0) 推荐(0) 编辑
摘要: IE中:document.body.clientWidth ==> BODY对象宽度document.body.clientHeight ==> BODY对象高度document.documentElement.clientWidth ==> 可见区域宽度document.documentElement.clientHeight ==> 可见区域高度FireFox中:document.body.clientWidth ==> BODY对象宽度document.body.clientHeight ==> BODY对象高度document.documentEle 阅读全文
posted @ 2013-03-31 23:28 ╰☆Everytime I try to flying 阅读(288) 评论(0) 推荐(0) 编辑
摘要: ASP.NET那点不为人知的事(一)我们上网时,在浏览器地址输入网址:Http://www.cnblogs.com,按下回车,一张网页就呈现在我们眼前。这究竟发生了什么?对于一名优秀的Programmer来说,我想有必要一下熟悉浏览器--->服务器请求的过程。ASP.NETASP.NET是运行在公共语言运行时刻时(CLR)上的应用程序框架。他用来在服务器端构建功能强大的web应用程序。当浏览器请求 ASP.NET 文件时,IIS 会把该请求传递给服务器上的 ASP.NET 引擎,ASP.NET 引擎会逐行地读取该文件,并执行文件中的脚本,最后,ASP.NET 文件会以纯 HTML 的形式 阅读全文
posted @ 2012-08-14 10:34 ╰☆Everytime I try to flying 阅读(576) 评论(0) 推荐(0) 编辑
摘要: 学过CSS的人都知道,它不是一种编程语言。 你可以用它开发网页样式,但是没法用它编程。也就是说,CSS 基本上是设计师的工具,不是程序员的工具。在程序员眼里,CSS 是一件很麻烦的东西。它没有变量,也没有条件语句,只是一行行单纯的描述,写起来相当费事。 很自然地,有人就开始为 CSS 加入编程元素,这被叫做"CSS 预处理器"(css preprocessor)。它的基本思想是,用一种专门的编程语言,进行网页样式设计,然后再编译成正常的 CSS 文件。 各种"CSS 预处理器"之中,我自己最喜欢SASS,觉得它有很多优点,打算以后都用它来写 CSS。下面 阅读全文
posted @ 2012-07-20 15:16 ╰☆Everytime I try to flying 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 方法6——利用NET命令(有两个必要前提才行:按装WINDOWS XP的分区必须采用FAT 32文件小系统,用户名中没有汉字。)我们知道在Windows XP中提供了“net user”命令,该命令可以添加、修改用户账户信息,其语法格式为:net user [UserName [Password *] [options]] [/domain]net user [UserName {Password *} /add [options] [/domain]net user [UserName [/delete] [/domain]]每个参数的具体含义在Windows XP帮助中已做了详细的说明,在 阅读全文
posted @ 2011-12-31 20:34 ╰☆Everytime I try to flying 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 这里是javascript中制作滚动代码的常用属性页可见区域宽: document.body.clientWidth;网页可见区域高: document.body.clientHeight;网页可见区域宽: document.body.offsetWidth (包括边线的宽);网页可见区域高: document.body.offsetHeight (包括边线的宽);网页正文全文宽: document.body.scrollWidth;网页正文全文高: document.body.scrollHeight;网页被卷去的高: document.body.scrollTop;网页被卷去的左: doc 阅读全文
posted @ 2011-12-28 20:24 ╰☆Everytime I try to flying 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 关于高度自适应还有一个因素,就是头部声明问题.<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">XHTML1.0下.高度自适应是不行的.如果要使用高度自适应必须头部声明为:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">或者类似声明. 阅读全文
posted @ 2011-12-12 15:32 ╰☆Everytime I try to flying 阅读(498) 评论(0) 推荐(0) 编辑
摘要: use strict;use warnings;print "===================变量====================\n";my $a=1;$a=2;my $b=2;$b++;print $a+$b."\n";print ($a+$b,"\n");print "===================数组====================\n";my @Array=();$Array[0]='a';$Array[1]='b';$Array[2]= 阅读全文
posted @ 2011-11-02 09:39 ╰☆Everytime I try to flying 阅读(328) 评论(0) 推荐(0) 编辑
摘要: HTML5 Video Player1. INTRODUCTONWhat is HTML5 Video?HTML is the markup language that makes up every page on the web. The newest version, HTML5, includes specifications for a video tag, that is meant to allow website developers to add a video to a page the same way they would add an image. In order f 阅读全文
posted @ 2011-08-18 14:14 ╰☆Everytime I try to flying 阅读(1519) 评论(2) 推荐(0) 编辑
摘要: <script language="JavaScript"> <!-- var url = 'http://www.lanrentuku.com'; //这里就是要跳到的地方 //--> </script> <title>网站数据加载中……</title> </head> <body onLoad="location.href = url"> <div style='margin-top:40;margin-left:40;margin-ri 阅读全文
posted @ 2011-07-29 11:58 ╰☆Everytime I try to flying 阅读(510) 评论(0) 推荐(0) 编辑