Java Applet Code Insertion Problem
Autor: Nigel W.
Besucht 1526,
Followers 2,
Geteilt 60
Hi there...
Can anyone give me the code for inserting a java applet, where all the associated files are in a different directory?
(This is so I can keep my java applets in tidy directories on the server and not have to upload it all in the root, where the WebsiteX5 html is.)
Here is my example...
<applet code=SlidingPuzzle.class archive=SlidingPuzzle.jar width=650 height=450>
All the files are at "/games/slidingpuzzle/*.*
Thanks,
Nigel
Gepostet am
Hi Nig,
This is using the "RELATIVE" URL:
<applet code=games/slidingpuzzle/SlidingPuzzle.class archive=games/slidingpuzzle/SlidingPuzzle.jar width=650 height=450>
Insert the "ABSOLUTE" (FULL) URL for it to show in X5!! I cannot examine the files so I presume you know what and where you are putting this is correct........
www.frankscybercafe.com
Autor
Hi Frank...
How's tricks?
Nope...this doesn't work.
I can't get much from the programmer but he states:
"You can simply add a tag called "codebase" for the folder name"
I've tried that but I probably keep getting the format wrong.
Here's the basic for the game. (without other stuff)
As I say, THIS works ok for within the game's folder but I'll be damned if I can get the format right for WebX5.
<applet code=SlidingPuzzle.class>
<param name=photo value="KenwoodHouse.jpg">
<param name=titleimage value="SlidingPuzzle_banner.gif">
<param name=winfile value="SlidingPuzzle1.au">
<param name=movefile value="SlidingPuzzle2.au">
</applet>
All files are athttp://www.hampsteadheath.net/games/slidingpuzzle/*.*
I need it written out for me to copy I think...lol!
Autor
Frank...solved!
You were ABSOLUTEly right...lol!
The programmer finally came up with the answer in print.
For any others wondering...this is the solution, in my particular case:
<applet code=SlidingPuzzle.class archive=SlidingPuzzle.jar width=650 height=450 codebase="http://www.hampsteadheath.net/games/slidingpuzzle/">
<param name=photo value="http://www.hampsteadheath.net/games/slidingpuzzle/KenwoodHouse.jpg"> <param name=solvebutton value="1"> <param name=titleimage value="http://www.hampsteadheath.net/games/slidingpuzzle/SlidingPuzzle_banner.gif"> <param name=winfile value="http://www.hampsteadheath.net/games/slidingpuzzle/SlidingPuzzle1.au"> <param name=movefile value="http://www.hampsteadheath.net/games/slidingpuzzle/SlidingPuzzle2.au"> <param name=bgimage
etc. etc. (that's just the basic stuff without all the parameters, if you follow)
Cheers guys!
Hi Nigel,
if you want you can set your post as "correct", in order toimprove research og this post by other Users.