All pastes #730781 Raw Edit

Stuff

public html v1 · immutable
·published 2007-10-09 14:49 UTC
rendered paste body
<html><head><script type="text/javascript"><!--	function zeichenzaehlertitel(obj, max, id) {		document.getElementById('titel[' + id + ']').innerHTML=obj.value.length + "/" + max + "Zeichen";	}	function zeichenzaehlerbeschreibung(obj, max, id) {		document.getElementById('beschreibung[' + id + ']').innerHTML=obj.value.length + "/" + max + "Zeichen";	}	function addMovieInfoItem(index) {		var ind = index - 1;		var n=0;		var imagescount=document.forms[0].elements.infoCount.value;		for (var i=0;i<imagescount;i++){			var id=i;			if (document.getElementById(id)==null) {				n++;			}		}		var table = document.getElementById('movieInfoItemsTable');		var index = table.rows.length;		var content = 			'<tr><td>Video :</td><td colspan="2"> #' + (index + 1) + '</td></tr>' +			'<tr><td>Titel:</td><td><input type="text" onkeyup="zeichenzaehlertitel(this,40,' + index + ')" onchange="zeichenzaehlertitel(this,40,' + index + ')" name="titel[' + index + ']" /></td><td><div id="titel[' + index + ']">0/40 Zeichen</div></td></tr>' +			'<tr><td>Beschreibung:</td><td><textarea cols="50" rows="5" type="text" onkeyup="zeichenzaehlerbeschreibung(this,200,' + index + ')" onchange="zeichenzaehlerbeschreibung(this,200,' + index + ')" name="beschreibung[' + index + ']"></textarea></td><td><div id="beschreibung[' + index + ']">max. 0/200 Zeichen</div></td></tr>' +			'<tr><td>Schlagworte:</td><td colspan=2"><textarea name="inhalt[' + index + ']" cols="50" rows="10"></textarea></td></tr>' +			'<tr><td>Filmautor:</td><td colspan="2"><input type="text" name="autor[' + index + ']" /></td></tr>' +			'<tr><td>Kommentare:</td><td colspan="2"><textarea name="inhalt[' + index + ']" cols="50" rows="10"></textarea></td></tr>' +			'<tr><td colspan="3"><a href="#" onclick="addMovieInfoItem(' + index + '); return false;">mehr</a></td></tr>';				newRow = table.insertRow(table.rows.length);		newRow.insertCell(0);		newRow.cells[0].innerHTML+= content;	}//--></script></head><body><form action="" method="post">    <table id="movieInfoItemsTable" width="500" border="1">	</table>	<input type="submit" value="Upload" />	<input type="reset" value="alles zur&uuml;cksetzen (vorsicht)" />	<input type="hidden" name="infoCount" value="1" /></form><script type="text/javascript"><!--	addMovieInfoItem(0);--></script></body></html>