Wednesday, April 28th, 2010
Some websites disable right-click to prevent people from stealing their images. The problem is that this does NOT slow down people from stealing their images. People that steal images have SOOO many different ways about getting their images. Disabling right-click is the least effective way to prevent image stealing.
Tags: disable, enable, javascript, right click
Posted in Web Tricks | 2 Comments »
Monday, April 19th, 2010
If you don’t know what ternary operators are then you are missing out! The day I learned about ternary operators I nearly passed out. There are so many wasted lines of code if you don’t know about them. This is what a standard if ... else ... statement looks like using C, Obj-C, C++, C#, Java, or JavaScript:
Tags: c++, javascript, obj-c, ternary operators
Posted in Programming, Tutorial | 5 Comments »
Wednesday, February 17th, 2010
This will show you how to include the Kwista Hint script which will allow you to generate automatic hints in your form’s input fields. Automatic hints, by our definition, are input fields that contain predefined text in the field that provide the user with a hint as to what should be typed in the field. These hints are usually gray, though the colors and font styles can be changed through CSS. When the user focuses on the field (e.g., they click on it) the hint text is removed and the style of the text goes back to normal. If the user doesn’t type anything in the field, or they erase what they type, and they click away from the field then the hint text is returned to the field.
(more…)
Tags: hints, input fields, javascript, jquery, Programming
Posted in Programming, Scripts, Web Tricks | No Comments »