School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

 

Code Snippets

  

JavaScript Source Code


Welcome to Dream.In.Code
Become an Expert!

Join 306,920 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,762 people online right now. Registration is fast and FREE... Join Now!





JavaScript



  1  2  3  >  »  

Link Randomizer in JavaScript by spearfish
Submitted: April 2, 2008        Views: 1505
Displays a random link (or image, or paragraph, or anything from that matter!) on a web page.
Submitted: May 26, 2006        Views: 5384
This is an easy way to hide email links on your website from email harvesters to help keep you safe from spam.
IMEI validator in JavaScript by smshUA
Submitted: June 7, 2007        Views: 3007
Validates mobile's IMEI number. Returns true if IMEI is right.
Submitted: October 12, 2008        Views: 1742
A function to calculate gas mileage.
Add to Favourites in JavaScript by deepamanohar
Submitted: May 5, 2008        Views: 795
Add to Favourites for IE and firefox.
Submitted: January 7, 2009        Views: 1353
Basically, this is set up to take a feed from an offsite (or onsite) URL and display it.
Submitted: February 21, 2009        Views: 1390
This function returns a string containing the Hexadecimal color representation of RGB values.
Submitted: August 9, 2007        Views: 1540
This is 2 snippets: 1) Function to set a cookie, pass it the name of the cookie, the value and the days its valid (until expiration) 2) Function to get the cookie by the name
Detect IE & Version in JavaScript by programble
Submitted: February 21, 2009        Views: 905
Gets the version of IE being used, or gets -1 for all other browsers.
Submitted: July 28, 2008        Views: 1511
How to make 2 divs be the same height without the use of static height in CSS, uses JS, HTML, and CSS
Markup Calculator in JavaScript by Nykc
Submitted: September 26, 2008        Views: 1656
Basic markup calculator based on points. Many retailers use points to markup there cost to determine a sales price. The formula for this is cost / (1.00 - .20) replace .20 with the number of points you want to markup. This snippet will take the unit cost in a field and number of points 20, 25, 30 whatever you want to use and perform the calculations from there.
Submitted: November 11, 2005        Views: 29900
While trying to make a "reloading" script for use with my transparent HTML/CSS backgrounds I came across a problem with IE. I couldn't use object.getElementsByName()! So I came up with this solution. Granted it's limited to one kind of tag right now, but it should make coding standard (X)HTML a little easier.
Submitted: February 27, 2005        Views: 19866
ORIGINALLY WRITTEN BY Sani, A. I.
Submitted: November 11, 2007        Views: 1205
pass the document to the function to remove all images. Useful for text based forums, to prevent unwanted image tags. Be sure to generate the document first to ensure all tags are picked up.
Serach engine in JavaScript by deadlypetal
Submitted: April 14, 2005        Views: 4545
Found it around the internet, it seems cool
Submitted: September 18, 2008        Views: 2675
A simple RTE
Static Date and Time in JavaScript by dhazard
Submitted: September 19, 2006        Views: 2323
Returns the current local date and time, filled with many options to customize it to how you like.
Time Of Day Greeting in JavaScript by Nykc
Submitted: February 14, 2008        Views: 1832
A basic script that greets users accordingly based on time of day.
Submitted: April 14, 2008        Views: 729
Surf selected links via a remote window on your website.
Submitted: February 12, 2008        Views: 2800
Uses innerHTML
Submitted: May 5, 2007        Views: 1565
dynamically create and display a link.
Submitted: April 29, 2008        Views: 5773
Check the validation for the textbox when we use the name as array type.
Blinking text in JavaScript by BetaWar
Submitted: October 9, 2008        Views: 3027
Simple script to make your text blink
BMI Calculator in JavaScript by OliveOyl3471
Submitted: November 11, 2008        Views: 2029
BMR Calculator in JavaScript by J0K3R
Submitted: May 18, 2009        Views: 385
You use energy no matter what you're doing, even when sleeping. Thus your Basal Metabolic Rate (BMR) is the number of calories you'd burn if you stayed in bed all day.
  1  2  3  >  »  


Submit a Code Snippet and get a chance to win a </dream.in.code> 1GB Thumb Drive!







Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month