1 2 3 4 5 6 7 8 9 10 11 12 |
<!-- Weiterleiten an andere Web Seite --> <html> <head> <title>Weiterleitung</title> <script type="text/javascript"> <!-- window.location = "http://www.mywebsite.com/"; --> </script> </head> </html> |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
<!-- sleep function --> function sleep(msTime){ var EndTime = (new Date()).getTime() + msTime; while((new Date()).getTime() < EndTime) {}; } <script type="text/javascript"> <!-- sleep(100); --> </script> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
<!-- Change picture onmouseover --> <html> <head> <title>JavaScript</title> <script type="text/javascript"> <!-- function changePic(pic_name, pic_src) { document[pic_name].src = pic_src; } --> </script> </head> <body> <img name="pic" src="pic1.jpg" onmouseover="changePic('pic', 'pic2.jpg')" onmouseout="changePic('pic', 'pic1.jpg')" /> </body> </html> |