JAD
02-18-2008, 12:34 AM
OK, well here's the deal.
I have a java applet (game i made) that I want to upload to a freewebs site. Normally, to run the applet from a file on my computer, the code would look something like this:
<html>
<head>
<title>MyFightingGame Applet</title>
</head>
<body bgcolor="black">
<hr><center>
<applet code="MyFightingGame.class"
width=800
height=550
codebase="."
archive="file:/C:/BlueJ/lib/bluejcore.jar,file:/C:/BlueJ/lib/junit.jar,file:/C:/Jake/Java%20Programs/FightingGame/"
alt="Your browser understands the <APPLET> tag but isn't running the applet, for some reason."
>
Your browser is ignoring the <APPLET> tag!
</applet>
<hr></center>
</body>
</html>
and that would work fine. But now I want to open it from the web. I uploaded the "FightingGame" folder and all of its contents onto my site, and now I want to display it. The problem is (obviously), the directory changed and I don't know what to make the directory to now to load the applet. It's called the exact same folder and the folder is right there with my index.htm file.
Thanks.
~JAD
I have a java applet (game i made) that I want to upload to a freewebs site. Normally, to run the applet from a file on my computer, the code would look something like this:
<html>
<head>
<title>MyFightingGame Applet</title>
</head>
<body bgcolor="black">
<hr><center>
<applet code="MyFightingGame.class"
width=800
height=550
codebase="."
archive="file:/C:/BlueJ/lib/bluejcore.jar,file:/C:/BlueJ/lib/junit.jar,file:/C:/Jake/Java%20Programs/FightingGame/"
alt="Your browser understands the <APPLET> tag but isn't running the applet, for some reason."
>
Your browser is ignoring the <APPLET> tag!
</applet>
<hr></center>
</body>
</html>
and that would work fine. But now I want to open it from the web. I uploaded the "FightingGame" folder and all of its contents onto my site, and now I want to display it. The problem is (obviously), the directory changed and I don't know what to make the directory to now to load the applet. It's called the exact same folder and the folder is right there with my index.htm file.
Thanks.
~JAD