-
Avoiding grey box
Hi,
Is there a way (perhaps using javascript) to have an image of the same size appear in lieu of the java applet, whenever the user doesn't have java enabled to avoid the ugly gray rectangle?
Thanks!
Palosanto
-
err....don't think so. It's probably best to have a 'Java-enabled' version of your website and a 'non-Java' version. That's the simplest solution.
ArchAngel.
O:-)
-
Thanks Arcangel.
Actually I figured it out since I posted the message.
With Javascript:
<SCRIPT language="JavaScript">
<!--
if (navigator.javaEnabled()) {
document.open();
document.write('<APPLET archive="Appletname.jar" code="blablah.class" width="377" height="56" alt="3D Graphics" name="3D Graphics">'); ....
each line within a document.write expression ....
. . .
. . .
document.close();
}
else {
document.open();
document.write(' ');
document.close();
}
//-->
</SCRIPT>
Regards
-
ArchAngel.
O:-)
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