Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: FLASH: is the JavaScript screen shake still taboo? |
From: | YouNet Web Design |
Date: | Thu, 12 Oct 2000 18:14:43 +0100 |
Hi Paul,
It's actually the same code that was posted earlier. But with a
detections scheme for netscape 4+.
<SNIP>
<script LANGUAGE="JavaScript1.2">
<!--
var agent=navigator.userAgent.toLowerCase();
netscape = (navigator.appName == "Netscape");
n4 = netscape && (parseInt(navigator.appVersion) >= 4);
explorer = (navigator.appName == "Microsoft Internet Explorer");
ie4 = explorer && (parseInt(navigator.appVersion) >= 4);
aol = (agent.indexOf("aol") != -1);
function shake() {
if (!aol) {
for (i = 20; i > 0; i--) {
for (j = 2; j > 0; j--) {
self.moveBy(0,i);
self.moveBy(i,0);
self.moveBy(0,-i);
self.moveBy(-i,0);
}
}
}
}
-->
</script>
</SNIP>
Hope this helps someone.
Mike Waldrup
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NudeGuru.com is proud to sponsor the Flasher list
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IT'S THE ART OF MONEY, HONEY!
Tips and Advice from some of the most popular Flash
artists + industry power-brokers on how to hold onto
your rights, negotiate contracts and get full value
for your work.http://www.nudeguru.com from Franke James
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
Replies
RE: FLASH: is the JavaScript screen shak, Paul Willoughby
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]