Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function gebaut(){
- zaehler = 1;
- url = "image/haus";
- while (zaehler < 70) {
- feldName = "feldG"; if (zaehler < 10){feldName = "feldG0";}
- feldid = feldName + zaehler;
- if (zaehler == 1){bild = feld01;}
- if (zaehler == 2){bild = feld02;}
- if (zaehler == 3){bild = feld03;}
- if (feld01 != "0"){document.getElementById(feldid).style.visibility = "visible"; document.getElementById(feldid).style.backgroundImage = "url('"+url+bild+".png"+"')";}
- zaehler++;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement