HTML5- Pjesa 3

Për t’i ekzekutuar këto shembuj, duhet t’i ruani në një editor me prapashtesën .HTML

 

<!DOCTYPE HTML>
<html>
<head>
<style type=”text/css”>
#div1 {width:350px;height:70px;padding:10px;border:1px solid #aaaaaa;}
</style>
<script>
function allowDrop(ev)
{
ev.preventDefault();
}

function drag(ev)
{
ev.dataTransfer.setData(“Text”,ev.target.id);
}

function drop(ev)
{
ev.preventDefault();
var data=ev.dataTransfer.getData(“Text”);
ev.target.appendChild(document.getElementById(data));
}
</script>
</head>
<body>

<p>Zhvendose http://www.krokodili.com në drejtkëndëshin:</p>

<div id=”div1″ ondrop=”drop(event)” ondragover=”allowDrop(event)”></div>
<br>
<img id=”drag1″ src=”img_logo.gif” draggable=”true” ondragstart=”drag(event)” width=”336″ height=”69″>

</body>
</html>

Zhvendose http://www.krokodili.com në drejtkëndëshin

krokodili

<!DOCTYPE html>
<html>
<body>
<p id=”demo”>Kliko mbi këtë buton për të treguar koordinatat:</p>
<button onclick=”getLocation()”>Try It</button>
<script>
var x=document.getElementById(“demo”);
function getLocation()
{
if (navigator.geolocation)
{
navigator.geolocation.getCurrentPosition(showPosition);
}
else{x.innerHTML=”Geolocation is not supported by this browser.”;}
}
function showPosition(position)
{
x.innerHTML=”Latitude: ” + position.coords.latitude +
“<br>Longitude: ” + position.coords.longitude;
}
</script>
</body>
</html>

Kliko mbi këtë buton për të treguar koordinatat:

Try It

<!DOCTYPE html>
<html>
<body><form action=”demo_form.asp”>
Zgjidh ngjyren e preferuar: <input type=”color” name=”favcolor”><br>
<input type=”submit”>
</form></body>
</html> 

 

Posted on April 21, 2013, in Home, HTML5, Informacion Per Ju and tagged , . Bookmark the permalink. 32 Comments.

  1. Thank you for sharing your info. I really appreciate your efforts and I am waiting for your next post thanks once again.

  2. Its like you read my mind! You seem to know so much about this, like
    you wrote the book in it or something. I think that you could do with
    a few pics to drive the message home a little bit, but other than that, this is fantastic blog.
    An excellent read. I’ll definitely be back.
    buy facebook likes

  3. Excellent web site you’ve got here.. It’s difficult to find high quality writing like yours
    nowadays. I truly appreciate people like you!
    Take care!!

  4. Oh my goodness! Awesome article dude! Thank
    you, However I am experiencing problems with your RSS.
    I don’t know the reason why I am unable to subscribe to it. Is there anybody else getting similar RSS problems? Anyone who knows the solution can you kindly respond? Thanks!!

  5. Having read this I believed it was really informative. I appreciate
    you finding the time and energy to put this information
    together. I once again find myself personally spending a lot of time both reading and leaving comments.
    But so what, it was still worthwhile!

  6. Whoa! This blog looks just like my old one! It’s on a totally different topic but it has pretty much the same page layout and design. Excellent choice of colors!

  7. Please let me know if you’re looking for a author for your blog. You have some really good posts and I believe I would be a good asset. If you ever want to take some of the load off, I’d absolutely love to
    write some articles for your blog in exchange for a link back to mine.
    Please shoot me an email if interested. Thank you!

  8. Very good article! We will be linking to this great content on our website.

    Keep up the great writing.

  9. This post is actually a good one it assists new internet people,
    who are wishing in favor of blogging.

  10. When I initially commented I clicked the “Notify me when new comments are added” checkbox and now each
    time a comment is added I get four e-mails with the same comment.

    Is there any way you can remove people from that
    service? Thanks!

  11. I am sure this post has touched all the internet people, its really really pleasant article on building up new blog.

  12. Hello this is somewhat of off topic but I was wondering if blogs use WYSIWYG
    editors or if you have to manually code with HTML.
    I’m starting a blog soon but have no coding know-how so I wanted to get guidance from someone with experience. Any help would be greatly appreciated!

  13. I know this site gives quality depending articles and additional
    information, is there any other web site which offers such stuff in quality?

  14. Hey! This is my first visit to your blog!
    We are a team of volunteers and starting a new project in a community
    in the same niche. Your blog provided us beneficial information to work on.

    You have done a wonderful job!

  15. Just want to say your article is as amazing. The clearness in your post is simply spectacular and i
    could assume you are an expert on this subject. Fine with your permission allow me to grab your RSS feed to keep up to
    date with forthcoming post. Thanks a million and please
    carry on the enjoyable work.

  16. We stumbled over here from a different website and
    thought I might check things out. I like what I
    see so i am just following you. Look forward to finding out about
    your web page repeatedly.

  17. Nice post. I was checking constantly this blog and I’m impressed! Extremely useful information particularly the last part🙂 I care for such info much. I was looking for this certain info for a very long time. Thank you and best of luck.

  18. Today, I went to the beach with my children.
    I found a sea shell and gave it to my 4 year old daughter and said “You can hear the ocean if you put this to your ear.” She placed the shell to her ear and screamed.
    There was a hermit crab inside and it pinched her ear.
    She never wants to go back! LoL I know this is
    entirely off topic but I had to tell someone!

  19. This paragraph gives clear idea for the new users of blogging, that truly how
    to do blogging and site-building.

  20. I have been browsing online more than 2 hours today, yet I never
    found any interesting article like yours. It’s pretty worth enough for me. Personally, if all website owners and bloggers made good content as you did, the net will be a lot more useful than ever before.

  21. Hey There. I found your blog using msn. This is a really
    well written article. I’ll make sure to bookmark it and come back to read more of your useful information. Thanks for the post. I’ll certainly return.

  22. Have you ever considered about including a little bit more than just your articles?

    I mean, what you say is valuable and all. But think
    of if you added some great pictures or videos to give your posts
    more, “pop”! Your content is excellent but with images and videos,
    this website could undeniably be one of the greatest
    in its niche. Superb blog!

  23. I know this site gives quality depending content and
    other stuff, is there any other site which gives such information in quality?

  24. I feel this is one of the such a lot significant information for me.
    And i am satisfied studying your article. But wanna statement on few common things, The
    site taste is ideal, the articles is really great : D.
    Just right job, cheers

  25. Have you ever thought about adding a little bit more than just your
    articles? I mean, what you say is fundamental and everything.
    But just imagine if you added some great visuals or videos to give
    your posts more, “pop”! Your content is excellent but with images and
    video clips, this website could certainly be one of the best in its field.
    Very good blog!

  26. Greate article. Keep posting such kind of info on your blog.
    Im really impressed by your blog.
    Hello there, You’ve done an incredible job. I’ll certainly digg it and in my opinion suggest to
    my friends. I’m sure they will be benefited from this site.

  27. I am sure this paragraph has touched all the internet people,
    its really really nice post on building up new
    webpage.

  28. Great info. Lucky me I recently found your blog by accident (stumbleupon).

    I’ve saved it for later!

  29. I was recommended this blog by my cousin. I am not sure whether this post is written by him as nobody else
    know such detailed about my difficulty. You’re incredible! Thanks!

  30. Hi there, all the time i used to check blog posts here early in the break of day, for the reason that i love to
    learn more and more.

  31. Does your website have a contact page? I’m having trouble locating
    it but, I’d like to shoot you an email. I’ve got some ideas for your blog you might be interested in hearing.
    Either way, great blog and I look forward to seeing it develop over time.

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: