Showing posts with label html. Show all posts
Showing posts with label html. Show all posts

Friday, April 20, 2012

[HTML][Javascript] Mailto + Subject and Body

When we create a link that points to our mail we commonly use this:
<a href="mailto:my_email@test.com">Send me your Feedback!</a>

How about adding a subject on the email? Yes, we can also do that.
<a href="mailto:my_email@test.com?subject=my subject">Send me your Feedback!</a>

How about adding an email content? Another check!
<a href="mailto:my_email@test.com?subject=my subject&body=my content here">
    Send me your Feedback!</a>

Thursday, April 19, 2012

[HTML] Marquee Party!

Hey! I've been searching on something to do when I came across a site that has a moving text. At first, I thought that it's some javascript code or something that makes it move but when I use firebug to look at the code I saw that it's using the <marquee> tag. I haven't use the marquee tag for a long time so I decided to explore the said tag once again.

Wednesday, January 25, 2012

[jQuery] Change Element Class Name

Example:
<div>
  <span class=”old_class”>hello there!</span>
</div>

Change the class using jQuery:
$('div span').removeClass('old_class').addClass('new_class');

Result:
<div>
  <span class="new_class">hello there!</span>
</div>
Related Posts Plugin for WordPress, Blogger...