摘要:实现思想:在页面内放入一个Div,调用lable的onMouseover,onMouseout 事件,然后用JS去实现显示部分内容在原有位置还是显示全部内容在Div中。 后台代码: stringanswer=e.Row.Cells[10].Text;if(answer.Length>5){e.Row.Cells[10].Text=string.Format("<labelonMouseover=\"ddrivetip('{0}','#FFFFE1',300)\"onMouseout='hideddrivetip(
阅读全文
随笔分类 - JavaScript
摘要:概述: 浏览器的状态栏里出现一个字接一个字往左跑的欢迎语!。 代码: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1 67
阅读全文
摘要:概述: 给页面加保护,防止右击复制 代码: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 仅供浏览!谢谢!\n\n若有问题请与我联系
阅读全文
摘要:概述: 在网页源代码中加入下面的代码,则该窗口将在20秒钟之后自动关闭!这与跳出式小窗口配合使用是再好不过啦!代码中“i=20”表示关闭的延迟时间为20秒,可任意修改。 代码: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->...
阅读全文
摘要:概述: 点击即可把你的网站设置为浏览器的起始页。 代码: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->设为首页
阅读全文
摘要:概述: 点击即可把你的网站添加到浏览器的收藏菜单下。 代码: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->收藏本站
阅读全文
摘要:概述: 让屏幕抖动一阵。 代码: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
阅读全文
摘要:概述: 点击鼠标右键,收藏夹就会自动打开,也等于是禁止了右键。 代码: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
阅读全文
摘要:概述: 年月日都是用全中文显示。 代码: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 结果: 公元二零零三年九月二十四日
阅读全文
摘要:概述: 有影子的时钟。 代码: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
阅读全文
摘要:概述: 显示你在本站停留的时间。 代码: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->您在本站逗留了 结果: 您在本站逗留了
阅读全文
摘要:概述: 六种风格时间显示。 代码: Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 效果: 风格一: 星期三,9月24日,2008年 ...
阅读全文
摘要:概述: 显示访客的浏览器类型。 代码: Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 结果: 我猜,你的浏览器是Microsoft Internet Explorer,对不对?
阅读全文
摘要:概述: 显示访客的屏幕分辨率 代码: Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 结果: 我猜,你的屏幕分辨率是1024x768,对不对?
阅读全文
摘要:Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
阅读全文
摘要:概述: 跟随页面弹出的窗口在规定时间内自动关闭,而且不作任何提示。 功能: 注意看弹出的那个窗口,它将在10秒钟后自动关闭! 代码: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 然后,在相同目录下新建一个popup.h...
阅读全文
摘要:概述: 想在后台cs页面得到前台页面aspx中html控件input输入的值. 解决方法如下: 1.用Request["name"].toString();. 前台代码如下: Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->...
阅读全文
摘要:JavaScript验证正则表达式大全 匹配中文字符的正则表达式: [\u4E00-\uFA29] 评注:匹配中文还...
阅读全文