PHP, HTML, CSS, JQUERY, MYSQL Tutorials

999Tutorials.com – Your Tutorial Spot

Entries for the ‘Javascript’ Category

Select all options with jquery on submit

Today I ran into a problem when working on a site for a client. We have a form with two select’s. The left one is “available persons” to choose from and the right one is the persons that the user has chosen. To choose a person and “move” it to the right select the user [...]

Random image with javascript

Show a random image with the help of javascript. Only create the images and copy paste the script.
It’s very important that your web site is “alive” and it looks like something is happening.
One simple thing you can use to give your visitors something new is show them a random image every time they reload [...]

Change images with javascript

Change images on mouse over with javascript. Define the images and preload them.

It can sometimes be a nice effect to change images when the mouse is moved over.
For example if you have a file archive function and have directories, then the directory images can “open” when the mouse is moved over.

Show time spent on a site when they leave

Program a function that will show the visitor how long time they have spent on your site. When they leave, we use a javascript onUnload-function to alert the user with the number of seconds.
Javascript can be used for lots of things. I got this idea some minutes ago and thought that I write it down [...]

Fill an input field with the current date and time with javascript

Use javascript to fill an input field with the current date/time to save time for your self. A handy function with complete code and html to copy paste.
Save time for your self, and let javascript give you the current time.
We have a customer that enters lots of articles through a form, and one of the [...]

Print from javascript

You can’t actually print a document from javascript, but you can open the print dialog to the user.
Did you know that it’s possible to popup the print dialog window to your users?