20050116
20050115
the files you'll need to get
There is only one .class file you need to make Rubik's Cube.
The file is FREEWARE, and you can get "rubiks.zip" from:
http://www.dustyinfo.com/goo/rubiks.zip [ 7 kb download ]
I'm going to assume you know how to download and unzip zip files.
20050113
you will need an HTML page
Copy the following code with Notepad, insert codebase data, then save with a name of your choice, but with an extension of .html [not .txt].
<html>
<head>
<title>goo HTML example using codebase</title>
</head>
<body>
<center>
<table border=0 width=400 height=300 cellpadding=0 cellspacing=0>
<tr>
<td>
<applet code=rubik.class width=120 height=120 codebase=http://www.where-files-are.com/>
<!-- REMOVE CODEBASE IF YOU WANT TO USE APPLET OFF-LINE -->
<!-- USE CARE TO RETAIN ">" AT END OF CODEBASE LINE -->
<param name="bgcolor" value="#ffffff">
</applet>
</td>
</tr>
</table>
</center>
</body>
</html>
What can be modified?
You may change background color, but changing size only changes background size, not the cube size.
What is codebase?
Codebase tells the browser where the applet files are located, but if all files (including the HTML file, .class files, and images) are all together in one folder on your own server or local system, you should not specify CODEBASE. Likewise, if you are going to use the applet off-line, do not use a CODEBASE.
If you are using something like BLOGGER, then yes, you will definitely need to use a codebase address (since .class files can't be directly stored on the .blogspot server).
Replace ...where-files-are.com/ with address of where files are stored.
20050112
embed code in BLOGGER
As you probably know, applet files cannot be uploaded and stored directly on the .blogspot server, so you need to store these files with your web hosting service.
Of course, your BLOGGER webpage needs to know where to dial-up the various files which make up an applet, so that is why that address in CODEBASE needs to be used.
The following is the HTML code you would use to embed the applet into BLOGGER. Basically, this snippet is the same as the preceeding full-length HTML code example, but this snippet has an "A HREF=" anchor-tag which dials-up the applet. Reminder; be sure to change the CODEBASE url to match where the .class files, etc., are stored.
<a href="http://www.where-files-are.com/">
<applet code=rubiks.class width=120 height=120 codebase=http://www.where-files-are.com/>
<!-- REMOVE CODEBASE IF YOU WANT TO USE APPLET OFF-LINE -->
<!-- USE CARE TO RETAIN ">" AT END OF CODEBASE LINE -->
<param name="bgcolor" value="#e8e8e8">
</applet>
</a>
20050110
did you get it working?
Did you get it working?
I've only given you the bare-bones here,
so if you need help, post a comment and I'll try to help you out.
You need not sign-up with Blogger if you sign in as anonymous.
There is no spam, ad-ware, or pop-ups on this site.
