Forum Moderators: phranque

Message Too Old, No Replies

Using applet code

Calling an applet code externally into HTML file

         

Neni

9:16 am on Aug 18, 2001 (gmt 0)



I built a site with a scrolling News. I used applet code of about 10 lines which is controlled by an external class file for scrolling.

In my site there are about 50 html pages.

I want to know is it possible to call the 10 lines of applet code into an html file externally from a saved file, instead of putting the code in all the 50 html pages like we use for .js file or .css files

so that if any changes r needed in that applet we can just change the code in a single file.

Any help will be very grateful

thanks in advance
Neni

MaliciousDan

1:15 am on Aug 19, 2001 (gmt 0)

10+ Year Member



There isn't a way to do that with the APPLET tag, but you should be able to use a .js file and document.write the code into the page...

ie:
document.write('<applet code=\"news\"><param name="blah" value="blah"></applet>');

MaliciousDan

1:16 am on Aug 19, 2001 (gmt 0)

10+ Year Member



Err, of course SSI would be a better choice if you have that option.