[問題] 有關於prototype的element使用方法
這是我照著書上範例打,但是結果卻一點反應都沒用,希望版上的各位可以指導一下我,
是不是那裡我漏掉了,或是有問題 謝謝~
<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
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 1 之 2 篇):
Ajax 近期熱門文章
PTT數位生活區 即時熱門文章