官方QQ群:127876820【C#编程技术-全国站--未满人】
摘要: 随机背景--当你每次进入该页面时,从已指定的图片文件夹中,随机选取一个图片作为背景显示。这里介绍的方法是用ASP+CSS来实现的。 CSS上面代码要加在header区,不能放在外部CSS文件里 阅读全文
posted @ 2010-09-20 20:48 碧海蓝天_C# 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 1.如何用Asp判断你的网站的虚拟物理路径 答:使用Mappath方法 < p align="center" >< font size="4" face="Arial" >< b > The Physical path to this virtual website is: < /b >< /font > < font color=... 阅读全文
posted @ 2010-09-20 20:46 碧海蓝天_C# 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 设计组件Notes/Domino 有几个关键组件:导航器、代理、表单、视图和安全性。在 Web 上复制导航器非常容易,因为导航器最初是为了使 Notes 看起来像 Web 而设计的。代理功能是业务逻辑,可以在 J2EE 中相应地实现。这一节讨论了表单和视图的创建,以及 J2EE 环境中的安全性设计。表单一个表单由一个前端、中间件和一个后端组成。前端 以前的文章已经讨论过,Apache Struts... 阅读全文
posted @ 2010-09-20 20:38 碧海蓝天_C# 阅读(154) 评论(0) 推荐(0) 编辑
摘要: <html><body><script type="text/javascript">var r=Math.random()if (r>0.5) {document.write("<a href='http://www.ccc.com.cn'>hello!</a>")}else{document.write("<a href=... 阅读全文
posted @ 2010-09-20 20:00 碧海蓝天_C# 阅读(172) 评论(0) 推荐(0) 编辑
摘要: <html><head><script type="text/javascript">onerror=handleErrvar txt=""function handleErr(msg,url,l){txt="本页中存在错误。\n\n"txt+="错误:" + msg + "\n"txt+="URL: " + url + "\n"txt+="行:" + l + ... 阅读全文
posted @ 2010-09-20 19:59 碧海蓝天_C# 阅读(161) 评论(0) 推荐(0) 编辑
摘要: <html><body><script type="text/javascript">document.write("<p>浏览器:")document.write(navigator.appName + "</p>")document.write("<p>浏览器版本:")document.write(navigator.ap... 阅读全文
posted @ 2010-09-20 19:58 碧海蓝天_C# 阅读(280) 评论(0) 推荐(0) 编辑
摘要: <html><head><script type="text/javascript">function startTime(){var today=new Date()var h=today.getHours()var m=today.getMinutes()var s=today.getSeconds()// add a zero in front of nu... 阅读全文
posted @ 2010-09-20 19:56 碧海蓝天_C# 阅读(228) 评论(0) 推荐(0) 编辑
摘要: <html><head><script type="text/javascript">function mouseOver(){document.b1.src ="/i/eg_mouse.jpg"}function mouseOut(){document.b1.src ="/i/eg_mouse2.jpg"}</script></head>... 阅读全文
posted @ 2010-09-20 19:55 碧海蓝天_C# 阅读(226) 评论(0) 推荐(0) 编辑
摘要: <html><head><script type="text/javascript">function detectBrowser(){var browser=navigator.appNamevar b_version=navigator.appVersionvar version=parseFloat(b_version)if ((browser=="Net... 阅读全文
posted @ 2010-09-20 19:54 碧海蓝天_C# 阅读(162) 评论(0) 推荐(0) 编辑
摘要: <html> <head> <script type="text/javascript"> function myfunction(txt) { alert(txt) } </script> </head> <body> <form> <input type="button" onclick="myfunct... 阅读全文
posted @ 2010-09-20 19:53 碧海蓝天_C# 阅读(180) 评论(0) 推荐(0) 编辑
摘要: <html><head><script type="text/javascript">function disp_alert(){alert("再次向您问好!在这里,我们向您演示" + '\n' + "如何向警告框添加折行。")}</script></head><body><input type="button" onc... 阅读全文
posted @ 2010-09-20 19:52 碧海蓝天_C# 阅读(230) 评论(0) 推荐(0) 编辑
摘要: <script><!--function windowopen(){var target="http://www.hello.com"newwindow=window.open("","","scrollbars")if (document.all){newwindow.moveTo(0,0)newwindow.resizeTo(screen.width,screen.heigh... 阅读全文
posted @ 2010-09-20 19:36 碧海蓝天_C# 阅读(152) 评论(0) 推荐(0) 编辑
摘要: <script language="javascript">function folder(){window.external.AddFavorite('http://www.hello.com', '您好,我是收藏')}</script>onUnload=folder() 阅读全文
posted @ 2010-09-20 19:35 碧海蓝天_C# 阅读(135) 评论(0) 推荐(0) 编辑
摘要: <script language="JavaScript">a = 3 var pp = Math.random();var foot = Math.round(pp * (a-1))+1;function create() { this.src = '' this.border = ''this.alt = ''}b = new Array()for(var i=1; i<=a... 阅读全文
posted @ 2010-09-20 19:33 碧海蓝天_C# 阅读(792) 评论(0) 推荐(0) 编辑
摘要: <script Language="JavaScript">var timerID = null;var timerRunning = false;function stopclock (){ if(timerRunning) clearTimeout(timerID); timerRunning = false;}function showtime () { var now = ne... 阅读全文
posted @ 2010-09-20 19:31 碧海蓝天_C# 阅读(224) 评论(0) 推荐(0) 编辑
摘要: <script language="JavaScript"><!-- // var deadline= new Date("7/30/2000");var symbol="7月30日";var now = new Date();var leave =deadline.getTime() - now.getTime();var day = Math.floor(leave / (1... 阅读全文
posted @ 2010-09-20 19:30 碧海蓝天_C# 阅读(192) 评论(0) 推荐(0) 编辑
摘要: <script language="Javascript"><!--pageOpen = new Date();function stay() {pageClose = new Date();minutes = (pageClose.getMinutes() - pageOpen.getMinutes());seconds = (pageClose.getSeconds() - ... 阅读全文
posted @ 2010-09-20 19:28 碧海蓝天_C# 阅读(286) 评论(0) 推荐(0) 编辑
摘要: todayDate = new Date();当定义一个新的对象时,通常使用“new”操作符。在这里,就是创建了日期对象。date = todayDate.getDate();getDate()是Date对象的一种方法,其功能是获得当前的日期。month= todayDate.getMonth() + 1 ;; getMonth()是Date对象的一种方法,其功能是获得当前... 阅读全文
posted @ 2010-09-20 19:26 碧海蓝天_C# 阅读(609) 评论(0) 推荐(0) 编辑
摘要: 第一:像网页链接<a .......... href="[url1]" .......>之间的内容中[URL[绝对地址替换成相对地址,首先要查找匹配这个链接,查找匹配这个串的正则表达式串为 (<\\s*a\\s+(?:[^\\s>]\\s*){0,})href\\s*=\\s*(\"|'|)([^\\2\\s>]*)\\2((?:\\s*[^\\s>]){0,}... 阅读全文
posted @ 2010-09-20 19:21 碧海蓝天_C# 阅读(1936) 评论(0) 推荐(0) 编辑
摘要: 一、正则表达式基础知识 我们先从简单的开始。假设你要搜索一个包含字符“cat”的字符串,搜索用的正则表达式就是“cat”。如果搜索对大小写不敏感,单词“catalog”、“Catherine”、“sophisticated”都可以匹配。也就是说: 1.1 句点符号 假设你在玩英... 阅读全文
posted @ 2010-09-20 19:16 碧海蓝天_C# 阅读(669) 评论(0) 推荐(0) 编辑
官方QQ群:127876820【C#编程技术-全国站--未满人】