Javascript Code Snippets Tagged with javascript
(16)
Just a simple script which uses maths to detect whether or not a year is a leap year or not. If the year inputted
+ 0 likes
put this where you put html
replace 'background' with the background color of your site,
replace 'link' with the link you want it to go to, replace 'cmts' with the color you want the text to be when..
+ 0 likes
This snippet changes the color of an element which is selected from a list when called (OR it can change the color of an object to a specified color).
+ 0 likes
This is a code that will disable highlighting on a web page. Copy and paste this wherever you want on your web page. It is JavaScript. :)
+ 0 likes
This, is my first attempt of doing some javascript..
so there may be errors, but it does work!
Put the first part, into a php, or html file, etc
the second part, just needs to be put in a "clock.js"..
+ 0 likes
I find that lots of people new to AJAX can't get the grips because they don't understand the XMLHttpRequest, below is a help to that - this will handle the request, all that you have to fill in is the..
+ 0 likes
This is a very simple Javascript toggle that'll show or hide a div depending on its current state. Here is the HTML code:
+ 1 likes
Script is relatively simple, credit should be shown to several tutorials, particularly those on AJAX in www.w3schools.com I HAVE used my own work though :-)
What I find I love about AJAX is that..
+ 1 likes
+ 0 likes
I used this function on my latest website, found it came in handy and looked real nice;
Put this into any html page, the put this code for the bit that's to be toggled;
This is REALLY effective..
+ 0 likes
pretty straight forward. Get the code, save it in a filename.html then run it. Hover over one of the sites named above the horizontal line to get further information below.
This is just to help some..
+ 0 likes
Umm...I'm a bit new to Javascript, this is my first script in it o.0
+ 0 likes
This is my first javascript snippet on here, there are no "errors" as such, but i'm fairly sure i've done it in the longest way possible !
+ 0 likes
1. Copy/Paste this code in NotePad
2. Save As... snow.js
3. Upload on your hosting
4. Add this code to your web-site
+ 0 likes


