PREZENTACIA SPRAV

ID
Nazov / Name:
Popis / Description:
Dlzka / Length:
Testovane pod / Tested under:

 

175
p175.html / p175.zip
Efektna prezentacia roznych sprav
26997b
NN 4.04

UKAZKA / CLICK HERE

Zdrojovy tvar / Source code:

<Html> <head> <title>JavaScript DESTINATION - P175</title> </head> <script> <!-- var AfterMonkeyOnTime = 300; var story1Top = 50; var story2Top = 50; var story1Left = 50; var story2Left = 300; var testfoo = "got it"; function evilStart() { story1 = document.layers['story1']; storyBug1 = document.layers.story1.layers['storyBug1']; storyHeadline1 = document.layers.story1.layers['storyHeadline1']; storyText1 = document.layers.story1.layers['storyText1']; story2 = document.layers['story2']; storyBug2 = document.layers.story2.layers['storyBug2']; storyHeadline2 = document.layers.story2.layers['storyHeadline2']; storyText2 = document.layers.story2.layers['storyText2']; story3 = document.layers['story3']; storyBug3 = document.layers.story3.layers['storyBug3']; storyHeadline3 = document.layers.story3.layers['storyHeadline3']; storyText3 = document.layers.story3.layers['storyText3']; story4 = document.layers['story4']; storyBug4 = document.layers.story4.layers['storyBug4']; storyHeadline4 = document.layers.story4.layers['storyHeadline4']; storyText4 = document.layers.story4.layers['storyText4']; Webmonkey = document.layers['Webmonkey']; monkey = document.layers.Webmonkey.layers['monkey']; WMtitle = document.layers.Webmonkey.layers['WMtitle']; worked = false; current = 6; window.frameRate = 20; window.flickerFree = true; workLoop(); monkeyMove(); monkeyOn(); } function workLoop() { window.focus(); workWait = setTimeout('if (!worked) workLoop()', 100); } function monkeyOn() { Webmonkey.offset(0,10); if (Webmonkey.top <0) WebmonkeyTime = setTimeout('clearTimeout(WebmonkeyTime);monkeyOn()', 10); else AfterMonkeyOnTimeout = setTimeout('clearTimeout(AfterMonkeyOnTimeout);logoWipe()', AfterMonkeyOnTime); } function logoWipe() { WMtitle.clip.right += 20; if (WMtitle.clip.right < 409) { WMTitleWipeTimeout = setTimeout('clearTimeout(WMTitleWipeTimeout);logoWipe()', 10); } else { BulletEnterTimeout = setTimeout('clearTimeout(BulletEnterTimeout);bullet1Enter()', 10); } } function bullet1Enter() { story1.moveTo(screenWidth, screenHeight); story1.visibility = 'SHOW'; storyBug1.visibility = 'SHOW'; Bullet1MoveToTimeout = setTimeout('clearTimeout(Bullet1MoveToTimeout);bullet1MoveTo()', 10); } function bullet1MoveTo() { if (story1.left > 10) { xVector = -20; } else { xVector = 0; } if (story1.top > 80) { yVector = -10; } else { yVector = 0; } var inPlace = xVector + yVector; if (inPlace <0) { if (story1.left < 10) { xNudge = 10 - story1.left; story1.offset(xNudge, 0); } if (story1.top < 80) { yNudge = 80 - story1.top; story1.offset(0, yNudge); } story1.offset(xVector, yVector); redoTimeout = setTimeout('clearTimeout(redoTimeout);bullet1MoveTo()', 10); } else { headline1AppearTimeout = setTimeout('clearTimeout(headline1AppearTimeout);headline1Appear()', 500); } } function headline1Appear() { storyHeadline1.visibility = 'SHOW'; storyHeadline1.clip.right += 20; if (storyHeadline1.clip.right < 400) { redoTimeout = setTimeout('clearTimeout(redoTimeout);headline1Appear()', 10); } else { storyText1AppearTimeout = setTimeout('clearTimeout(storyText1AppearTimeout);storyText1Appear()', 1000); } } function storyText1Appear() { storyText1.visibility = 'SHOW'; storyText1.clip.bottom += 20; if (storyText1.clip.bottom < 400) { redoTimeout = setTimeout('clearTimeout(redoTimeout);storyText1Appear()', 10); } else { storyText1ExitTimeout = setTimeout('clearTimeout(storyText1ExitTimeout);storyText1Exit()', 2000); } } function storyText1Exit() { storyText1.clip.bottom -= 20; if (storyText1.clip.bottom > 0) { redoTimeout = setTimeout('clearTimeout(redoTimeout);storyText1Exit()', 10); } else { headline1ExitTimeout = setTimeout('clearTimeout(headline1ExitTimeout);headline1Exit()', 10); } } function headline1Exit() { storyHeadline1.clip.right -= 20; if (storyHeadline1.clip.right > 0) { redoTimeout = setTimeout('clearTimeout(redoTimeout);headline1Exit()', 10); } else { bullet1ExitTimeout = setTimeout('clearTimeout(bullet1ExitTimeout);bullet1Exit()', 1000); } } function bullet1Exit() { if (story1.top <screenHeight) { story1.offset(0, 30); redoTimeout = setTimeout('clearTimeout(redoTimeout);bullet1Exit()', 10); } else { storyBug1.visibility = 'HIDE'; bullet2EnterTimeout = setTimeout('clearTimeout(bullet2EnterTimeout);bullet2Enter()', 2000); } } function bullet2Enter() { story2.moveTo(screenWidth, screenHeight); story2.visibility = 'SHOW'; storyBug2.visibility = 'SHOW'; Bullet2MoveToTimeout = setTimeout('clearTimeout(Bullet2MoveToTimeout);bullet2MoveTo()', 10); } function bullet2MoveTo() { if (story2.left > 10) { xVector = -20; } else { xVector = 0; } if (story2.top > 80) { yVector = -10; } else { yVector = 0; } var inPlace = xVector + yVector; if (inPlace <0) { if (story2.left < 10) { xNudge = 10 - story2.left; story2.offset(xNudge, 0); } if (story2.top < 80) { yNudge = 80 - story2.top; story2.offset(0, yNudge); } story2.offset(xVector, yVector); redoTimeout = setTimeout('clearTimeout(redoTimeout);bullet2MoveTo()', 10); } else { headline2AppearTimeout = setTimeout('clearTimeout(headline2AppearTimeout);headline2Appear()', 500); } } function headline2Appear() { storyHeadline2.visibility = 'SHOW'; storyHeadline2.clip.right += 20; if (storyHeadline2.clip.right < 400) { redoTimeout = setTimeout('clearTimeout(redoTimeout);headline2Appear()', 10); } else { storyText2AppearTimeout = setTimeout('clearTimeout(storyText2AppearTimeout);storyText2Appear()', 1000); } } function storyText2Appear() { storyText2.visibility = 'SHOW'; storyText2.clip.bottom += 20; if (storyText2.clip.bottom < 400) { redoTimeout = setTimeout('clearTimeout(redoTimeout);storyText2Appear()', 10); } else { storyText2ExitTimeout = setTimeout('clearTimeout(storyText2ExitTimeout);storyText2Exit()', 2000); } } function storyText2Exit() { storyText2.clip.bottom -= 20; if (storyText2.clip.bottom > 0) { redoTimeout = setTimeout('clearTimeout(redoTimeout);storyText2Exit()', 10); } else { headline2ExitTimeout = setTimeout('clearTimeout(headline2ExitTimeout);headline2Exit()', 10); } } function headline2Exit() { storyHeadline2.clip.right -= 20; if (storyHeadline2.clip.right > 0) { redoTimeout = setTimeout('clearTimeout(redoTimeout);headline2Exit()', 10); } else { bullet2ExitTimeout = setTimeout('clearTimeout(bullet2ExitTimeout);bullet2Exit()', 1000); } } function bullet2Exit() { if (story2.top <screenHeight) { story2.offset(0, 30); redoTimeout = setTimeout('clearTimeout(redoTimeout);bullet2Exit()', 10); } else { storyBug2.visibility = 'HIDE'; headline2AppearTimeout = setTimeout('clearTimeout(headline2AppearTimeout);bullet3Enter()', 500); } } function bullet3Enter() { story3.moveTo(screenWidth, screenHeight); story3.visibility = 'SHOW'; storyBug3.visibility = 'SHOW'; Bullet3MoveToTimeout = setTimeout('clearTimeout(Bullet3MoveToTimeout);bullet3MoveTo()', 10); } function bullet3MoveTo() { if (story3.left > 10) { xVector = -20; } else { xVector = 0; } if (story3.top > 80) { yVector = -10; } else { yVector = 0; } var inPlace = xVector + yVector; if (inPlace <0) { if (story3.left < 10) { xNudge = 10 - story3.left; story3.offset(xNudge, 0); } if (story3.top < 80) { yNudge = 80 - story3.top; story3.offset(0, yNudge); } story3.offset(xVector, yVector); redoTimeout = setTimeout('clearTimeout(redoTimeout);bullet3MoveTo()', 10); } else { headline3AppearTimeout = setTimeout('clearTimeout(headline3AppearTimeout);headline3Appear()', 500); } } function headline3Appear() { storyHeadline3.visibility = 'SHOW'; storyHeadline3.clip.right += 20; if (storyHeadline3.clip.right < 400) { redoTimeout = setTimeout('clearTimeout(redoTimeout);headline3Appear()', 10); } else { storyText3AppearTimeout = setTimeout('clearTimeout(storyText3AppearTimeout);storyText3Appear()', 1000); } } function storyText3Appear() { storyText3.visibility = 'SHOW'; storyText3.clip.bottom += 20; if (storyText3.clip.bottom < 400) { redoTimeout = setTimeout('clearTimeout(redoTimeout);storyText3Appear()', 10); } else { storyText3ExitTimeout = setTimeout('clearTimeout(storyText3ExitTimeout);storyText3Exit()', 2000); } } function storyText3Exit() { storyText3.clip.bottom -= 20; if (storyText3.clip.bottom > 0) { redoTimeout = setTimeout('clearTimeout(redoTimeout);storyText3Exit()', 10); } else { headline3ExitTimeout = setTimeout('clearTimeout(headline3ExitTimeout);headline3Exit()', 10); } } function headline3Exit() { storyHeadline3.clip.right -= 20; if (storyHeadline3.clip.right > 0) { redoTimeout = setTimeout('clearTimeout(redoTimeout);headline3Exit()', 10); } else { bullet3ExitTimeout = setTimeout('clearTimeout(bullet3ExitTimeout);bullet3Exit()', 1000); } } function bullet3Exit() { if (story3.top <screenHeight) { story3.offset(0, 30); redoTimeout = setTimeout('clearTimeout(redoTimeout);bullet3Exit()', 10); } else { storyBug3.visibility = 'HIDE'; bullet4EnterTimeout = setTimeout('clearTimeout(bullet4EnterTimeout);bullet4Enter()', 500); } } function bullet4Enter() { story4.moveTo(screenWidth, screenHeight); story4.visibility = 'SHOW'; storyBug4.visibility = 'SHOW'; Bullet4MoveToTimeout = setTimeout('clearTimeout(Bullet4MoveToTimeout);bullet4MoveTo()', 10); } function bullet4MoveTo() { if (story4.left > 10) { xVector = -20; } else { xVector = 0; } if (story4.top > 80) { yVector = -10; } else { yVector = 0; } var inPlace = xVector + yVector; if (inPlace <0) { if (story4.left < 10) { xNudge = 10 - story4.left; story4.offset(xNudge, 0); } if (story4.top < 80) { yNudge = 80 - story4.top; story4.offset(0, yNudge); } story4.offset(xVector, yVector); redoTimeout = setTimeout('clearTimeout(redoTimeout);bullet4MoveTo()', 10); } else { headline4AppearTimeout = setTimeout('clearTimeout(headline4AppearTimeout);headline4Appear()', 500); } } function headline4Appear() { storyHeadline4.visibility = 'SHOW'; storyHeadline4.clip.right += 20; if (storyHeadline4.clip.right < 400) { redoTimeout = setTimeout('clearTimeout(redoTimeout);headline4Appear()', 10); } else { storyText4AppearTimeout = setTimeout('clearTimeout(storyText4AppearTimeout);storyText4Appear()', 1000); } } function storyText4Appear() { storyText4.visibility = 'SHOW'; storyText4.clip.bottom += 20; if (storyText4.clip.bottom < 400) { redoTimeout = setTimeout('clearTimeout(redoTimeout);storyText4Appear()', 10); } else { storyText4ExitTimeout = setTimeout('clearTimeout(storyText4ExitTimeout);storyText4Exit()', 2000); } } function storyText4Exit() { storyText4.clip.bottom -= 20; if (storyText4.clip.bottom > 0) { redoTimeout = setTimeout('clearTimeout(redoTimeout);storyText4Exit()', 10); } else { headline4ExitTimeout = setTimeout('clearTimeout(headline4ExitTimeout);headline4Exit()', 10); } } function headline4Exit() { storyHeadline4.clip.right -= 20; if (storyHeadline4.clip.right > 0) { redoTimeout = setTimeout('clearTimeout(redoTimeout);headline4Exit()', 10); } else { bullet4ExitTimeout = setTimeout('clearTimeout(bullet4ExitTimeout);bullet4Exit()', 1000); } } function bullet4Exit() { if (story4.top <screenHeight) { story4.offset(0, 30); redoTimeout = setTimeout('clearTimeout(redoTimeout);bullet4Exit()', 10); } else { storyBug4.visibility = 'HIDE'; headline4AppearTimeout = setTimeout('clearTimeout(headline4AppearTimeout);bullet1Enter()', 500); } } function iterateObj(object, objectName) { for (var prop in object) { document.write("<b>" + objectName + "." + prop + ":</b> " + object[prop] + "<br>\n"); } } function monkeyMove() { Webmonkey.moveTo(logoplace, -191); } // --> </script> <body bgcolor="#ffff00" onload="evilStart()"> <img name="spacergif" SRC="images/night/spacer.gif" width="100%" height="100%"> <script> <!-- spacergif = document.images['spacergif']; screenWidth = spacergif.width; screenHeight = spacergif.height; var logoplace = spacergif.width - 409; // --> </script> <layer name="story1" left="10" top="80" clip="0,0,400,400" width="480" height="400" visibility="HIDE"> <layer name="storyBug1" left="0" top="0" clip="0,0,32,32" visibility="HIDE"> <img SRC="images/night/bullet.gif"> </layer> <layer name="storyHeadline1" visibility="HIDE" left="40" top="0" clip="0,0,0,80" width="210" height="80"> <h3>Contractor Needs Help on Shopping Cart</h3> </layer> <layer name="storyText1" visibility="HIDE" left="40" top="60" clip="0,0,360,0" width="360" height="360"> <p> "I only have a week left," says consultant Arnold Pahootiecheese. "I don't know what I'm going to do. I took the this job thinking it would just take a couple of days. You know, do it my spare time. It's just not that easy." <p> Pahootiecheese, a bus driver for the Moosejaw School district, was hired by the Province of Saskatchewan to create, "Western Provinces Shop!" an online shopping mall. It began as a cgi project to make a few extra bucks, but the driver has been overwhelmed by the demands of making an interactive shopping cart program for such a massive site. "It's like I've created a common gateway interface with the devil." </layer> </layer> <layer name="story2" visibility="HIDE" top="80" clip="0,0,400,400" width="480" height="400" visibility="HIDE"> <layer name="storyBug2" left="0" top="0" clip="0,0,32,32" visibility="HIDE"> <img SRC="images/night/bullet.gif"> </layer> <layer name="storyHeadline2" left="40" top="0" clip="0,0,0,80" width="210" height="80" visibility="HIDE"> <h3>Silent Majority: We Want Text To Blink</h3> </layer> <layer name="storyText2" visibility="HIDE" left="40" top="60" clip="0,0,360,0" width="360" height="360"> <p> As unlikely as it seems, a majority of users of the World Wide Web want blink tags. So says an extensive study recently released by academics and economists. <p> The Webmonkey Institute's report, "The Silent Blink Movement" included data from a yearlong study of Web-active households made in conjunction with the University of Aardvark's Cognitive Sciences Department. <p> Dr. Milki Porridge of UA says, "We were quite surprised by our findings. Not only do %89 of household members polled desire not some, but all of their text to blink, but also their favorite color is teal." </layer> </layer> <layer name="story3" left="10" top="80" clip="0,0,400,400" width="480" height="400" visibility="HIDE"> <layer name="storyBug3" left="0" top="0" clip="0,0,32,32" visibility="HIDE"> <img SRC="images/night/bullet.gif"> </layer> <layer name="storyHeadline3" visibility="HIDE" visibility="HIDE" left="40" top="0" clip="0,0,0,80" width="210" height="80"> <h3>Teen Fears Mailbombs; Needs One</h3> </layer> <layer name="storyText3" visibility="HIDE" visibility="HIDE" left="40" top="60" clip="0,0,360,0" width="360" height="360"> <p> Some teens are so afraid of Internet terrorism that they feel that the only answer is to arm themselves with the very weapons they fear. <p> A 15-year old usenet user who asked not to be identified said that he's so afraid of mailbombs that he'd "really like to learn how to do them." The youngster said the problems began soon after he contacted someone he referred to repeatedly as, "that kid with cancer who wants email." <p> This 10th-grader's answer to his fears is to ask around for instructions for creating a mail bomb he can weild as a deterrent. "The flaming just doesn't seem to stop." </layer> </layer> <layer name="story4" left="10" top="80" clip="0,0,400,400" width="480" height="400" visibility="HIDE"> <layer name="storyBug4" left="0" top="0" clip="0,0,32,32" visibility="HIDE"> <img SRC="images/night/bullet.gif"> </layer> <layer name="storyHeadline4" visibility="HIDE" left="40" top="0" clip="0,0,0,80" width="210" height="80"> <h3>Action Team Report - Part IV</h3> </layer> <layer name="storyText4" visibility="HIDE" left="40" top="60" clip="0,0,360,0" width="360" height="360"> <p> As part of our current series, Webmonkey Action Team reaporter Ivana Quilt checks in with her work at as a production editor at a well-known large database company - Ed. <p> I asked my new supervisor if we included doctype definitions as a policy. I tried not betray my surpise when he said that she had no idea what I'd been asking about. After gaining access to company documents on the subject the Action Team found out that not only did no one at OffGass, Inc. mention the secret "no doctype definition", but it seemed after months of undercover work that not a single employee had ever heard of SGML. At presstime, OffGass never hadn't returned our calls. </layer> </layer> <layer name="Webmonkey" left="0" top="-191" width="409" height="191" clip="0,0,409,191" visiblity="SHOW"> <layer name="monkey" left="104" top="0" clip="0,0,300,300" visibility="INHERIT"> <img name="monkeyPict" SRC="images/night/monkey.gif" width=305" height="191"> </layer> <layer name="WMtitle" left="0" top="33" clip="0,0,0,40" visibility="INHERIT"> <img SRC="images/night/webmonkey.gif" width="247" height="40"> </layer> </layer> </body> </html>
[ Navrat / BACK ]