WP-Mix

A fresh mix of code snippets and tutorials

Category Archive: JavaScript

Posts about JavaScript

Page 4 of 4

Simple jQuery tooltip

There are many great jQuery plugins for creating tooltips, but for simple cases only a few lines of code are needed.

Simple live comment preview with jQuery

Here is a very simple and basic live-preview for comments and contact forms.

Live comment preview with JavaScript

Here is a simple way to display a live comment preview for any comment or contact form using ordinary JavaScript.

Display local time with JavaScript

Another oldie but goodie, here is a chunk of JavaScript code that will display local time in a variety of formats.

Random colors with JavaScript

Here is an old script that’s just too precious to throw away, so here it is for the sake of reference and utter amusement.

Spamless email links with PHP and jQuery

Couple of quick snippets for you today.. here’s how to display spamless email links on your web pages using either PHP or jQuery.

Cross domain posting with Ajax

Technically cross-domain posting is not allowed, but here is a workaround that may prove useful for your brainstorming sessions. Note that this technique is aimed at advanced developers.

Print this JavaScript

You know those “Print this page” links that let you print the whole page? Yeah, those. Here is how to create one of those for your web page using JavaScript and HTML.