JavaScript (Pjesa e parë)

JavaScript është një gjuhë e shruar që përdoret për Ueb-in.

JavaScript është përdorur në shumicën e faqeve Ueb për të shtuar funksionalitetin  e faqeve. JavaScript është e lehtë për tu mësuar.

<!DOCTYPE html>
<html>
<head>
<script>
function displayDate()
{
document.getElementById(“demo”).innerHTML=Date();
}
</script>
</head>
<body><h1>JavaSript i pare</h1>
<p id=”demo”>Ky eshte nje paragraf.</p> 

<button type=”button” onclick=”displayDate()”>Paraqit daten</button>

</body>
</html>

JavaSript i pare

Ky eshte nje paragraf.

Paraqit daten

<!DOCTYPE html>
<html>
<body><h1>JavaScript</h1> 

<p id=”demo”>
JavaScript mund të ndryshojë përmbajtjen e një element HTML.
</p>

<script>
function myFunction()
{
x=document.getElementById(“demo”); // Gjej elementin
x.innerHTML=”Hello JavaScript!”; // Ndrysho permbajtjen
}
</script>

<button type=”button” onclick=”myFunction()”>Kliko mbi mua!</button>

</body>
</html>

JavaScript

JavaScript mund të ndryshojë përmbajtjen e një element HTML.

Kliko mbi mua!

<!DOCTYPE html>
<html>
<body>
<script>
function changeImage()
{
element=document.getElementById(‘myimage’)
if (element.src.match(“bulbon”))
{
element.src=”pic_bulboff.gif”;
}
else
{
element.src=”pic_bulbon.gif”;
}
}
</script>

<img id=”myimage” onclick=”changeImage()”
src=”pic_bulboff.gif” width=”100″ height=”180″>

<p>Kliko mbi llamben per ta ndezur/fikur ate</p>

</body>
</html>

Posted on May 26, 2013, in Home, Informacion Per Ju, Javascript and tagged . Bookmark the permalink. 1 Comment.

  1. You need targeted traffic to your website so why not try some for free? There is a VERY POWERFUL and POPULAR company out there who now lets you try their traffic for 7 days free of charge. I am so glad they opened their traffic system back up to the public! Sign up before it is too late: http://nsru.net/fdse

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: