syrius Posted May 26, 2005 Report Posted May 26, 2005 Sākotnēji lapā ir novietota spiedpoga "Start". Pēc spiedpogas nospiešanas atveras jauna lapa, kuras kreisajā augšējā stūrī tiek izvadīts sarkans teksts "Sveiciens0 !". Pēc 0,5 sekundēm nākamajā rindā ar nobīdi no rindas sākuma tiek izvadīts teksts "Sveiciens1 !", u.t.t. Piemkelēt nepieciešamo nobīdi un izvadu skaitu, lai logs pa diagonāli no kreisā augšējā stūra uz labo apakšējo stūri aizpildītos ar vārdiem "SveiciensN !". Pēc diagonāles aizpildīšanas Sveicienu izvade tiek pārtraukta!
Delfins Posted May 26, 2005 Report Posted May 26, 2005 Sākotnēji lapā ir novietota spiedpoga "Start". Pēc spiedpogas nospiešanasatveras jauna lapa, kuras kreisajā augšējā stūrī tiek izvadīts sarkans teksts "Sveiciens0 !". Pēc 0,5 sekundēm nākamajā rindā ar nobīdi no rindas sākuma tiek izvadīts teksts "Sveiciens1 !", u.t.t. Piemkelēt nepieciešamo nobīdi un izvadu skaitu, lai logs pa diagonāli no kreisā augšējā stūra uz labo apakšējo stūri aizpildītos ar vārdiem "SveiciensN !". Pēc diagonāles aizpildīšanas Sveicienu izvade tiek pārtraukta! 18006[/snapback] uzdevumus tavā vietā neviens nerisinās
bubu Posted May 26, 2005 Report Posted May 26, 2005 uzdevumus tavā vietā neviens nerisinās A ja man gribās? :rolleyes:
Delfins Posted May 26, 2005 Report Posted May 26, 2005 uzdevumus tavā vietā neviens nerisinās A ja man gribās? :rolleyes: 18008[/snapback] izskatās ka tev nav ko darīt, vai esi atvaļinājumā, kolēģi !? :)
bubu Posted May 26, 2005 Report Posted May 26, 2005 izskatās ka tev nav ko darīt, vai esi atvaļinājumā, kolēģi !? :) Neesu atvaļinājumā. Bet šad un tad brīvāks brīdis gadās. A kas, tu mans kolēģis skaities?
arnico Posted May 26, 2005 Report Posted May 26, 2005 shitas kaukaads moderns cietais riekstinjsh ? :unsure:
syrius Posted May 26, 2005 Author Report Posted May 26, 2005 :o labszzz, fosrhi! masteri!!! labi paliidz!! :o
syrius Posted May 26, 2005 Author Report Posted May 26, 2005 tad kaads beigu beigaas ir tas zveeriigais skripts???
bubu Posted May 26, 2005 Report Posted May 26, 2005 (edited) <html> <head> <script type="text/javascript"> <!-- var win; var doc; function addAnimation(step) { step++; var p = doc.createElement('p'); p.appendChild(doc.createTextNode('Sveiciens'+String(step)+' !')); p.style.marginLeft = step*30; doc.body.appendChild(p); if (step<7) setTimeout('addAnimation('+String(step)+')', 500); } function doMagic() { win = window.open('about:blank', '', 'height=300px,width=300px,menubar=no,location=no,resizable=no,scrollbars=no,status=no'); doc = win.document; doc.write('<html><body></body></html>'); var p = doc.createElement('p'); p.style.color = 'red'; p.appendChild(doc.createTextNode('Sveiciens0 !')); doc.body.appendChild(p); setTimeout('addAnimation(0)', 500); } // --> </script> </head> <body> <input type="button" value="Start" onclick="doMagic()"/> </body> </html> Pārbaudīju tikai uz IE un FF. Edited May 26, 2005 by bubu
Delfins Posted May 26, 2005 Report Posted May 26, 2005 (edited) man ir cits variants :) šito logu izsauts ar jebkuriem width/height vai arī var resizot :) <script> function repaint() { document.body.innerHTML = ""; painttext(); } function painttext() { var textSize = 10; var text = "Sveiciens"; if (self.innerWidth) { frameWidth = self.innerWidth; frameHeight = self.innerHeight; } else if (document.documentElement && document.documentElement.clientWidth) { frameWidth = document.documentElement.clientWidth; frameHeight = document.documentElement.clientHeight; } else if (document.body) { frameWidth = document.body.clientWidth; frameHeight = document.body.clientHeight; } lines = Math.ceil((frameHeight-textSize)/textSize)-1; var textLen = text.length + lines.toString().length; leftMargin = Math.ceil((frameWidth-(textLen*textSize)-1)/(lines)); for ( l=0; l<lines; l++ ) { var elem = document.createElement("p"); elem.innerHTML = text+" "+l+"!"; var len = elem.innerHTML.length; elem.style.lineHeight = 1; elem.style.margin = 0; elem.style.whiteSpace = 'nowrap'; elem.style.fontFamily = 'Courier New'; elem.style.marginLeft = l * leftMargin; elem.style.padding = 0; elem.style.fontSize = textSize+"px"; document.body.appendChild(elem); } } </script> <body onload="painttext();" onresize="repaint();" style="margin:0;padding: 0;"> </body> aizmirsu taimeri... Edited May 26, 2005 by Delfins
syrius Posted May 26, 2005 Author Report Posted May 26, 2005 LIELS, LIELS PALDIES!!!!!!! :) :) :) :) :) :) :rolleyes: :rolleyes: :rolleyes:
Recommended Posts