Preventing A Form To Submit If A Field Is Empty
With this code, it alerts the user when the form is empty, but still submits it when the user clicks [OK]
With this code, it alerts the user when the form is empty, but still submits it when the user clicks [OK]
by using this script you can detect a mobile device
Today I will show you how to style the first word of module or page title like this:
Hello World
CSS doesn’t support this feature until now so we will make it by the help of JavaScript.
Here is the magic code to style the first word of a title (more…)
We wrote a script to “equalize” the heights of boxes within the same container and create a tidy grid — with little overhead.
Creating the visual effect of equal-height columns or content boxes has been a challenge ever since we abandoned table-based layouts. When developing complex web applications or site designs we’ve found that it often makes the most sense from a usability and performance standpoint to use a simple JavaScript workaround: our equalHeights() function determines the heights of all sibling elements in a container, and then sets each element’s minimum height to that of the tallest element. When JavaScript is disabled, the boxes or columns appear with varying heights, but the content remains legible and the page is still completely usable.
(more…)
Staggered import of large and very large MySQL Dumps (like phpMyAdmin 2.x Dumps) even through the web servers with hard runtime limit and those in safe mode. The script executes only a small part of the huge dump and restarts itself. The next session starts where the last was stopped.
download it from here
bigdump
Script site : http://www.ozerov.de/bigdump.php
(more…)
This tutorial is intended for developers who are familiar with PHP/MySQL, and want to learn how to use Google Maps with a MySQL database. After completing this tutorial, you will have a Google Map based off a database of places. The map will differentiate between two types of places—restaurants and bars—by giving their markers distinguishing icons. An info window with name and address information will display above a marker when clicked.
The tutorial is broken up into the following steps:
+ Creating the table
+ Populating the table
+ Outputting XML with PHP
+ Creating the map
(more…)
The basic code for a back button link is a very simple JavaScript. All you have to do with this back button JavaScript is copy the code and paste it…
Source: http://jquery.andreaseberhard.de/pngFix/
This plugin will fix the missing PNG-Transparency in Windows Internet Explorer 5.5 & 6.
Version 1.1, 2007-09-11
Tested on Windows XP SP2 with
– IE 5.5 + 6 + 7
Features
* unobtrusive script, simple to setup
* works now also with CSS-Backgrounds (but scaling backgrounds)
* works with PNG-Images within Links
* TITLE, ALT, CLASS and STYLE-Attributes are considered
(more…)
To make Name and Email auto hide/show like this: Details use this code:
Step 1: Add the below code to the section of your page: Step 2: Create either an image or text link that will be used as the Bookmark Site link.…