Click to See Complete Forum and Search --> : Default image if using java disabled browser?


bjnorland
10-17-2006, 12:37 PM
I have a java applet using 4 images that display by rotating in from one to the next - but - if someone cannot view it because java is disabled on their browser or whatever the case may be... is there a way to still have a default (static) image shown there in place of the applet?

Waylander
10-17-2006, 08:50 PM
Ive done this with javascript and css, Im not sure if you can do it with an applet.

What ya do is you put the static image there first, then in the script getting the id of the containter that the image is in, then you delete the html nodes inside it and add in new nodes that contain the slide show.

Not sure if you can do something like that with an applet.... never used them cos I dont really like them. I suppose if it cant you could use Javascript to put the applet into the container, cos i mean they gotta have java installed any way to use the applet...

Seems to me like an applet is a bit over the top, why not just download an image transition slide show then read about the suckerfish way to create hook on javascripts.

Waylandzor.

felgall
10-18-2006, 12:26 AM
If you nest an image tag inside of the object tag that embeds your Java then the object tag should run the Java if Java is enabled and if it is not then the image defined by the image tag should display in its place. At least that is my understanding of how the object tag works.