Pertemuan ke sebelas

Bundle js/pluig

1.jquery

2.mootools

3.jlmpress

4.all

Penulisan javascript

1.eksternal=<script type=”text/javascript”src=”></script>

2.internal=<script>…….</script> (boleh di body)

3.inline=onclick,onfecvs,double click,ormove over,all.

Javascript bundle

Jquery:

-slider

-menu

-layout

-paging

-form

<html>
<head>
<title>mencoba javascript</title>
<script language=”javascript”>
function test ()
{
var val1=document.kirim.T1.value
if(val1%2==0)
document.kirim.T2.value=”bilangan genap”
else
document.kirim.T2.value=”bilangan ganjil”
}
</script>
</head>
<body>
<form method=”POST” name=”kirim”>
<p>
BIL<input type=”text” name=”T1″ size=”20″>
MERUPAKAN BIL <input type=”text” name=”T2″ size=”20″>
</p>
<p>
<input type=”button” value=”TEBAK” name=”B1″ onclick=”test()”>
</p>
</form>

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s