Login | Register   
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Java
Expertise: Intermediate
Mar 10, 2000

Providing an Alternative Image for the Non-Java Viewer

You've taken the trouble to write a Java applet, so you naturally want everyone to see it. Unfortunately, there are some viewers that still don't have a Java-capable browser or their OS doesn't support Java. When they attempt to load your page, all they will see a gray box. To solve this problem, you can specify an image to display in place of the applet. Use the <IMG> tag inside the <APPLET> tag as shown below:
 
<APPLET CODEBASE="MyAppletFolder"
CODE=Java.class
WIDTH=100
HEIGHT=200>
<IMG SRC=Alternate.gif ALT="Upgrade to Internet Explorer to view this Java 
applet.">
</APPLET>
Manoj Singh
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap