Monday, May 18, 2009

Blog Tricks, how to embed an online dictionary in your post in 10 seconds?


Word Lookup:




---------------------------
To achieve the above effect, copy paste the following code into your blog's Html. Done.

<form>
Word Lookup:
<input id="words_lookup" type="text" />
<button type="button" onclick="var uri = 'http://www.merriam-webster.com/dictionary/'+document.getElementById('words_lookup').value; window.open(uri);">Search</button>
</form>


---------------------------
ps:
'http://www.merriam-webster.com/dictionary/' is the webster online dictionary, you can change it to your favorite online dictionary such as 'http://www.answers.com/'.

Blogger.com seems disabled <script> tag in the post, so I hacked this with inline javascript.

No comments:

Post a Comment

meta.ai impression

Meta.ai is released by meta yesterday, it is super fast you can generate image while typing! You can ask meta.ai to draw a cat with curvy fu...