| Author |
Message |
StalkS Hangin' Around

Joined: Oct 04, 2003 Posts: 35
|
Posted:
Sat Oct 04, 2003 9:47 am |
|
Hi Raven, With the help of one of your threads I managed to create a block that would display a Sega Master System emulator on my homepage. The problem being the script calls for the javafile and the games directory to be located in the in the same place as the original script (html/blocks or could it be html?) Having tried to drop these files in both directories the block is still unable to call up the information. So I'm hoping the WHEREDOC command will be able to help! Is there any chance you could explain how to use it, to get my block to reference the correct files? I'd really appreciate it as your last thread was a really interesting learning experience!!
My block code looks as follows:
<?
$content = <<<_ANYHTMLCODE_
<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
WIDTH = 256 HEIGHT = 233 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0">
<PARAM NAME = CODE VALUE = "JavaGearApplet.class" >
<PARAM NAME = ARCHIVE VALUE = "JavaGear.jar" >
<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
<PARAM NAME="scriptable" VALUE="false">
<COMMENT>
<EMBED type="application/x-java-applet;version=1.3" CODE = "JavaGearApplet.class" ARCHIVE = "JavaGear.jar" WIDTH = 256 HEIGHT = 233 scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED></COMMENT>
</NOEMBED></EMBED>
</OBJECT>
_ANYHTMLCODE_;
?>
The java file it needs to reference is called 'JavaGear.jar' & a folder called 'Roms' with a file inside called 'index.txt'
Any words of advice would be greatly appreciated.
Thanks
StalkS
(You can see the block at my website ) |
|
|
|
 |
fury Worker


Joined: Sep 09, 2003 Posts: 165
|
Posted:
Sat Oct 04, 2003 9:54 am |
|
1 thing i see is that if your nuke isnt in the same directory as root that may be causing your problems you may need to set your path for the java script you intend to use
Before
| Code: | <PARAM NAME = CODE VALUE = "JavaGearApplet.class" >
<PARAM NAME = ARCHIVE VALUE = "JavaGear.jar" >
|
After
| Code: | <PARAM NAME = CODE VALUE = "http://yourdomain.com/JavaGearApplet.class" >
<PARAM NAME = ARCHIVE VALUE = "http://yourdomain.com/JavaGear.jar" >
|
but i may be shooting in the dark
Thanks
Fury |
|
|
|
 |
StalkS Hangin' Around

Joined: Oct 04, 2003 Posts: 35
|
Posted:
Sat Oct 04, 2003 10:21 am |
|
Thankyou Very Much Fury!! That's got the applet to appear in my Block! (@ the bottom of my site) The only problem i've got now is that script is still not seeing the 'Roms' folder. Which is meant to be in the same location as 'JavaGear.jar. Would you be able to help me modify the script to point to this folder as well?
Many Thanks
StalkS |
|
|
|
 |
fury Worker


Joined: Sep 09, 2003 Posts: 165
|
Posted:
Sat Oct 04, 2003 10:56 am |
|
i can try let me look at it for a bit and get back to you
Thanks
Fury |
|
|
|
 |
fury Worker


Joined: Sep 09, 2003 Posts: 165
|
Posted:
Sat Oct 04, 2003 10:58 am |
|
can you send me the link for the block or the script itself
thanks
Fury |
|
|
|
 |
StalkS Hangin' Around

Joined: Oct 04, 2003 Posts: 35
|
Posted:
Sat Oct 04, 2003 11:00 am |
|
Hey No need to worry Fury!! Just a silly mistake my end!! Thank you so much for your time! It's looks really good!!
StalkS |
Last edited by StalkS on Sat Oct 04, 2003 11:21 am; edited 1 time in total |
|
|
 |
fury Worker


Joined: Sep 09, 2003 Posts: 165
|
Posted:
Sat Oct 04, 2003 11:15 am |
|
Great glad to help
Thanks
Fury |
|
|
|
 |
|
|
|
|