Jump to content

Recommended Posts

Posted

Hallo All

 

I got a question about inserting java or html code into mij page,the java applets i wanna use ,dont work.The thing i dont understand is this>>>>

-----------------------------------------------------------------------------------------------

To refer to a file in your HTML,type^GEMDIR/ in front of the file name. ^GEMDIR will be replaced with the actual subdirectory name

 

Examle: Too display a fille called logo.gif.use the following HTML:

 

<img scr="^GEMDIR/logo.gif">

------------------------------------------------------------------------------------------------

><applet code="Stars.class" WIDTH="600" HEIGHT="130">
<param name="generator" value="Easy Applet Builder 1.7.1 - http://www.taijisoftware.com">
<param name="background_color" value="#000000">
<param name="registration_code" value="settevercsedegnamiaj">
<param name="status_bar_text" value="add a text here !">
<param name="enter_text" value="optional text here">
<param name="enter_text_color" value="#FF0000">
<param name="enter_text_height" value="15">
<param name="enter_text_font" value="TimesRoman">
<param name="enter_text_style" value="bold">
<param name="link" value="http://www.taijisoftware.com">
<param name="target" value="_blank">
<param name="step_mean" value="10">
<param name="star_color" value="#FFFFFF">
Please activate Java...
</applet>

 

So were do i have too put this:^GEMDIR/:thing?if i wanna use the java code above ?

Also after i saved all the file's i need for it, the programm ask for a "place holder image"whats that ,and do i need that whit java code?

Posted (edited)

Hi marc.

 

I'm not sure I understand your problem. You want to insert a <img> tag between the <applet> tags? I'd suppose you'd have to insert the <img> tag anywhere between the <applet> and </applet> tags. Something like this:

><applet code="Stars.class" WIDTH="600" HEIGHT="130">
<param name="generator" value="Easy Applet Builder 1.7.1 - http://www.taijisoftware.com">
<param name="background_color" value="#000000">
<param name="registration_code" value="settevercsedegnamiaj">
<param name="status_bar_text" value="add a text here !">
<param name="enter_text" value="optional text here">
<param name="enter_text_color" value="#FF0000">
<param name="enter_text_height" value="15">
<param name="enter_text_font" value="TimesRoman">
<param name="enter_text_style" value="bold">
<param name="link" value="http://www.taijisoftware.com">
<param name="target" value="_blank">
<param name="step_mean" value="10">
<param name="star_color" value="#FFFFFF">
<img scr="^GEMDIR/logo.gif">
Please activate Java...
</applet>

But to be honest, I'm not sure that would work...

 

And what does that Java applet do? Could you please explain a little more about your doubt and perhaps tell us where we can get that applet so we can take a look at it?

 

Thanks :blink:

Edited by borfast
Posted

To best help you, please answer these 2 questions:

Where did you get the applet and what are you trying to do with it?

 

Each applet is slightly different when you implement in CSB. You have to modify the code to work with CSB! I have two pages showing how to implement several applets on my website. Take a look at them and see if you can make your code follow the same pattern.

 

CSB Tutorials for applets:

Lake applets: http://www.samisite.com/photo/id33.htm

Other applets (reflection, water, snow, etc): http://www.samisite.com/photo/id109.htm

 

You placed the ^GEMDIR/ in the correct place, always in front of any image file.

Place the modified code into insert > HTML. You must place the image file(s) and any other files used by the code (class files, js files, etc) into the webcomponent so when the code is loaded to the website, the files will go also.

 

With CSB, note that the codebase information is also coded with ^GEMDIR/ because the class file will be found in the directory CSB creates. Here's part of one of the codes I have on those pages to demonstrate what I mean:

<applet code="PoolMenu" codebase=^GEMDIR width=218 height=122>

<param name="image" value="^GEMDIR/blaneh.jpg">

 

-Samantha

Posted
To best help you, please answer these 2 questions:

Where did you get the applet and what are you trying to do with it?

 

First of all thanks for helping me ,i just took sum applet and i was trying too get it too work (so it doesnt matter what apllet )

 

The problem is that i dont know how too use java applets whit CSB,they work fine on another html editor.I just downloaded CSB and dont know mij way around Yet.

Posted

Marc

 

I have been successful running Applets in Trellix, which is an earlier version of CSB.

 

I have always uploaded the files associated with the Applet, using an FTP client and placing the files in the same folder as the site files, of course the code was placed in a Web Gem, or "Insert HTML" in CSB.

 

Make sure that you upload all the Applet files, including the .class file.

 

Richard

Posted

Marc

 

On each of those five files,

capitole.jpg

christmas.jpg

Fade.class

river.jpg

Val.class

Find them in the HTML code that you placed in the, Insert HTML box

and add, ^GEMDIR/ just in front of each of the file names. You may have to use the scroll bars to view them in the HTML box.

Examples,

^GEMDIR/capitole.jpg

^GEMDIR/christmas.jpg

and so on.

 

You can also leave the applet code alone and upload the five applet files, using an FTP client.

The problem with doing that, is that you will not be able to preview the applet in the Preview mode of CSB.

 

I hope that this help you.

 

Richard

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...