[問題] 有關於prototype的element使用方法

看板Ajax作者 (耀)時間15年前 (2010/11/24 00:53), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/2 (看更多)
這是我照著書上範例打,但是結果卻一點反應都沒用,希望版上的各位可以指導一下我, 是不是那裡我漏掉了,或是有問題 謝謝~ <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> <script type="text/script" src="prototype.js"> </script> <script type="text/javascript"> function bigger() { Element.setStyle('textsize',{'font-size':'40px'}); } function smaller() { Element.setStyle('textsize',{'font-size':'20px'}); } function disapper() { Element.hide('textshow'); setTimeout("Element.show('textshow')",3000); } </script> <title>index</title> </head> <body> <div id="textsize" style="font-size:20px" onmouseover="bigger()" onmouseout="smaller()"> 改變大小 </div> <div id="textshow" onClick="disappear()">消失...</div> </body> </html> -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 111.249.43.249
文章代碼(AID): #1Cw_68gK (Ajax)
文章代碼(AID): #1Cw_68gK (Ajax)