Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q113 How can I show images that swap, or, use a Java applet, or, use plain images, depending on the browsers capability?

You are here: irt.org | FAQ | JavaScript | Image | Q113 [ previous next ]

Try something like this:

<SCRIPT LANGUAGE="JavaScript"><!--
if (document.images) {
    // do image swapping in JavaScript
}
else if (navigator.javaEnabled()) {
    // do image swapping in Java
}
else {
    // just display static images
}
//--></SCRIPT>

©2018 Martin Webb