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

Why I stopped publishing blog posts as information provider

Now the AI can generate content. Does that mean the web publishing industry reaches the end? ChatGPT said: ChatGPT Not at all. While AI can ...