Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var vytvoreno=0 ;
- function zmen(){
- var pole = document.createElement("div");
- pole.style.width="200px";
- pole.style.height="200px";
- pole.style.background="black";
- document.body.appendChild(pole);
- var divy =
- "<div style='height:50px;width:50px;background:aqua;float:left'onclick='pole1()'></div>" +
- "<div style='height:50px;width:50px;background:green;float:left'onclick='pole2()'></div>" +
- "<div style='height:50px;width:50px;background:red;float:left'onclick='pole3()'></div>" +
- "<div style='height:50px;width:50px;background:grey;float:left'onclick='pole4()'></div>"
- pole.innerHTML = divy;
- if (vytvoreno==O){
- zmen()
- }
- else
- {
- alert(uz je vytvoren );
- }
- }
Add Comment
Please, Sign In to add comment