Oh gio-mx quanto rompi
Here the masterpiece is
Occhio che c'è il copyright![]()
BugsCodice PHP:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>MyTextBox © whisher :)</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script language="JavaScript" type="text/JavaScript">
var count = 0;
function createInputText()
{
var myinput = document.createElement("input");
myinput.setAttribute("id", "myinput");
myinput.setAttribute("type", "text");
document.getElementById("frm").appendChild(myinput);
}
function createTextBox()
{
var count = getCheckBox();
if(count)
{
for(j = 0; j < count; j++)
{
document.getElementById("frm").removeChild(document.getElementById("mycheckbox" + j));
}
}
var myinput = document.getElementById("myinput");
var value = myinput.value;
for(i = 0; i < value; i++)
{
var mytextBox = document.createElement("input");
mytextBox.setAttribute("type", "checkbox");
mytextBox.setAttribute("id", "mycheckbox" + i);
mytextBox.setAttribute("value", i);
document.getElementById("frm").appendChild(mytextBox);
}
}
function getCheckBox()
{
var arrayinput = document.getElementsByTagName("input");
var string = "";
var myTextBox = new Array();
if(count!=0)
{
count = 0;
}
for(i = 0; i < arrayinput.length; i++)
{
string = arrayinput[i].getAttribute("type");
if(string.indexOf("checkbox")!=-1)
{
count++;
}
}
return count;
}
window.onload = function()
{
createInputText();
var myinput = document.getElementById("myinput");
myinput.onblur = function()
{
createTextBox();
}
}
</script>
</head>
<body>
<form id="frm" action="mypage.php" method="post" name="frm">
</form>
</body>
</html>
Not bloody likely
Scherzi a parte se la usi davvero dacci
una profonda controllata.
![]()


Rispondi quotando