Use of textarea for quick code sharing

Sometimes, when you want to build a link empire or a link train, you may want to consider giving your followers’ lives easier by giving them a little spoon-feeding. Like for an instance, I have a very creative logo here that I want your readers to post on their blogs to pester everyone until they notice what you’re saying. You may want to make it easier for them to follow suit. You know, click-copy-paste.

Like this. Click on the text below, it will be highlighted automatically and when embedded on your blog pages, it will display the Kubix Cube logo below with a link to this blog. Press Ctrl+C to copy the highlighted text.

The form uses the textarea HTML tag. And what does the codes inside it do is what we’re going to elaborate next.

1. textarea tag – this creates the entire form containing the codes to display.
2. onClick – this is an javascript behavior wherein the use of “this.select()” attribute will allow the entire text to be highlight on mouse click.
3. readonly – an attribute that prevents the embedded text to be modified
4. the rest are self explanatory.

So here’s the complete codes:

<textarea onClick=”this.select();” style=”width:350px;height:100px;font-family:tahoma;font-size:12px;” readonly><a href=”insert the target link here” title=”insert the mouse over text here“><img border=”0″ src=”insert the image source here“/></a></textarea>

Continue reading » · Rating: · Written on: 03-02-08 · No Comments »

Resize and text-align your Youtube videos

What you’re seeing on the left is a youtube video showing Ramiele Malubay’s audition in the Season 7 of American Idol. This video is also used in one of my posts on my personal blog. If you think that I’m trying to make too much senseless babbles here, you’re probably right but that is not what this post is about.

Did you ever wonder why you could not resize or text-align your YouTube videos in your posts? Well, I don’t know too but I finally got a solution to tweak your way into creative resizing and positioning of youtube videos into your wordpress blog posts.

Required tools

1. My Video plugin by Levi Putna.
2. Hard code for left-aligned table as this:

<table border=”0″ align=”left” width=”249″ cellPadding=”0″ cellSpacing=”5″>
<tr>
<td>My Video Code goes here</td>
</tr>
</table>

Do I need to elaborate on the table styling? If yes, I’ll be obliged.

Continue reading…

Continue reading » · Rating: · Written on: 02-24-08 · 3 Comments »