易截截图软件、单文件、免安装、纯绿色、仅160KB

html中实现添加输入框怎么实现?

譬如:
    以前的QQ上传照片当你点击上传时会出现5个输入框,在这个输入框中你可以选择照片的路径.当还有照片要上传时就点击添加,便会再出现一个输入框你可以再输入5张照片的地址.这个怎么实现啊?有没有代码?




再发个兼容ff的:
JScript code:

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>无标题页</title>
<script type="text/javascript">
var divfiles;
function addFileInput() {
divfiles=document.getElementById("divfiles");
var filesCount=divfiles.childNodes.length;
if(filesCount==1) {
document.getElementById("remove").style.visibility="visible";
} else if(filesCount==4) {
document.getElementById("add").style.visibility="hidden";
}
var fileInput="<div>第"+(filesCount+1)+"个文件:<input name=\"myfile\" type=\"file\"/></div>";
divfiles.insertAdjacentHTML("beforeEnd",fileInput);
}
function removeLastInput() {
var filesCount=divfiles.childNodes.length;
if(filesCount==2) {
document.getElementById("remove").style.visibility="hidden";
} else if(filesCount


相关问答:

[HJ_34] 在HTML网页下,用JS 打开LINUX下的记事本

如题,在WINDOWS底下的CODE会,但在LINUX下不知道如何实现,JS的代码应该是不一样的。 求教。

分不够再加。

http://topic.csdn.net/u/20100113/08/17ba1e71-4c33-43f6-91a5-0e031c86e5ed.html
linux ......

HTML 的简单语法问题 求教

<span id="Label1">如果能看到这个标签 说明我们已经能从HTML 页面上获取了这个元素控件传递到Silverlight应用程序中 </span>
  <br />
  <input type="sub ......

HTML转PDF - Java / Java EE

各位大哥大街们,我想把HTML转换成PDF,使用的是FOP,但是报错:
java.lang.ClassCastException: org.apache.fop.layout.BlockArea cannot be cast to org.apache.fop.layout.AreaContainer
at com.test.Html2Pdf ......

这样的css写法是什么意思? - Web 开发 / HTML(CSS)

.css1 .css2 #objid {OVERFLOW: scroll;...}
.css1 .css3 {...} 

把具有共同样式的写到一起了 好维护

中间无逗号,属于样式嵌套

样式的共同的地方写在一起,可以省掉不必要的代码行~
这个就是代码 ......

关于循环输出 html代码 - Web 开发 / ASP

VBScript code:
while x<100
response.write "<div>xxxx</div>"
x= x+1
wend
循环输出 html代码
代码总是以下面的形式那样 在一行上的
HTML code:
<div>xxxx</div> ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号