脚本说明:第一步:把如下代码加入<head>区域中:<script language=javascript><!--px=400;py=200obs = new array(13)function ob () {for (i=0; i<13; i++) {if (document.all) obs[i]=new array (eval('ob'+i).style,-100,-100)else obs[i] = new array (eval('document.ob'+i),-100,-100)}}function cl(a,b,c){if (document.all) {if (a!=0) b+=-1eval('c'+a+'.style.pixeltop='+(py+(c)))eval('c'+a+'.sty...
<html><head><title>xyprogresslg xo</title><script>function xyprogresslg(xyid){this.xyprogressid = 'oprogress' + math.random().tostring().substr(2, 10) + xyid;this.max = 0;this.min = 0;this.width = 100;this.height = 20;this.currpos = 0;this.outerbordercolor = "black";this.outerbackcolor = "white";this.innerbordercolor = "";this.innerbackcolor = "blue";this.textcolo...
<!--***************dtable.htc*******************--><method name=addnew><method/><method name=del><method/><method name=lighton><method/><property name=nowrow><property/><property name=overid><property/><property name=myid><property/><property name=color0><property/><property name=color1><property/>...
在javascript版经常看到有人关于在线可编辑表格的问题,于是整理了出来。主要功能:1.动态增加行2.可以点击表格左边的按钮删除当前行,如果该行有数据会要求用户确认删除3.表格可以实现动态编辑4.通过点击某一行可以实现高亮度显示源代码:==<html><head><meta content="text/html; charset=gb2312" http-equiv=content-type><style type=text/css>body {background: white; color: black; font-family: verdana,arial,helvetica; font-size: 12px}.tabledata {background: white; border-bottom: white 1px dashed...
ie支持的html元素的disable在netscape4.76中的实现1. 相关的html元素(1) text , edit , password , textarea(2) radio , checkbox(3) select2. ie中的写法(1) document.form_name.text_name.disabled = true;document.form_name.edit_name.disabled = true;document.form_name.password_name.disabled = true;document.form_name.textarea_name.disabled = true;(2) document.form_name.radio_name[i].disabled = true;document.form_name.checkbox_nam...
<html><head><meta http-equiv="content-type" content="text/html; charset=gb2312"><title>自定义鼠标右键弹出式菜单</title><style type="text/css"><!--.div1 {border-top:buttonface 1px solid;border-left:buttonface 1px solid;border-bottom:windowframe 1px solid;border-right:windowframe 1px solid;}.div2 {border-top:window 1px solid;border-left:window 1px solid;border-bottom:butto...
我们在做网页的时候,有时候会需要一个可以接受输入的列表框,但是html中的<select>元素不能达到这个功能有一个方法就是用activex控件,但这样虽然很方便,有些人却不喜欢……_方法如下:<form><object classid=clsid:8bd21d30-ec42-11ce-9e0d-00aa006002f3 id=mdccombo1 name=mdccombo1 viewastext><param name="variouspropertybits" value="746604571"><param name="backcolor" value="2147483653"><param name="forecolor" value="2147483656"><param name="maxleng...
<!doctype html public "-//w3c//dtd html 4.0 transitional//en"><!-- javascript 实现动态增加、删除表单域 --><html><head><title> new document </title><script language="javascript"><!--var i=0function add(){var temp = document.body.children.item(0).rows.item(3).cells.item(0).children.item(0).rows.item(0).cells.item(0).children.item(0).children.item(0)temp.insertrow(tem...
javascript窗口功能指南之命名窗口和框架(作者:听风编译 2001年01月19日 11:35) 当你创建一个框架结构的文档时,<frame>标记的name属性定义了每一个框架的名字,如下: <frameset> <frame name="left" src="toolbar.html"> <frame name="right" src="index.html"> </frameset> 在例子中,文档包含2个框架:left和right。在文档toolbar.html中,链接代码就象下面的一样: <a href="about.html" target="right">about us</a> <a href="feedback.html" target="right">f...
javascript窗口功能指南之打开一个新窗口(作者:听风编译 2001年01月19日 11:35) 当你点击一个简单的链接打开一个新窗口时,你没有对新窗口任何控制权。浏览器以默认的功能打开新窗口。此外,你也不能使用javascript引用新窗口的window对象,因此你不可能操纵新窗口的属性。看看下面的javascript语句: window.open("http://www.docjs.com/", "win"); 这条语句打开一个新窗口,显示页面http://www.docjs.com/。 新窗口的名字被赋值为 "win"。window对象的open()方法的基本语法是: window.open(surl, sname); 2个参数都是可选的,如果不想指定url或者窗口名称,就使用空字符串(""). surl 是一个字符串,它指定了要显示文档的url。如果不指定url,就...
Java Asp PHP .Net XML C/C++ CGI VB Jsp J2ee J2se J2me EJB Servlet Tomcat Resin Struts Weblogic Eclipse ANT GUI JMS Web servise IDEA Webphere Hibernate Spring Jboss Applet Swing Socket Javamail Perl Ajax P2P 安全 模式 框架 测试 开源 游戏
Windows XP Windows 2000 Windows 2003 Windows Me Windows 9.x Linux UNIX 注册表 操作系统 服务器 应用服务器