Jump to content
php.lv forumi

Gļuks ar margin-bottom:


Sasa

Recommended Posts

[css]

input#z{ BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid; BORDER-LEFT: 1px solid; BORDER-BOTTOM: 1px solid; margin-bottom:11px; PADDING-RIGHT: 3px; PADDING-LEFT: 3px; FONT-SIZE: 8pt; OVERFLOW: hidden; FONT-FAMILY: Tahoma; }

[/css]

 

jaunā input elementa izveidošana:

 var lyr = document.getElementById('input_area'); //layer to create under
  var newEl = document.createElement('input'); //element type
  var newEl_1 = document.createElement('<br>'); //element type <br>
  newEl.setAttribute('id','z');
  newEl.setAttribute('name','attach'+i)
  newEl.setAttribute('type','file')
  newEl.setAttribute('size','35')
  newEl.setAttribute('style','padding:2px')
 // newEl.onchange= function () { addElement(); }
  lyr.appendChild(newEl);
  lyr.appendChild(newEl_1);

 

forma kurā pievienojas:

<form name="frmSend" method="POST" enctype="multipart/form-data" action="uploadTester.asp" onSubmit="return onSubmitForm();">
  <DIV id=input_area style="LEFT: 16.405cm;  POSITION: absolute; TOP:2.37cm " >   
  <input id='z' name="attach1" type="file" size=35 style="BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid; Z-INDEX: 1; BORDER-LEFT: 1px solid; BORDER-BOTTOM: 1px solid; "  > <br>   
  </DIV> 	 
<input type=submit value="Upload">
</form>

Link to comment
Share on other sites

×
×
  • Create New...