marc Posted October 11, 2003 Posted October 11, 2003 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? Quote
borfast Posted October 11, 2003 Posted October 11, 2003 (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 Edited October 11, 2003 by borfast Quote
Samrc Posted October 11, 2003 Posted October 11, 2003 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 Quote
marc Posted October 11, 2003 Author Posted October 11, 2003 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. Quote
RJSkon Posted October 11, 2003 Posted October 11, 2003 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 Quote
marc Posted October 11, 2003 Author Posted October 11, 2003 thanks richard. So were do i put this ^GEMDIR in the HTML ?? Quote
RJSkon Posted October 12, 2003 Posted October 12, 2003 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 Quote
marc Posted October 12, 2003 Author Posted October 12, 2003 Yep thats it ,i got it working now Thanks too all off you for helping. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.