Thursday 16 February 2012

JavaScript vs Java

COMPARISON OF JAVASCRIPT AND JAVA

JavaScript

  • Easy to learn and use
  • Useful for simple tasks
  • Not developer's kit required
  • JavaScript code is written directly in HTML and it does not require compiling

Java

  • Complicated to learn and use
  • Useful for complex tasks
  • Requires Java developer kit to create applets
  • Java programs are saved in separate files and must be complied before they can be run

JavaScript

JAVASCRIPT

There are 6 basic of JavaScript

  • For Loop
  • While Loop
  • Do While Loop
  • User-defined Function
  • Working with Web Pages Properties
  • Error Checking

For Loop

  • Execute the same block of code according specified times.


  • Another example of Loop


While Loop
  • Execute the same block of code while a specific condition is true





  • Another example While Loop

Do While Loop

  • Execute the block of code at least once even the condition is false. because the code will be executed first before condition is tested. It will repeat the loop as long as the specified condition is true.




User-defined Function





Working with Web Page Properties

  • May be you are not realized that you have used Web Pages properties (or Document properties) a few times.
  • Example :

*document.write ( ) : to display information on the web page

  • We have others like :

*document.bgColor : Example | Source Code

*document.fgColor : Example | Source Code

*document.lastModified : Example | Source Code


Error Checking

  • Remember this example?









Tuesday 14 February 2012

Client-Side Scripting



INTRODUCTION OF CLIENT-SIDE SCRIPTING

What is client-side scripting?
  • it is refers to computer programs on the web, that are executed at the client-side, by the user's web browser.

What client-side scripting can do?

  • Form validation
  • Display messages (eg: alert)
  • Dynamically modify current document (eg: document interface)
  • Animated images (eg: rollover, mouseover)

Introduction of JavaScript

  • JavaScript is a client-side scripting
  • Developed by Netscape
  • You can write JavaScript in 2 ways :

1. Within the same file with your HTML file, OR

2. In external file with ".js" file extension.

What is JavaScript function?

  • You can create function to perform specific task = user-defined function
  • Function can be executed:
  • Directly, OR
  • Through evevnts

function helloWorld(){

alert(“Hello World!”);

}








Sunday 12 February 2012



Nama : Norazziela binti Abd Hadi

Tarikh Lahir : 24 September 1991

Tempat Lahir : Hospital Kluang, Johor

Adik Beradik : 5 orang

Anak ke : 2 daripada 5 orang

Nama Bapa : Abd Hadi bin Md. Said

Nama Ibu : Rosnah binti Shamsuddin

Sekolah Rendah : Sekolah Kebangsaan Seri Intan (SKSI)

Sekolah Menengah : Sekolah Menengah Kebangsaan Seri Intan (SMKSI)

Kolej 1 : Kolej Teknologi Timur (KTT)

Kolej 2 : Kolej Unikop

Wednesday 21 December 2011

Coding time... :)

hari ni master suh kiteorg wat quiz programming....

de 10 soalan objective

n de 1 soalan subjective.....

bila sampai part subjective tuh...punya la semangat...

nak tau npew????

cz first time wat sendiri.....

selalunya dak programmer je yg wat....

skang time aq lak mempelajarinyer.....

time tu aq excited sgt nak wat coding....

masa ngah wat tuh x sedar rupanya masa kelas sudah pon tamat....

gembira sgt dpt melaksanakan tugasan yg diberi....

kelakar tgk gelagat kwn2 bila wat coding bersama....

de yg ckp "alaaaaaaa...npe x jd ni"

de lak yg baca "bismillah"

yg kelakarnyer ley lak tetiba ngah wat coding...

kwn kat sebelah computernyer suh restart balik....

hahahahahha....

sumpah seranah dia... :)

masa wat subjective....

pe g....bkk laman web www.w3school.com

kat situ de mcm2 contoh ley kita tgk au....

rugi klu x try.... :)

nak tgk hasilnya????

meh kita tgk.... :)








Send e-mail to someone@example.com :




Name:




Password:





Sex:

Male

Female



E-mail:





Vechicle:

I have a bike

I have a car



Comment:












Monday 5 December 2011

the world's largest web development site

Learn to create website????

make your own web site now!!!!!!!!

dlm link ni http://www.w3schools.com

mcm2 ley wat......

dlm tuh de HTML tutorials...

BROWSER scripting...

XML tutorials....

SERVER scripting....

WEB services....

WEB building......

kat situ bole explore mcm2....

let's do it....

pe kata kita g HTML fonts....






sy berjaya mencuba nya :)





bila sy dah tau...senang rupanya... :)



ni la coding tuk HTML fonts....

mcm2 fonts anda ley gunakan...

memang menarik... :)

SELAMAT MENCUBA!!!!




Sunday 4 December 2011

A.S.K

ape tu ASK??

adakah yg dimaksudkan dgn "bertanya"??

hehehehehe.....

salah tuh.... A.S.K tu represent by

A = atitude

S = skill

K = knowledge

tu la Master Zaidi ajar kat kiteorg supaya

atitude tuh penting dalam kelas....

master amat pentingkan atitude...

klu dalam kelas tuh jgn la ponteng tnpa sebab...

kerana....

ilmu yg diberi oleh Master sgt2 berguna....

klu anda skip satu kelas anda akan merasakan

mcm dah xtau pape pasal programming...

klu de beran try la ponteng kelas...kih3 :p

S = skill

skill pon sgt penting gak...

klu setakat mengetahui tp x de skill x berguna gak....

papepon try la mana yg anda tahu...

K = knowledge

pengetahuan lak.....

ilmu pengetahuan ni sgt la luas sekali...

sampai bila ilmu pengetahuan tu x pnah nyer habis...

so...what ever who are u...

cari la pengetahuan sampai anda mati...


* kesimupulan nyer.....

amal kan lah ASK ni supaya anda berdisiplin di

dlm kelas n supaya ilmu anda diberkati oleh NYA...

amin...

insyaallah...