Bloggeh.com
BJJ, technology, psychology & other cool stuff
BJJ, technology, psychology & other cool stuff
May 23rd
Cool script which displays ‘help text’ in a text box until it’s selected, then it disappears and allows the user to input text. It’s simple and just a few lines of javascript!
Javascript:
function clearText(field){
if (field.defaultValue == field.value) field.value = ”;
else if (field.value == ”) field.value = field.defaultValue;
}
Textbox input:
<input name=“s” type=“text” maxlength=“106″ id=“icePage_SearchBoxTop_qkw” class=“wsSearchBoxInputCommon wsSearchBoxInput” value=“Enter suburb name here, eg: hawthorn” onFocus=“clearText(this)” onBlur=“clearText(this)”/>
Jan 21st
Official Site: http://vikjavev.no/highslide/
.NET variation:? http://encosia.com/downloads/highslide-js-net/
Jan 10th
A good lightbox alternative, extremely lightweight (22kb!)
http://www.orangoo.com/labs/GreyBox/
There are issues with flash overlapping the greybox in Firefox 2+.? After hours of playing around I came up with the solution below:
1. Add wmode=”opaque” to the embed tag
2. Add the paramater: param name=”wmode” value=”opaque”
3. Put the flash content in a div, and set the z-index of that div to 2.
4. Place the content you are wanting to display in the greybox also in a div, with a z-index of 1.
Presto!
Jan 9th
Good Up-down Scroller:
http://www.dynamicdrive.com/dynamicindex2/crosstick.htm
Fading text
http://www.javascriptkit.com/dhtmltutors/fadingtext.shtml
Typing box
http://www.datacreek.net/webgear/javascript/msgbox.html