Ever wanted to add text to your input fields and have it disappear when your visitor starts adding their info?
Better still, have it reappear if the visitor adds nothing?
Like this:
Here’s the code:
<input type="text" name="field-name-here" onclick="this.value='';" onfocus="this.select()" onblur="this.value=!this.value?'Enter Email To Get Updates':this.value;" value="Enter Email To Get Updates" />
Replace Enter Email To Get Updates with your own text.
Just a simple technique which works great.
9 Comments Subscribe To RSS Feed
Topics: Code
This can either be a very useful or a very dangerous trick depending on how it is used or abused.
I found this little tip at: FiddyP (it’s a really cool blog btw).
It only works in Firefix and boy does it work!
If you have a stored password that you can’t remember and all you can see are asteriks, just add this line to the address bar:
javascript:var els = document.getElementsByTagName('input'); for(var x=0; x<els.length; x++){ if(els[x].type.toLowerCase() == 'password' ){ var test = els[x].type = 'text';}}
Press enter and wait to be pleasantly or unpleasantly surprised to see your password staring back at you.
Add Comment Subscribe To RSS Feed
Topics: Code
Trying to add code to your wordpress post can be one of the most frustrating experiences. That is if you want the code to appear as code in your post.
Say, something like this:
<ul><li>This would have been a bullet</li></ul>
Had this been added to Wordpress normally, it would have appeared as a bullet. But since I’ve used a really cool plugin called ‘Code Auto Escape’, I can add code as code as long as I add pre and code tags around it.
Now you may never need to show html, xhtml, javacript, php, etc code in yuor posts but just in case you do, this is the plugin to get.
Get the Code Auto Escape Plugin
Add Comment Subscribe To RSS Feed
Topics: All Things Wordpress Code

High Quality Professional Minisite Templates For Only $7
This is a complete solution! We're Talking Full Blown Graphics--From Top To Bottom--At A FRACTION Of What You Would Pay A Designer! Find out more.
Separate Your Trackbacks From Your Comments
It is amazing how many blogs do not do this. They have the messiest comments section with a zillion comments, trackbacks and pingbacks all jumbled up. And it is almost impossible to make some sense of out of the entire mess. Want to follow the conversation? Try evading the trackbacks and pingbacks along the way.
What’s the solution?
Separate the two, of course.
But How?
That’s a good question. You will find plugins that do this but if you can manage something in the theme design, it is best to do so rather than install plugin upon plugin. Plugins are best used where you cannot achieve your objective without touching the core Wordpress files.
Continue Reading »
Add Comment Subscribe To RSS Feed
Topics: All Things Wordpress Code
High Quality Professional Minisite Templates For Only $7
This is a complete solution! We're Talking Full Blown Graphics--From Top To Bottom--At A FRACTION Of What You Would Pay A Designer! Find out more.