从前面的我讲的采集原理大家可以看出,绝大多数采集程序都是靠分析规则来进行采集的,如分析分页文件名规则、分析页面 […]
防采集策略
目前防采集的方法有很多种,先介绍一下常见防采集策略方法和它的弊端及采集对策: 一、判断一个IP在一定时间内对本 […]
说采集就大家一起来聊采集吧
采集原理: 采集程序的主要步骤如下: 一、获取被采集的页面的内容 二、从获取代码中提取所有用的数据 一、获取被 […]
论坛E-mail验正的正则表达式升级
今天拿到了传说中有1G大的Gmai,确实很好用速度极快,没有了传统的收件夹,取了代之的是labels ,用户自 […]
C#开发点滴:常用函数,处理方法
<strong>1. 打开新的窗口并传送参数:</strong> 传送参数: resp […]
发布ActiveX
1、如果需要创建cab文件,首先需要Cabarc或者Makecab,它们随着Cabinet SDK的安装就有了 […]
解读C#中的规则表达式
多少年来,许多的编程语言和工具都包含对规则表达式的支持,.NET基础类库中包含有一个名字空间和一系列可以充分发 […]
收集了一些表现层应用的例子
页面加载效果一:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 |
<script type="text/javascript">// <![CDATA[ /******************************************************** * ProgressBar class * @author null * @param width - width of progress bar * @param height - height of progress bar * @param fgColor - fgColor of progress bar * @param bgColor - bgColor of progress bar * @param borderColor - borderColor of progress bar the rule is the same border-color of CSS /********************************************************/ function ProgressBar(width,height,fgColor,bgColor,borderColor){ if(borderColor==undefined){ bgColor = "threedlightshadow"; fgColor = "highlight"; borderColor = "buttonshadow window window buttonshadow"; } else if(borderColor==undefined&&fgColor==undefined&&bgColor==undefined){ bgColor = "threedlightshadow"; fgColor = "highlight"; borderColor = "buttonshadow window window buttonshadow"; } percent = 0.0; //initialize to zero fontSize = Math.ceil(height/2)+1; font_bt = "<table width=100% height=100% cellpadding=0 cellspacing=0 style='font:bold "+fontSize+"px Arial;color:"+bgColor+";text-align:center;vertical-align:center;'> <tr> <td>"+parseInt(percent*100)+" %</td> </tr> </table>"; font_ft = " <table width=100% height=100% cellpadding=0 cellspacing=0 style='font:bold "+fontSize+"px Arial;color:"+fgColor+";text-align:center;vertical-align:center;'> <tr> <td>"+parseInt(percent*100)+" %</td> </tr> </table>"; squares = ""; for(var i=0;;i++){ var left = width-2-i*(height/2+1); //alert(left); if(left>=height/2+1){ squares += "<span style='background-color:"+fgColor+";width:"+height/2+"px;height:"+(height-2)+";margin-right:1px;'></span>"; } else if(left>=1){ squares += "<span style='background-color:"+fgColor+";width:"+left+"px;height:"+(height-2)+";margin:0px;'></span>"; } else break; } //position:absolute; str = "<span id=progress_bg style='width:"+width+"px;height:"+height+"px;background-color:"+bgColor+";border:1px solid;border-color:"+borderColor+"'>"; //"+fgColor+" #transparent str += " <span id=progress_fg style='position:absolute;width:100%;height:100%;clip:rect(0,"+parseInt(percent*100)+"%,100%,0);background-color:"+fgColor+";font-size:0px;line-height:0px;'>"; str += squares; str += " </span>"; str += " <span id=progress_bt style='position:absolute;z-index:8;width:100%;height:100%;background-color:#transparent;clip:rect(0,"+parseInt(percent*100)+"%,100%,0);text-align:center;'>"; str += font_bt; str += " </span>"; str += " <span id=progress_ft style='position:absolute;z-index:9;width:100%;height:100%;background-color:#transparent;clip:rect(0,100%,100%,"+parseInt(percent*100)+"%);text-align:center;'>"; str += font_ft; str += " </span>"; str += "</span>"; document.write(str); function update(){ font_bt = " <table width=100% height=100% cellpadding=0 cellspacing=0 style='font:bold "+fontSize+"px Arial;color:"+bgColor+";text-align:center;vertical-align:center;'> <tr> <td>"+parseInt(percent*100)+" %</td> </tr> </table>"; font_ft = " <table width=100% height=100% cellpadding=0 cellspacing=0 style='font:bold "+fontSize+"px Arial;color:"+fgColor+";text-align:center;vertical-align:center;'> <tr> <td>"+parseInt(percent*100)+" %</td> </tr> </table>"; document.getElementById("progress_fg").style.clip='rect(0,'+parseInt(percent*100)+'%,100%,0)'; document.getElementById("progress_bt").style.clip='rect(0,'+parseInt(percent*100)+'%,100%,0)'; document.getElementById("progress_ft").style.clip='rect(0,100%,100%,'+parseInt(percent*100)+'%)'; document.getElementById("progress_bt").innerHTML=font_bt; document.getElementById("progress_ft").innerHTML=font_ft; } this.setModel=function(model){ percent = model; update(); } } /////////// Test for ProgressBar //////////// pb = new ProgressBar(153,18);//,"navy","#FFE4C4","#ff9900"); //document.write("Hello,ProgressBar"); //pb.setModel(50/100); function progress(v){ if (v >= 100){ pb.setModel(1.00); alert("Finished"); } else{ pb.setModel(v/100); window.setTimeout("progress("+(v+1)+")",Math.random()*Math.random()*500); } } progress(0); ///////////////// End Test /////////////////// // ]]></script> |
页面加载效果二 [cray […]
又一些CSS代码
CSS实现的中英文双语导航菜单
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
<div id=""top""> <ul> <ul> <li><a class=""bi"" href=""index.html"">Home<span>首 页</span></a></li> </ul> </ul> <ul> <ul> <li><a class=""bi"" href=""about.html"">About us<span>关于我们</span></a></li> </ul> </ul> <ul> <ul> <li><a class=""bi"" href=""products.html"">Products<span>产品展示</span></a></li> </ul> </ul> <ul> <ul> <li><a class=""bi"" href=""services.html"">Services<span>售后服务</span></a></li> </ul> </ul> <ul> <ul> <li><a class=""bi"" href=""contact.html"">Contact<span>联系我们</span></a></li> </ul> </ul> </div> |
小方框中浏览 […]
一种PHP设计模式:DPT
一、DPT介绍<br /> <br /> PHP为什么在主流的应用中总是那么不出色,总 […]
全面迎接SVN时代来临
SourceForge开始全面支持Subversion,这真是个好消息,这预示着CVS独霸天下的时代快要结束, […]
也谈跨站脚本攻击与防御
网络上曾经有过关于跨站脚本攻击与防御的文章,但是随着攻击技术的进步,以前的关于跨站脚本攻击的看法与理论已经不能 […]
digg开源:pligg 程序下载
<p> </p> <p> </p […]
本站英文版本
可以直接用google,这个功能是google提供的,地址在: http://translate.google […]
部分常见问题及解决方法
目录 1. 说明 1.1 客户端支持的系统版本 1.2 维护常用命令 1.3 客户端软件下载 1.4 专线 2 […]
国际上十四个优秀网页设计审核站
推荐下. 中国 pages.think ————— […]
DOS版的星战(Star Wars)
先保证你的计算机链接到网络,开始菜单-运行-输入: telnet towel.blinkenlights.nl […]
OE删除了对你的邮件中不安全的附件的访问
工具->选项->安全->不允许保存或打开可能有病毒的附件.把V去掉就OK了,IE6这个默认选项真恶心人R […]
流氓软件遭人唾弃却发展迅速原因何在
·流氓软件的定义和知名软件 […]
Canadian Thanksgiving
说明:Canadian Thanksgiving 感恩节(加拿大) 背景:加拿大感恩节的庆祝活动是在十月的第二 […]
中国主要省份城市的DNS服务器地址
省份/城市 DNS 名称 DNS IP ADDRESS ======================== 香港 […]
测试你的搜索引擎优化水平
[b]第一级别: seo观望者[/b] 很多刚开始经营网站或开发网站的人可能经常会这样问自己:“哎,我是不是该 […]
世界顶级博客的47个博客技巧
有些博客曾因为写日志而丢掉了工作、朋友、甚至配偶,因此博客们必需注意到自己今天写的文章会在未来的日子给自己 […]
如何快速建造一个成功的中文web2.0网站
web2.0的风光在如今的互联网上简直无人与其争锋,随着英文web2.0网站的快速发展,中文web2.0网 […]
百度Google超长域名火拼
今天朋友告诉我一个奇怪的域名: http://www.mamashuojiusuannizhucedeyumi […]