Forum Moderators: not2easy

Message Too Old, No Replies

Recode Applet using CSS

         

LogicsHere

12:35 am on Sep 23, 2005 (gmt 0)

10+ Year Member



I've been trying to follow examples of converting applet coding and not having much luck.

Can someone please help me with the following? I would also like it to float right with a left margin of 0.5 ems if possible.

I know I need to change APPLET to OBJECT, but then I'm lost from there. :( I'm trying to validate to 4.01 strict.

Any help would be appreciated. Thank you.

LogicsHere

10:46 am on Sep 23, 2005 (gmt 0)

10+ Year Member



I was afraid the code would not take. Trying to input it again so that it will:

< APPLET code="alcsnow.class" align=baseline width="275" height="206" >
< param name="grph" value="holmanor.jpg" >
< param name="snows" value="700" >
< param name="threadsleep" value="50" >
< /APPLET>

I've put the spaces in to permit the applet code to appear.

createErrorMsg

12:03 pm on Sep 23, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Is your goal to pull the inline attributes out and replace them with external CSS equivalents?

If so...

new html source:
< APPLET code="alcsnow.class" id="my_applet" >
< param name="grph" value="holmanor.jpg" >
< param name="snows" value="700" >
< param name="threadsleep" value="50" >
< /APPLET>

css (including the float and margin):
#my_applet{
float:right;
width:275px;
height:206px;
margin-left:0.5em;
vertical-align:baseline;
}

Let us know if this isn't what you had in mind.

cEM

LogicsHere

4:23 pm on Sep 23, 2005 (gmt 0)

10+ Year Member



Hi, thanks for replying. I can most definitely use the CSS coding provided.

Based on 4.01, I need to change the word "APPLET" to "OBJECT". Not a problem. The problem is "CODE". This has been deprecated as well. I tried CODEBASE, but object did not appear. I also tried DATA but then a music/video controller displays. :(

Or, could the APPLET be pulled in by Javascript?