geeky · non php code

label IDs and input effects

this is nothing new but i didn’t learn about it until yesterday and it totally made my day. basically if you use code like: clicking on the corresponding label text will check/uncheck the checkbox & radio buttons for you. click for an example. as long as the label for attribute matches the id attribute inside… Continue reading label IDs and input effects

geeky · non php code

wp lightbox plugin (make css validate)

Rainie Yang wee – i installed this really cool lightbox wordprerss plugin. it overlays photos in your wordpress. it’s so awesome. the girl in this photo is a chinese singer named rainie yang. if you wish to hear some of her songs, go here.

geeky · non php code

inline binary data display

would it be nice that all browsers can handle inline binary data display? actually just images will be fine. so no more image uploading.. just do something like: demo: this particular line is supported in firefox, safari and konqueror but not IE (yet). I will try out IE 7 next week. to read more interesting… Continue reading inline binary data display

geeky · non php code

time calculator

i had to add some time in hh:mm:ss format at work. i was like there was no way i would add those manually. so i looked for a program/script to do the work. since i didn’t find anything, i wrote my own. here it is. the most time consuming part is not the addition (which… Continue reading time calculator

geeky · non php code

rel="external"

for those who did not know this trick (someone emailed me and asked), I will share it with you here. since xhtml 1.0 strict does not allow the tag target=”_blank” you can still open links in new windows by using the tag rel=”external” to accomplish the same thing. but you will need to link an… Continue reading rel="external"

geeky · non php code

XHTML strict validated flash code

i put up a slideshow of the silver jewelry club photos i’ve saved. after i added the code given to me directly from slide.com, my site no longer validates with XHTML 1.0 strict rules. So I researched on valid flash embed code and found this nifty javascript trick for embedding flash. The code given to… Continue reading XHTML strict validated flash code

geeky · non php code

simple flip image javascript

sometimes you want an image to change when you select a different option in a dropdown, i used to do it the hard way: i had to write a new js function for every new dropdown i use. so i looked for an easier way and wrote something: to use it, do something like: obviously… Continue reading simple flip image javascript

non php code

return to top link without bookmark

i saw this on leslie’s site. i never thought of it before. the conventional way to do a “return to top” link is create a bookmark with: at the top of the page and then use: to link it. well there’s an easier way. this only works if you want to return to the very… Continue reading return to top link without bookmark