-
JavaScript redirection to Flash site or HTML version
Hi Guys
I am a beginner to JavaScript and found a Script to redirect to either a
HTML only version of a site or another with a Flash movie integrated. I would
like to automatically redirect the visitors to the appropriate site, depending
if they have the Flash plugin installed. I used the code below, but it does
not work. The files are in subfolder as I want to make it work before it
is uploaded as the index page. I would be really happy when someone could
help with my question.
Best regards,
Megsunny
<BODY bgColor=#87acff>
<!-- Begin
var plugin=navigator.plugins["Shockwave Flash"];
if (plugin) {
window.location.href=('http://www.painterdecorator.com/try/painterdecorator.html');
}
else {
window.location.href=('http://www.painterdecorator.com/try/painterdecorator2.html');
}
// End -->
</script>
</body>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks