以下是引用乌木在2007-8-25 19:24:28的发言:此外,楼上说的第一段代码不是6楼的,而是9楼的。我现在再重新做一次,获得的代码如下: <applet code="de.pirzer.rubik.ProfessorPlayerApp.class" codebase=5 width="300" height="300"> <param name="scrptLanguage" value="PirzerENG"> <param name="scrpt" value="TR2 TF2 U2 MRR2 U2 TF2 TR2 "> <param name="stickersFront" value="0,3,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0"> <param name="stickersBack" value="3,0,3,0,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3"> </applet> * * * * * * * * * * * * * * * * * 而12楼您说我的代码如下: <applet code="ProfessorPlayer.class" archive="professorplayer.jar" width="300" height="300"> <param name="scriptLanguage" value="PirzerENG"> <param name="script" value="TR2 TF2 U2 MRR2 U2 TF2 TR2"> <param name="scriptProgress" value="0"> <param name="stickersFront" value="0,3,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0"> <param name="stickersBack" value="3,0,3,0,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3"> </applet> 两者怎么会不尽相同的?
确实是9楼,呵呵,看差了!两段代码是完全一样的,只不过你引用的是论坛的Java脚本,我引用的是官方的链接,“ <param name="scriptProgress" value="0">”这段其实只是一个进程的说明,0表示是解决问题,-1表示演示步骤,这里你最终的结果是复原魔方,所以这个值设不设置效果都是一样的! <applet code="ProfessorPlayer.class" archive="http://www.randelshofer.ch/professorplayer/professorplayer.jar" width="300" height="300"> <param name="scriptLanguage" value="PirzerENG"> <param name="script" value="TR2 TF2 U2 MRR2 U2 TF2 TR2"> <param name="scriptProgress" value="0"> <param name="stickersFront" value="0,3,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0"> <param name="stickersBack" value="3,0,3,0,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3"> </applet> 代码效果:
实际Rubik魔方颜色设置效果:
[此贴子已经被作者于2007-8-26 1:19:01编辑过]
|