here you go save this as .htm file and see the effect, toggle buttons if you will
<html>
<head>
<title>New Page 1</title>
<script type="text/javascript">
window.onload = function()
{
AddButtons();
AssignClick();
}
function AddButtons()
{
for(var i=0;i<100;i++)
{
var button = document.createElement("in
var LineBreak = document.createElement("br
button.setAttribute("type"
button.setAttribute("name"
button.setAttribute("value
if(i%10 == 0 && i != 0)
{
document.body.appendChild(
}
document.body.appendChild(
}
}
function AssignClick()
{
for(var i = 0;i<document.getElementsBy
{
if(document.getElementsByT
{
document.getElementsByTagN
{
if(this.style.backgroundCo
{
this.style.backgroundColor
}
else{
this.style.backgroundColor
}
}
}
}
}
</script>
</head>
<body>
</body>
</html>
Main Topics
Browse All Topics





by: REA_ANDREWPosted on 2006-09-21 at 04:53:04ID: 17568222
the javascript way would be easy, I will write some javascript code to show you