EJS 物理教學動畫設計工作坊
登入

 

點選網頁連結 示範透過網頁連結(JavaScript) 控制 EJS 的條件
該網頁多加了以下指令

<script>
function circular(n,RL,RR,W){
fkh=document.opticsLensNMirror._model;
fkh.dL=RL;
fkh.dR=RR;
fkh.W=W;
fkh.ni=n;
fkh._initialize();
}
</script>
<br />
1. <a href="Javascript:circular(1.5,100,-100,100)">circular glass</a>

2.<a href="Javascript:circular(1.33,100,-100,100)">parallel light through water drop</a>

3.<a href="Javascript:circular(1.5,20,20,20)">glass Lens A</a>

4.<a href="Javascript:circular(1.5,-20,-20,20)">glass Lens B</a>

5.<a href="Javascript:circular(1.5,100,100,100)">glass Lens C</a>

6.<a href="Javascript:circular(1.5,-100,-100,100)">glass Lens D</a></p>

0最後修改紀錄: 2007/12/16(Sun) 11:32:56


尚未登入. (登入)

since 2011/06/20 18:23