使用说明: 先用鼠标将每一块的颜色图好,再将所要演示的公式输入公式行(也可用快捷鍵Ctrl+v粘贴公式进去),再按回车,颜色变量的值会在新的窗口中显示出来。把新窗口中生成的代码复制,粘贴覆盖在下面的红色代码上,取这段applet的代码就可在论坛上发贴显示了。 <applet codebase= "java/" code="RubikSeqViewer.class" archive="rubikseqviewer.jar" width="280" height="332"> <param name="author" value="Jiuzhao Hua"> <param name="contact" value="hua_jz@hotmail.com"> <param name="update_url" value="http://www.geocities.com/hua_jz/"> <param name="delay" value="20"> <param name="label_on" value="0"> <param name="editable" value="0"> <param name="degree" value="2"> </applet>
如:我试用一下6阶的,设定颜色与公式后,按回车从新窗口所生成代码为: <param name="degree" value="6"> <param name="color_0" value="FRUFUFUFUFUFLURUGGGGLURUGGGGLURUGGGG"> <param name="color_1" value="LURUGGGGLUBRUBUBUBUBUBLUFRFFFFFLRLRL"> <param name="color_2" value="RLRLBRBBBBBLFRFFFFFLRLRLRLRLBRBBBBBL"> <param name="color_3" value="FRFFFFFLRLRLRLRLBRBBBBBLFRFFFFFLRLRL"> <param name="color_4" value="RLRLBRBBBBBLFRDFDFDFDFDFLDRDDDDDLDRD"> <param name="color_5" value="DDDDLDRDDDDDLDRDDDDDLDBRDBDBDBDBDBLD"> <param name="sequence" value="r u r' u' R U' L' U R' U' L U"> 得出applet的代码就可在论坛上发贴显示了,如下 <applet codebase= "java/" code="RubikSeqViewer.class" archive="rubikseqviewer.jar" width="280" height="332"> <param name="author" value="Jiuzhao Hua"> <param name="contact" value="hua_jz@hotmail.com"> <param name="update_url" value="http://www.geocities.com/hua_jz/"> <param name="delay" value="20"> <param name="label_on" value="0"> <param name="editable" value="0"> <param name="degree" value="6"> <param name="color_0" value="FRUFUFUFUFUFLURUGGGGLURUGGGGLURUGGGG"> <param name="color_1" value="LURUGGGGLUBRUBUBUBUBUBLUFRFFFFFLRLRL"> <param name="color_2" value="RLRLBRBBBBBLFRFFFFFLRLRLRLRLBRBBBBBL"> <param name="color_3" value="FRFFFFFLRLRLRLRLBRBBBBBLFRFFFFFLRLRL"> <param name="color_4" value="RLRLBRBBBBBLFRDFDFDFDFDFLDRDDDDDLDRD"> <param name="color_5" value="DDDDLDRDDDDDLDRDDDDDLDBRDBDBDBDBDBLD"> <param name="sequence" value="r u r' u' R U' L' U R' U' L U"> </applet>
[此贴子已经被作者于2007-6-23 22:58:40编辑过]
|