View Full Version : Java.. Script?
fou4swords
06-10-2006, 11:58 PM
hey,
I want to add in Java Scripts onto my website... because i hear it really makes it look better.. and because i wanna add in Java games.. lol....... Umm... How do i do that?
frontpageforms
06-11-2006, 12:45 AM
Well, most of the sites where you find scripts will give you instructions for placing the script into your HTML.
Follow the instructions and be sure to paste the code into Notepad. Copy from Notepad for pasting into HTML or Code view. Pay attention, as some scripts require part of the script in the <Head> and some in the <Body>.
You may need to either preview in browser or in some cases publish the page in order to see the script in action.
MandyJay
06-11-2006, 01:49 AM
Do you mean javascript or java - two entirely different animals.
But as Micheal said, instructions will nearly always come with the stuff on how to insert. Note however, that if Java opposed to Javascript then people have to have the sunjava program thingy to be able to view them. This did ship with most microsoft products but since a court case, Microsoft are no longer allowed to do this, so some people will have to download it before viewing the java. Also, if java, try not to have too many on a page as they have to be downloaded to the persons system before their browser will view (opposed to javascript which works from the server) and they can slow down a lot.
BTW you havent responded to my reply to your animated gif posting? maybe you missed seeing it......
MJ
fou4swords
06-11-2006, 03:27 AM
Ok.. .. right.. So what does the "Insert" "webcomponent""Java applet" does?
MandyJay
06-11-2006, 03:58 AM
Ok.. .. right.. So what does the "Insert" "webcomponent""Java applet" does? Just what it says. If you have a Java applet you want on your page, import all the files (usually more than one) and then using that component FP will insert it for you. Mind you, if you are given instructions from whree you get the applet from on how to insert, then sometimes that is better as you sometimes get extra code to put in.
MJ
fou4swords
06-11-2006, 04:03 AM
Ooh.. ok.. i have to import it... neat.. Thats why it wasn't working..
I've found some java games online.. but they don't come with any instructions.. All they give is the java code and some .class files..
MandyJay
06-11-2006, 04:07 AM
Import all the files into the same folder, don't split them. See if FP will insert correctly for you. You may have to preview in browser or even publish to see them. If you get stuck, let us have both the url of a page you have published with it on, and also the url of the page you got them from.
MJ
fou4swords
06-11-2006, 04:12 AM
uhh.. You know the Java Applet thing.. could you tell me what all the fields in the form means .. and what i'm suppose to write there...
MandyJay
06-11-2006, 04:14 AM
I would need to know what the field were. In any event use FrontPage to add the Applet. If it wont, give me the url of the page you got the applet from so I can see what it is all about.
MJ
fou4swords
06-11-2006, 04:16 AM
Arent the fields all the same on all frontpages?...
Well anyway.. The fields are as follows...
Applet Source:
Applet Base URL:
Applet parameters:
Those are the ones that confuse me..
MandyJay
06-11-2006, 04:26 AM
I thought you were talking about the applet, not the web component wizard.
The source is the file path to the applet you want to show
The base url is the URL of the directory which contains this applet
The parameters are stuff like the size, color - it looks like this:
<applet code="Clock" width=50 height=50>
<param name=Color value="blue">
</applet>
Each applet will have basic parameters but then others may have extra ones you wuld have to check from where you got it.
MJ
fou4swords
06-11-2006, 04:30 AM
Ooh...ok then.. that clears it up..
Well the window says "Java Applet Properties" a the top... so i assumed it was java applet...
MandyJay
06-11-2006, 04:32 AM
yup ..... that's what it should be then.
MJ
fou4swords
06-11-2006, 04:36 AM
Success!! I got it to work!! Woohoo!!.. lol Wanna play Connect 4? lol
heres the url... http://four4swords.buhh.net/PROTOPAGE.htm .. Thing is .. Its just a bit too small..
MandyJay
06-11-2006, 04:41 AM
Well done.
Try dragging the handles in normal view see if that works to get it bigger and not lose quality.
MJ
fou4swords
06-11-2006, 04:45 AM
Yeah.. I changed the size of the java thing.. and yeah! Its much bigger now! Perfect!.. That was good practice.. By the way.. Are all java applets like this?.. I mean , do i insert all java applets the same way i did with that connect4 game?
MandyJay
06-11-2006, 04:50 AM
I don't see why not. It worked. :yesman:
MJ
vBulletin® v3.8.1, Copyright ©2000-2010, Jelsoft Enterprises Ltd.