|
|
||
Javascript - Javascript Code SnippetWe build your scripts for freeYou can ask for a script anytime at the following forum: Javascript, CSS & HTML Forum thread Latest Scripts & FunctionsA Calendar
Using date manipulation including an algorithm taking care of the leap years, we generate a calendar centered on the current date or the date submitted via the query string. timers category Retrieve the query strings from an url
Using the location.search and few other string and array manipulation functions, we can retrieve the query string and exctract the content for any use. navigation category
Controling the content inside an input box
This script is able to control the content being typed inside input boxes. On key up, the last entered character is sent to a function which analyses the type of character and removes it in case it does not fit the allowed ones. There are 2 examples, one for digits only and another one allowing text without numbers.
Forms category
Counting words and characters
Counting words and counting characters inside a textarea box is very usefull when dealing with online forms. As an example when you wish the user to fill in data which should not exceed a certain amount of characters or and words, you can simply adapt this script.
Forms category
Graying out a page
On button click, the script grays out the whole page and displays a box where you can input content and other action script. For instance a redirection...
Background & Documents Effects category
Selecting several checkboxes
This script is often used on pages where you need to select all checkboxes in one row ticking a top one. For instance in webmail system.
Forms category
Filling a form through a frame
We use javascript to fill a form contained in the main frame from a left frame. Upon button click, the data is sent to the form.
Forms category
Mouse over rows
To add some appealing style to a table, this javascript code is helpful as we can not achieve this using CSS because of compatibility problems.
Background & Documents Effects category
Open Window Script
The use of an open window script is popular among the webmaster community and here is another example of a code which opens a window using few common options such as scrollbars, status bar, width, height...
Navigation & Redirection category
Document Object Model examples
This page introduces some DOM manipulations using few functions such as appendChild, nodeValue... It's a good start to browsing through a document dynamically and learning about its hierarchy.
Background & Documents Effects category
Generating an Html Page from a textarea box
This code snippet takes the html formated text from a textarea and build an html page dynamically.
User System category
Add to Bookmarks Script
The code allow you to add an url along with the title into the browser bookmarks. The script is compatible on recent IE and Mozilla/Firefox browsers.
User System category
Simple TreeView
This is a simple Treeview script which only uses CSS and javascript. The look is managed using 4 tiny images and the code is easily customizable.
Background & Documents Effects category
Mouse Coordinates & Box Displaying
Let's deal again with Box display. This time the script can retrieve the mouse pointer coordinates and display a box on which an opacity style is applied.
Background & Documents Effects category
Smooth div box Move
This code can help you designing parts of your site with hidden boxes appearing smoothly on demand. It uses the getElementById, setInterval and clearInterval functions.
Background & Documents Effects category
Showing & Hiding Div Box
This simple script provides a way to show and hide a div box in one click. It's commonly used on online Faq. It uses the getElementsByTagName function of javascript.
Background & Documents Effects category
Display Title Information from Combo Box
This script can display the title information included inside the option tags of a select menu using getElementById.
Buttons, Combos & Scrollers category
|
|
Categories |