Archive for the ‘HTML’ Category
Common JavaScript/jQuery bugs in IE6-7-8
I always write my JavaScript scripts in Firefox, I test them in Firefox and then I move to Opera and Chrome/Safari. After my script works in all above browsers I try to make it work in IE at least version 8 (but sometimes also 7 and even 6).
Usually there are none to very little changes needed to port a script from Firefox to Opera & Chrome/Safari. Especially when I use jQuery library, but IE… that’s a different story.
How to style HTML file upload with CSS?
Styling <input type=”file”> is problematic, because most of the browsers don’t apply any styling to it.
But there is a nice hack, which works in major browser (including Firefox and Internet Explorer).
You just need to place a span, and in that space- nice looking text field which will imitate upload field and then the right upload [...]
How to make a WYSIWYG editor in Javascript
In this post I will show you a very simple WYSIWYG editor I wrote. Basically speaking all the WYSIWYG functions are done by the browser (not by JS). JS is needed only to control what should be done.
Different browsers support different set of functions.
jQuery Tooltip plugin by Jörn Zaefferer
If you want to replace standard hint box with something more visually attractive you should try jQuery Tooltip 1.3.
The plugin is small in size- less than 8 kB of uncompressed JS code and very easy to use.
Optimizing gif, jpg, png, html, css and js files
Kashmir Web Optimizer is a simple-to-use Windows application which can compress website specific files like CSS, JS, HTML, GIF, PNG and JPEG. The compression is lossless, so no real information is removed.
For JPEG files the application is mostly removing EXIF sections and comments. PNG and GIF files are recompressed with stronger compression. From HTML, JS and CSS files it is removing comments and unnecessary whitespace characters. And does even more!