|
|
||
Javascript - Exemples JavascriptDerniers Scripts & FonctionsCodes et fonctions récentsUn calendrier
En utilisant la manipulation de dates comprenant un algorithme prenant soin des années bissextiles, on construit un calendrier centré sur la date du jour ou la date soumise par l'intermédiaire de l'url. Catégorie timers Récupérer les champs d'une URL
En utilisant la fonction location.search et d'autres fonctions de manipulation de chaîne de caractères et de tableau, nous pouvons rechercher les données et les exctraire depuis une Url. Catégorie navigation
Contrôl des champs d'une input box
Ce script est capable de contrôler en temps réel le contenu des champs d'une input box en faisant passer les caractères par une fonction filtrant les caractères non désirables. Il y a 2 exemples à l'appui, l'un pour n'autoriser que les chiffres et l'autres pour du texte uniquement.
Catégorie formulaires
Compter le nombre de mots et de caractères d'une textarea
Un webmaster a toujours besoin d'un script tel que celui ci afin de comptabiliser le nombre de caractères et le nombre de mots contenus dans une textarea. Ce script permet de le faire directement et est évoluable à souhait.
Catégorie formulaires
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...
Catégorie Arrière plan & documents
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.
Catégorie Arrière plan & documents
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.
Catégorie Arrière plan & documents
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.
catégorie Système utilisateur
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.
catégorie Système utilisateur
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.
Catégorie Arrière plan & documents
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.
Catégorie Arrière plan & documents
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.
Catégorie Arrière plan & documents
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.
Catégorie Arrière plan & documents
Display Title Information from Combo Box
This script can display the title information included inside the option tags of a select menu using getElementById.
Boutons, Combos & Scroleurs category
|
|
Catégories |