Affichage des articles dont le libellé est JavaScript. Afficher tous les articles
Affichage des articles dont le libellé est JavaScript. Afficher tous les articles

samedi 12 novembre 2016

15 Cool JavaScript Sample Snippets



alt="15 Cool JavaScript Sample Snippets" src="http://whsr.webrevenueinc1.netdna-cdn.com/wp-content/uploads/2015/04/default-image-500x308_c.jpg" />

A Quick Overview On JavaScript

JavaScript is used everywhere online these days – to improve website interactivity, to validate information, and/or to improve a website outlooks. JavaScript first appeared in 1995 and has come a long way since then in terms of being accepted and how it is used. The syntax used in JavaScript was strongly influenced by C; but Java, Pearl, Python, and Scheme also played its part too.

What Is JavaScript?

There’s an old YouTube clip answers the question well. Here goes.

class="border" width="600" height="437" src="http://www.youtube.com/embed/qtzjzMsJiO8" frameborder="0" allowfullscreen>

Beginner Tips: What You Need To Know?

For starters, a few basics you need to know are:

  • JavaScript can be turned off in the browser
  • JavaScript will run each time a page is loaded
  • JavaScript takes time to load on a slow Internet connection
  • JavaScript is still ran from cached pages
  • You can host JavaScript within a web page or externally from a .js file
  • JavaScript is completely different than Java

It is also important to understand that JavaScript will actually lead to disaster when it’s used in a wrong way. Poorly configured and sloppy coded JavaScripts will slow your website and damage the overall site navigation. This in turn affect the return rate of your visitors (due to bad user experience) as well as search engine rankings (due to slow website response rates).  To help validate my case here, put yourself in the shoes of a viewer. If a website you were visiting loaded slowly, was difficult to navigate, and in overall, unappealing – would you return to the site? I wouldn’t.

Below is a small list of things to think about when adding JavaScript to your website.

  • Is JavaScript required for the site to function properly?
  • What will the site look like if the JavaScript was blocked?
  • Will the JavaScript harm the server performance?
  • Will adding the JavaScript help move your site in the direction you want it to go?

No, I am not trying to scare you away with these points. In fact, don’t be afraid to use JavaScript on your websites as it provides tons benefits and, as mentioned, it’s used by the majorities. The key point I am trying to get across here is don’t just keep adding JavaScript features to a site when they are unnecessary. Some sites are will need more JavaScript than the rest; some just need less – Just because one site is doing it doesn’t mean you should do the same.

Freebies: 15 Cool JavaScript Snippets For Your Website

src="http://www.webhostingsecretrevealed.com/images/2012/0306-2.jpg" alt="JavaScript Snippet" class="border" />

Now, let’s get down to the stuffs that you came here for – below is a list of 15 JavaScript snippets that will enhance your site in either functionality or appearance. The code will be broken down into two sections, the head and body or .js file. If no section title is given then it is not needed for that particular snippet.

Understanding HTML5 Video

Quick Sample

<script type="text/javascript">

function understands_video() {
return !!document.createElement(‘video’).canPlayType; // boolean
}

if ( !understands_video() ) {
// Must be older browser or IE.
// Maybe do something like hide custom
// HTML5 controls. Or whatever…
videoControls.style.display = ‘none’;
}

</script>

What does the JavaScript snippet do?


This little snippet will prevent your website from trying to display a video that the browser cannot support, saving you bandwidth and processing power.

JavaScript Cookies/>

Quick Sample

<script type="text/javascript">

/**

* Sets a Cookie with the given name and value.

*

* name       Name of the cookie

* value      Value of the cookie

* [expires]  Expiration date of the cookie (default: end of current session)

* [path]     Path where the cookie is valid (default: path of calling document)

* [domain]   Domain where the cookie is valid

*              (default: domain of calling document)

* [secure]   Boolean value indicating if the cookie transmission requires a

*              secure transmission

*/                        

function setCookie(name, value, expires, path, domain, secure) {

    document.cookie= name + "=" + escape(value) +

        ((expires) ? "; expires=" + expires.toGMTString() : "") +

        ((path) ? "; path=" + path : "") +

        ((domain) ? "; domain=" + domain : "") +

        ((secure) ? "; secure" : "");

}

</script>

 

<script type="text/javascript">

/**

* Gets the value of the specified cookie.

*

* name  Name of the desired cookie.

*

* Returns a string containing value of specified cookie,

*   or null if cookie does not exist.

*/

function getCookie(name) {

    var dc = document.cookie;

    var prefix = name + "=";

    var begin = dc.indexOf("; " + prefix);

    if (begin == -1) {

        begin = dc.indexOf(prefix);

        if (begin != 0) return null;

    } else {

        begin += 2;

    }

    var end = document.cookie.indexOf(";", begin);

    if (end == -1) {

        end = dc.length;

    }

    return unescape(dc.substring(begin + prefix.length, end));

}

</script>

 

<script type="text/javascript">

/**

* Deletes the specified cookie.

*

* name      name of the cookie

* [path]    path of the cookie (must be same as path used to create cookie)

* [domain]  domain of the cookie (must be same as domain used to create cookie)

*/

function deleteCookie(name, path, domain) {

    if (getCookie(name)) {

        document.cookie = name + "=" +

            ((path) ? "; path=" + path : "") +

            ((domain) ? "; domain=" + domain : "") +

            "; expires=Thu, 01-Jan-70 00:00:01 GMT";

    }

}

</script>

What does the JavaScript snippet do?

This snippet is a little long but very useful, it will allow your site to store information on the viewer’s computer then read it at another point in time. This snippet can be used in many different ways to accomplish different tasks.

Preload your images/>

Quick Sample

<script type="text/javascript">

var images = new Array();

function preloadImages(){

    for (i=0; i < preloadImages.arguments.length; i++){

         images[i] = new Image();

        images[i].src = preloadImages.arguments[i];

    }

}

preloadImages("logo.jpg", "main_bg.jpg", "body_bg.jpg", "header_bg.jpg");

</script>

What does the JavaScript snippet do?

This snippet will prevent your site from having that awkward time when it is only displaying part of the site; this not only looks bad but is also unprofessional. All you have to do is add your images to the preloadImages section and you are ready to roll.

E-mail Validation

Quick Sample

Head:

<script type="text/javascript">
function validateEmail(theForm) {
if (/^w+([.-]?w+)*@w+([.-]?w+)*(.w{2,3})+$/.test(theForm.email-id.value)){
return(true);
}
alert("Invalid e-mail address! Please enter again carefully!.");
return(false);
}
</script>

Body:

<form onSubmit="return validateEmail(this);" action="">
E-mail Address:
<input type="text" name="emailid" />
<input type="submit" value="Submit" />
<input type="reset" value="Reset" />
</form>

What does the JavaScript snippet do?

This snippet will validate that a properly formatted E-mail address is entered in a form, it cannot guarantee that the E-mail address is real, there is no way to check for that with JavaScript.

No Right-Click

Quick Sample

<script type="text/javascript">
function f1() {
  if(document.all) { return false; }
}
function f2(e) {
  if(document.layers || (document.getElementById &! document.all)) {
    if(e.which==2 || e.which==3) { return false; }
  }
}
if(document.layers) {
  document.captureEvents(Event.MOUSEDOWN);
  document.onmousedown = f1;
}
else {
  document.onmouseup = f2;
  document.oncontextmenu = f1;
}
document.oncontextmenu = new function("return false");
</script>

What does the JavaScript snippet do?

This snippet will prevent the viewer from being able to right-click on your page. This can discourage the average user from borrow images or code from your site.

Display Random Quotes

Quick Sample

Head:

<script type="text/javascript">
  writeRandomQuote = function () {
    var quotes = new Array();
    quotes[0] = "Action is the real measure of intelligence.";
    quotes[1] = "Baseball has the great advantage over cricket of being sooner ended.";
    quotes[2] = "Every goal, every action, every thought, every feeling one experiences, whether it be consciously or unconsciously known, is an attempt to increase one’s level of peace of mind.";
    quotes[3] = "A good head and a good heart are always a formidable combination.";
    var rand = Math.floor(Math.random()*quotes.length);
    document.write(quotes[rand]);
  }
  writeRandomQuote();
</script>

Body:

<script type="text/javascript">writeRandomQuote();</script>

What does the JavaScript snippet do?

Ok so this is not a snippet that all sites would use but it can be used to display more than just random quotes. You can change the content ok the quotes to whatever you want and have random images or text displayed anywhere on your site.

Previous/Next Links

Quick Sample

<a href="javascript:history.back(1)">Previous Page</a> | <a href="javascript:history.back(-1)">Next Page</a>

What does the JavaScript snippet do?

This snippet is great if you have multiple pages on an article or tutorial. It will allow the user the browse between the pages with ease. It is also small and light weight from a resource point of view.

Bookmark a Page

Quick Sample

<a href="javascript:window.external.AddFavorite(‘http://www.yoursite.com’, ‘Your Site Name’)">Add to Favorites</a>

What does the JavaScript snippet do?

This snippet will allow the user to bookmark your page with ease; all they have to do is click the link. Its little features like this that can increase your viewers overall experience.

Easy Print Page Link

Quick Sample

<a href="javascript:window.print();">Print Page</a>

What does the JavaScript snippet do?

This little link will allow your views to easily print your page. It utilizes the quick print feature already setup by your browser and utilizes no resources until it is clicked.

Show Formatted Date

Quick Sample

Head:

<script type="text/javascript">
  function showDate() {
    var d = new Date();
    var curr_date = d.getDate();
    var curr_month = d.getMonth() + 1; //months are zero based
    var curr_year = d.getFullYear();
    document.write(curr_date + "-" + curr_month + "-" + curr_year);
  }
</script>

Body:

<script type="text/javascript">showDate();</script>

What does the JavaScript snippet do?

This snippet will allow you to display the current date anywhere on your webpage and does not need to be updated. Simply put it in place and forget about it.

Comma Separator

Quick Sample

Head:

<script type="text/javascript">
function addCommas(num) {
  num += ”;
  var n1 = num.split(‘.’);
  var n2 = n1[0];
  var n3 = n1.length > 1 ? ‘.’ + n1[1] : ”;
  var temp = /(d+)(d{3})/;
  while (temp.test(n2)) {
    n2 = n2.replace(temp, ” + ‘,’ + ”);
  }
  var out = return n2 + n3;
  document.write(out);
}
</script>

Body:

<script type="text/javascript">addCommas("4550989023");</script>

What does the JavaScript snippet do?

This snippet would be used mainly by sites that use numbers often. This snippet will keep your numbers looking the same across the board. All you have to do is copy the body line where you want to add a number and replace the number there with your number.

Get the Display Area of a Browser/>

Quick Sample

<script type="text/javascript">

<!–

var viewportwidth;

var viewportheight;

// the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight

if (typeof window.innerWidth != ‘undefined’)

{

      viewportwidth = window.innerWidth,

      viewportheight = window.innerHeight

}

// IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document)

else if (typeof document.documentElement != ‘undefined’

     && typeof document.documentElement.clientWidth !=

     ‘undefined’ && document.documentElement.clientWidth != 0)

{

       viewportwidth = document.documentElement.clientWidth,

       viewportheight = document.documentElement.clientHeight

}

// older versions of IE

else

{

       viewportwidth = document.getElementsByTagName(‘body’)[0].clientWidth,

       viewportheight = document.getElementsByTagName(‘body’)[0].clientHeight

}

document.write(‘<p>Your viewport width is ‘+viewportwidth+’x’+viewportheight+'</p>’);

//–>

</script>

What does the JavaScript snippet do?

This snippet will allow you to get the width and height of the display area in your views browser. This will give the designer the ability to create and use different displays based on the size of the user’s browser window.

Redirect with Optional Delay

Quick Sample

<script type="text/javascript">

setTimeout( "window.location.href =

‘http://walkerwines.com.au/’", 5*1000 );

</script>

What does the JavaScript snippet do?

This snippet will allow you to redirect your viewers to another page and it has the option of setting a delay. The use of this snippet is pretty self-explanatory and it is a very valuable tool to have in your belt.

Detect iPhones

Sample

<script type="text/javascript">

if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) {

    if (document.cookie.indexOf("iphone_redirect=false") == -1) {

        window.location = "http://m.espn.go.com/wireless/?iphone&i=COMR";

    }

}

</script>

What does the JavaScript snippet do?

This snippet will allow you to detect if your viewer is on an iPhone or iPod allowing you to display different content to them. This snippet is invaluable with how large the mobile market is and it is only going to continue to grow.

Print Message to Status Bar

Quick Sample

<script language="javascript" type="text/javascript">
<!–
   window.status = "<TYPE YOUR MESSAGE>";
// –>
</script>

What does the JavaScript snippet do?


This little snippet will allow you to print a message to the status bar. You can display recent or important news in an area the will catch the eye of the user.


Page 25 – Web Hosting Secret Revealed




Year End Roundup: 30 Must Read Javascript Tutorials



alt="Year End Roundup: 30 Must Read Javascript Tutorials" src="http://whsr.webrevenueinc1.netdna-cdn.com/wp-content/uploads/2012/12/javascript-500x360_c.jpg" />

Learing Javascript can be more difficult compared to learning other coding systems. These 30 Javascript tutorials will help you grow more as a better web developer in order to create an innovative and user-friendly website or blog.

Also check out our another year end round up post: href="http://www.webhostingsecretrevealed.net/blog/web-design/year-end-roundup-30-must-read-jquery-tutorials/">30 Must Read jQuery Tutorials.

1. Introduction to Javascript Source Maps

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/Top30Javascript-1.jpg" alt="JavaScript Tutorials Roundup" width="750px" />

Would you like be able to keep your client-side code readable and debuggable? This tutorial serves as a good introduction to Javascript source maps and why it’s important.

class="meteor-icon" style="font-size:12px !important;">
class="icon-angle-right" style="color:inherit !important;">
rel="nofollow" href="http://www.thecssninja.com/javascript/source-mapping" target="_blank">Click here to read this tutorial.

2. Javascript Motion Detection

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/Top30Javascript-2.jpg" alt="JavaScript Tutorials Roundup" width="750px" />

With a webcam and a little bit of Javascript skills, this tutorial introduces Javascript motion detection.

class="meteor-icon" style="font-size:12px !important;">
class="icon-angle-right" style="color:inherit !important;">
href="http://www.soundstep.com/blog/2012/03/22/javascript-motion-detection/" target="_blank">Click here to read this tutorial.

3. Developing, Linting, Testing and Distributing Javascript

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/Top30Javascript-3.jpg" alt="JavaScript Tutorials Roundup" width="750px" />

In this tutorial, you’ll learn how to develop, lint, test and distribute Javascript in order to produce high quality and well-documented Javascript codes.

class="meteor-icon" style="font-size:12px !important;">
class="icon-angle-right" style="color:inherit !important;">
rel="nofollow" href="http://custardbelly.com/blog/2012/02/07/current-workflow-developing-linting-testing-and-distributing-javascript/" target="_blank">Click here to read this tutorial.

4. Javascript Design Patterns: Proxy

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/Top30Javascript-4.jpg" alt="JavaScript Tutorials Roundup" width="750px" />

Ever wondered what a proxy is for? This tutorial teaches you more about proxy and how to control access to a Javascript object via proxy.

class="meteor-icon" style="font-size:12px !important;">
class="icon-angle-right" style="color:inherit !important;">
rel="nofollow" href="http://www.joezimjs.com/javascript/javascript-design-patterns-proxy/" target="_blank">Click here to read this tutorial.

5. Physics Engine in Javascript for Angry Birds Like Games

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/Top30Javascript-5.jpg" alt="JavaScript Tutorials Roundup" width="750px" />

Like playing games on your smartphone? Are you a fan of Angry Birds? In this tutorial, you’ll learn the physics in Javascript of games like Angry Birds.

class="meteor-icon" style="font-size:12px !important;">
class="icon-angle-right" style="color:inherit !important;">
rel="nofollow" href="http://code.google.com/p/box2dweb/" target="_blank">Click here to read this tutorial.

6. How to Use a Javascript-Based Multi-User Chat Client

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/Top30Javascript-6.jpg" alt="JavaScript Tutorials Roundup" width="750px" />

Although there are many other web-based chat clients in the Internet world, Candy is a Javascript-based multi-user chat client that beats them all. Check out this tutorial to learn why Candy is better and how to use integrate it to your website.

class="meteor-icon" style="font-size:12px !important;">
class="icon-angle-right" style="color:inherit !important;">
rel="nofollow" href="http://candy-chat.github.com/candy/" target="_blank">Click here to read this tutorial.

7. Javascript: Learn How to Use Regular Expressions

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/Top30Javascript-7.jpg" alt="JavaScript Tutorials Roundup" width="750px" />

This brief tutorial teaches you from the basics of regular expressions to a more complex discussion of how a regular expression engine works.

class="meteor-icon" style="font-size:12px !important;">
class="icon-angle-right" style="color:inherit !important;">
rel="nofollow" href="http://www.regular-expressions.info/tutorial.html" target="_blank">Click here to read this tutorial.

8. Object-Oriented Javascript: Creating Classes, Properties and Methods

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/Top30Javascript-8.jpg" alt="JavaScript Tutorials Roundup" width="750px" />

This video tutorial teaches you the fundamentals of Javascript, from creating classes to various methods in Javascript.

class="meteor-icon" style="font-size:12px !important;">
class="icon-angle-right" style="color:inherit !important;">
rel="nofollow" href="http://www.gotoandlearn.com/play.php?id=159" target="_blank">Click here to read this tutorial.

9. Grabbing Dominant Color from Images

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/Top30Javascript-9.jpg" alt="JavaScript Tutorials Roundup" width="750px" />

In this tutorial, you’ll learn how to use Javascript and Canvas to grab a representative color palette from a specific image.

class="meteor-icon" style="font-size:12px !important;">
class="icon-angle-right" style="color:inherit !important;">
rel="nofollow" href="https://github.com/lokesh/color-thief" target="_blank">Click here to read this tutorial.

10. Create Impressive Web Animated Presentation Slides Within 10 Minutes

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/Top30Javascript-10.jpg" alt="JavaScript Tutorials Roundup" width="750px" />

While presentation slides are often done on Microsoft Powerpoint, this tutorial teaches you how to create an animated presentation in 10 minutes without using an animation authoring software.

class="meteor-icon" style="font-size:12px !important;">
class="icon-angle-right" style="color:inherit !important;">
rel="nofollow" href="http://www.onlywebpro.com/2012/03/18/creae-impressive-web-animated-presentation-slides-within-10-minutes/" target="_blank">Click here to read this tutorial.

11. Create a Draggable Images Boxes Grid

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/Top30Javascript-11.jpg" alt="JavaScript Tutorials Roundup" width="750px" />

In this tutorial, you’ll learn how to create a draggable grid of images that shows boxes of thumbnails and menu-like items.

class="meteor-icon" style="font-size:12px !important;">
class="icon-angle-right" style="color:inherit !important;">
rel="nofollow" href="http://tympanus.net/codrops/2011/10/07/draggable-image-boxes-grid/" target="_blank">Click here to read this tutorial.

12. How to Implement Email Validation Using Javascript

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/Top30Javascript-12.jpg" alt="JavaScript Tutorials Roundup" width="750px" />

Javascript can be used to validate form data before it is submitted to a server. This tutorial teaches you how to do so in order to speed up the loading time of your web application.

class="meteor-icon" style="font-size:12px !important;">
class="icon-angle-right" style="color:inherit !important;">
rel="nofollow" href="http://www.codekhan.com/2011/12/how-to-implement-email-validation-using.html" target="_blank">Click here to read this tutorial.

13. Javascript Text Box Characters Counter

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/Top30Javascript-13.jpg" alt="JavaScript Tutorials Roundup" width="750px" />

In this tutorial, you’ll learn how to limit the number of characters your visitors can type into an input or text area field.

class="meteor-icon" style="font-size:12px !important;">
class="icon-angle-right" style="color:inherit !important;">
rel="nofollow" href="http://www.reconn.us/content/view/34/46/" target="_blank">Click here to read this tutorial.

14. Creating a Slideshow Using Only Javascript, HTML and CSS

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/Top30Javascript-14.jpg" alt="JavaScript Tutorials Roundup" width="750px" />

Want to learn how to create a slideshow by only using Javascript, HTML and CSS? This tutorial teaches you how.

class="meteor-icon" style="font-size:12px !important;">
class="icon-angle-right" style="color:inherit !important;">
rel="nofollow" href="http://forum.codecall.net/topic/57992-creating-a-slideshow-using-only-javascript-html-and-css-part-1/" target="_blank">Click here to read this tutorial.

15. Using List.js to Make Your Lists Searchable and Filterable

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/Top30Javascript-15.jpg" alt="JavaScript Tutorials Roundup" width="750px" />

Looking for a Javascript that makes your list searchable, sortable and filterable? You’ve come to the right place! Check this tutorial out.

class="meteor-icon" style="font-size:12px !important;">
class="icon-angle-right" style="color:inherit !important;">
rel="nofollow" href="https://github.com/javve/list/blob/master/README.md" target="_blank">Click here to read this tutorial.

16. Javascript: Beautiful Carousel

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/Top30Javascript-16.jpg" alt="JavaScript Tutorials Roundup" width="750px" />

This tutorial teaches you to create a spinning carousel for your icons using Javascript.

class="meteor-icon" style="font-size:12px !important;">
class="icon-angle-right" style="color:inherit !important;">
rel="nofollow" href="http://csstips.org/2012/03/08/javascript-tutorial-beautiful-carousel01/" target="_blank">Click here to read this tutorial.

17. Using Moment.js to Parse, Manipulate and Format Dates

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/Top30Javascript-17.jpg" alt="JavaScript Tutorials Roundup" width="750px" />

Want to be able to parse, manipulate and format dates? This tutorial teaches you how to do all of those using Moment.js.

class="meteor-icon" style="font-size:12px !important;">
class="icon-angle-right" style="color:inherit !important;">
rel="nofollow" href="http://momentjs.com/docs/" target="_blank">Click here to read this tutorial.

18. 90 Useful Open-Sourced Node.js Modules

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/Top30Javascript-18.jpg" alt="JavaScript Tutorials Roundup" width="750px" />

What better way to learn Node.js by reading open-sourced Node.js modules? Check out this tutorial to see 90 different open-sourced modules.

class="meteor-icon" style="font-size:12px !important;">
class="icon-angle-right" style="color:inherit !important;">
rel="nofollow" href="http://www.catonmat.net/blog/browserling-open-sources-90-node-modules/" target="_blank">Click here to read this tutorial.

19. Persisting a Todo List with MongoDB and Geddy

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/Top30Javascript-19.jpg" alt="JavaScript Tutorials Roundup" width="750px" />

In this tutorial, you’ll learn how to create a to-do list management app using MongoDB and Geddy.

class="meteor-icon" style="font-size:12px !important;">
class="icon-angle-right" style="color:inherit !important;">
rel="nofollow" href="http://net.tutsplus.com/tutorials/javascript-ajax/persisting-your-todo-list-with-mongodb-and-geddy/" target="_blank">Click here to read this tutorial.

20. How to Create a Helpful Plugin with Twitter Anywhere

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/Top30Javascript-20.jpg" alt="JavaScript Tutorials Roundup" width="750px" />

Like tweeting websites and images that you find online? This tutorial teaches you how to create a plugin that’ll let you share anything with just a click of your mouse.

class="meteor-icon" style="font-size:12px !important;">
class="icon-angle-right" style="color:inherit !important;">
rel="nofollow" href="http://net.tutsplus.com/tutorials/javascript-ajax/how-to-create-a-helpful-plugin-with-twitter-anywhere/" target="_blank">Click here to read this tutorial.

21. From jQuery to Javascript: A Reference

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/Top30Javascript-21.jpg" alt="JavaScript Tutorials Roundup" width="750px" />

When learning Javascript, most people first master jQuery before entering the world of Javascript. In this tutorial, you’ll learn how to convert jQuery tasks to Javascript APIs.

class="meteor-icon" style="font-size:12px !important;">
class="icon-angle-right" style="color:inherit !important;">
rel="nofollow" href="http://net.tutsplus.com/tutorials/javascript-ajax/from-jquery-to-javascript-a-reference/" target="_blank">Click here to read this tutorial.

22. Refresh CSS Automatically with CSSRefresh Javascript

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/Top30Javascript-22.jpg" alt="JavaScript Tutorials Roundup" width="750px" />

In this tutorial, you’ll learn how to use CSS Refresh so that you won’t have to refresh and wait for your browser to load whenever you make changes to your CSS files.

class="meteor-icon" style="font-size:12px !important;">
class="icon-angle-right" style="color:inherit !important;">
rel="nofollow" href="http://www.paulund.co.uk/refresh-css-automatically-with-cssrefresh-javascript" target="_blank">Click here to read this tutorial.

23. How to Create Nice Looking Dropdowns Using DropKick.js

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/Top30Javascript-23.jpg" alt="JavaScript Tutorials Roundup" width="750px" />

Creating custom dropdowns can be a difficult task at times, especially if you’ve just started learning Javascript. This tutorial teaches you how to use DropKick.js to create a simple but clean-looking dropdown.

class="meteor-icon" style="font-size:12px !important;">
class="icon-angle-right" style="color:inherit !important;">
rel="nofollow" href="http://www.paulund.co.uk/how-create-nice-looking-dropdowns-using-dropkick-js" target="_blank">Click here to read this tutorial.

24. How to Create an Exchange Rate Money Converter with Money.js

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/Top30Javascript-24.jpg" alt="JavaScript Tutorials Roundup" width="750px" />

With the help of Money.js, you can create your own exchange rate money converter by reading this tutorial.

class="meteor-icon" style="font-size:12px !important;">
class="icon-angle-right" style="color:inherit !important;">
rel="nofollow" href="http://www.paulund.co.uk/how-to-create-an-exchange-rate-money-converter-with-money-js" target="_blank">Click here to read this tutorial.

25. Create a Bar Graph with HTML5 Canvas and Javascript

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/Top30Javascript-25.jpg" alt="JavaScript Tutorials Roundup" width="750px" />

Are you a big fan of creating bar graphs for presentations and displaying certain information on your website? This tutorial teaches you how to create a bar graph using HTML5 Canvas and Javascript.

class="meteor-icon" style="font-size:12px !important;">
class="icon-angle-right" style="color:inherit !important;">
rel="nofollow" href="http://www.williammalone.com/articles/html5-canvas-javascript-bar-graph/" target="_blank">Click here to read this tutorial.

26. iPhoto-like Image Resizing Using Javascript

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/Top30Javascript-26.jpg" alt="JavaScript Tutorials Roundup" width="750px" />

Want to be able to resize photos just like the iPhoto application? In this tutorial, you’ll learn how to use Javascript to achieve the same resizing option.

class="meteor-icon" style="font-size:12px !important;">
class="icon-angle-right" style="color:inherit !important;">
rel="nofollow" href="http://agilepartners.com/blog/2005/12/07/iphoto-image-resizing-using-javascript/" target="_blank">Click here to read this tutorial.

27. The 11 Javascript Mistakes You’re Making

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/Top30Javascript-27.jpg" alt="JavaScript Tutorials Roundup" width="750px" />

Javascript may be easy to learn, but it is also to make unnoticeable mistakes. This tutorial mentions the 11 common Javascript mistakes and how to avoid them.

class="meteor-icon" style="font-size:12px !important;">
class="icon-angle-right" style="color:inherit !important;">
rel="nofollow" href="http://net.tutsplus.com/tutorials/javascript-ajax/the-10-javascript-mistakes-youre-making/" target="_blank">Click here to read this tutorial.

28. Create a Game Character with HTML5 and Javascript

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/Top30Javascript-28.jpg" alt="JavaScript Tutorials Roundup" width="750px" />

Like video games? In this tutorial, you’ll learn how to create a game character using HTML5 and JavaScript. If you decide to continue following the next parts of the tutorial, you’ll learn how to apply a number of animations to your character.

class="meteor-icon" style="font-size:12px !important;">
class="icon-angle-right" style="color:inherit !important;">
rel="nofollow"href="http://www.williammalone.com/articles/create-html5-canvas-javascript-game-character/1/" target="_blank">Click here to read this tutorial.

29. Add Basic Form Functionality with Javascript

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/Top30Javascript-29.jpg" alt="JavaScript Tutorials Roundup" width="750px" />

If you have a login form where the fields need to fit along with the necessary labels, in this tutorial you’ll learn how to add basic form functionality with Javascript.

class="meteor-icon" style="font-size:12px !important;">
class="icon-angle-right" style="color:inherit !important;">
rel="nofollow" href="http://webdesignfan.com/add-basic-form-functionality-with-javascript/" target="_blank">Click here to read this tutorial.

30. Better CoffeeScript Testing with Mocha

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/Top30Javascript-30.jpg" alt="JavaScript Tutorials Roundup" width="750px" />

If you’ve been working on a lot of CoffeeScript work and want to be able to test from CoffeeScript directly without having to convert to Javascript each time, this tutorial teaches you how to do so.

class="meteor-icon" style="font-size:12px !important;">
class="icon-angle-right" style="color:inherit !important;">
rel="nofollow" href="http://net.tutsplus.com/tutorials/javascript-ajax/better-coffeescript-testing-with-mocha/" target="_blank">Click here to read this tutorial.


Page 22 – Web Hosting Secret Revealed




Design Inspiration: 30 Unique JavaScript Website



alt="Design Inspiration: 30 Unique JavaScript Website" src="http://whsr.webrevenueinc1.netdna-cdn.com/wp-content/uploads/2014/12/morgule-500x375_c.jpg" />

JavaScript can be used to spice up any website by making it dynamic, let’s face it looking at a plain HTML webpage is just boring.  You can use JavaScript in many different ways to meet the needs of your website but a couple common uses include, creating mouse over affects, interactive menus, and validate user input.

1. Monofactor

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/0323-1.jpg" alt="JavaScript Samples" width="750" />

Monofactor is a website that uses a hand full of JavaScript scripts to create a dynamic yet professional appearance. The developers used enough JavaScript to make the page dynamic butto much that it is overpowering.

class="meteor-icon" style="font-size:130% !important;">
class="icon-link" style="color:inherit !important;">
href="http://www.monofactor.com/">Take a look at Monofactor

2. Netdreams

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/0323-2.jpg" alt="JavaScript Samples" width="750" />

Netdreams uses JavaScript to expand sections of the page without reloading it. It gives the page a cooleffect slowing it down by having to refresh on every click.

class="meteor-icon" style="font-size:130% !important;">
class="icon-link" style="color:inherit !important;">
href="http://www.netdreams.co.uk/index.php/what-we-do/web-services/">Drop by Netdreams and take a look

3. Creasenso

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/0323-3.jpg" alt="JavaScript Samples" width="750" />

Creasenso uses JavaScript in their navigation to expand the information in the pictures. This gives the website anice feel along with a professional look for the industry.

class="meteor-icon" style="font-size:130% !important;">
class="icon-link" style="color:inherit !important;">
href="http://www.creasenso.fr/freelances/motion/">View Creasenso site now

4. Apple

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/0323-4.jpg" alt="JavaScript Samples" width="750" />

Apple uses JavaScript all over their site to provide it with a truly dynamic website. It is very apparent that Apple spent some serious time designing this site.

class="meteor-icon" style="font-size:130% !important;">
class="icon-link" style="color:inherit !important;">
href="http://www.apple.com/mac/">Stop by Apple and check out the sites beauty

5. Navigiant

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/0323-5.jpg" alt="JavaScript Samples" width="750" />

Navigiant uses JavaScript to create an effective multi-layer navigation menu that really makes the site stand out. They also have a nice gallery in the bottom left corner that provides the user additional information without cluttering the page.

class="meteor-icon" style="font-size:130% !important;">
class="icon-link" style="color:inherit !important;">
href="http://www.navigantconsulting.com/">Take a look at Navigiants’ website

6. Search Inside Video

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/0323-6.jpg" alt="JavaScript Samples" width="750" />

Search Inside Video has a movie stile navigation menu that is powered by JavaScript and scrolls to the proper section of the site based on the menu choice. It uses a single page design so it never needs to be reloaded.

class="meteor-icon" style="font-size:130% !important;">
class="icon-link" style="color:inherit !important;">
href="http://searchinsidevideo.com/">Check out Search Inside Video’s website

7. Eric Johansson

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/0323-7.jpg" alt="JavaScript Samples" width="750" />

This is one of the most unique website I have come across so far. The web developer used a scroll bar at the bottom of the page that drags a guy on a scooter across the page. Once you get to one of the menu sections you can drag down the menu and make a selection.

class="meteor-icon" style="font-size:130% !important;">
class="icon-link" style="color:inherit !important;">
href="http://www.ericj.se/">Stop on by Eric Johansson’s website now

8. Dragon Interactive

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/0323-8.jpg" alt="JavaScript Samples" width="750" />

Dragon Interactive uses JavaScript to make the buttons on the site look like they were created with Flash. When you scroll over one of the button it gradually changes color to go from the grey to a dark blue as shown in the picture above. Overall I really like this design because it is very interactive and professional at the same time, this combination is sometimes difficult to achieve.

class="meteor-icon" style="font-size:130% !important;">
class="icon-link" style="color:inherit !important;">
href="http://dragoninteractive.com/">Take a look at Dragon Interactive

9. JMar’s Blog

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/0323-9.jpg" alt="JavaScript Samples" width="750" />

JMar’s Blog uses JavaScript to create a mouse over effect that changes the color of the button and displays a detailed description in the right hand section of the page. This website is a little different but I like how it looks and how the webmaster used JavaScript to make it different.

class="meteor-icon" style="font-size:130% !important;">
class="icon-link" style="color:inherit !important;">
href="http://blog.jeremymartin.name/"> Take a look at JMar’s Blog

10. Coda

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/0323-10.jpg" alt="JavaScript Samples" width="750" />

Coda is a one-page website developer that used JavaScript on their page to make it appealing and functional. When you click on one of the links it scrolls the gallery section to a new page instead of reloading the entire page. This helps to keep users on the page, reduce the load on the server, and looks great.

class="meteor-icon" style="font-size:130% !important;">
class="icon-link" style="color:inherit !important;">
href="http://www.panic.com/coda/">View Coda’s site

11. Aviary

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/0323-11.jpg" alt="JavaScript Samples" width="750" />

Aviary is an impressive looking website that pushes the envelope on design and functionality. They included a JavaScript navigation bar that has images in the sub-category section; this is not seen often and gives the site a unique feel.

class="meteor-icon" style="font-size:130% !important;">
class="icon-link" style="color:inherit !important;">
href="http://www.aviary.com/">Check out Aviary’s site now

12. Podcast Tuneup

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/0323-12.jpg" alt="JavaScript Samples" width="750" />

Podcast Tuneup uses JavaScript to create a nice tabbed section under the gallery. This gives the site a nice feeland still provides all the information to the view without cluttering the site.

class="meteor-icon" style="font-size:130% !important;">
class="icon-link" style="color:inherit !important;">
href="http://www.podcast-tuneup.com/">Stop by Podcast Tunup today

13. We Were Sofa

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/0323-13.jpg" alt="JavaScript Samples" width="750" />

We Were Sofa is a professional looking functional website that uses JavaScript to refresh the bottom section of the page based on your selection from the navigation menu. This gives the site a single page feel but does not leave all the information visible like most single page sties do.

class="meteor-icon" style="font-size:130% !important;">
class="icon-link" style="color:inherit !important;">
href="http://www.madebysofa.com/">View We Were Sofa’s site now

14. Alex Buga’s Livingroom

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/0323-14.jpg" alt="JavaScript Samples" width="750" />

Alex Buga’s Livingroom uses a well-mixed verity of JavaScript scripts to make this site truly unique. This site allows you to drag open the navigation bar at the top or scroll over the glass shelf’s to watch them open.

class="meteor-icon" style="font-size:130% !important;">
class="icon-link" style="color:inherit !important;">
href="http://www.alexbuga.com/v9/#welcome">Take a look at Alex Buga’s Livingroom

15. Kobe

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/0323-15.jpg" alt="JavaScript Samples" width="750" />

Kobe uses a mixture of JavaScript and Flash to give their site a unique feel. When you click on the menu items, JavaScript is used to slide the requested information into the display area.

class="meteor-icon" style="font-size:130% !important;">
class="icon-link" style="color:inherit !important;">
href="http://www.arcinspirations.com/kobe/">Stop on by Kobe’s site

16. Engage Interactive

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/0323-16.jpg" alt="JavaScript Samples" width="750" />

Engage Interactive uses JavaScript to create a menu the collapses on itself when another option is chosen. They also made the site display like a gallery would when you switch pages. The combination of these two features make Engage Interactive really stand out.

class="meteor-icon" style="font-size:130% !important;">
class="icon-link" style="color:inherit !important;">
href="http://www.engageinteractive.co.uk/">View Engage Interactive’s web site

17. Helldesign

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/0323-17.jpg" alt="JavaScript Samples" width="750" />

Helldesign uses JavaScript to create their truly unique menu that changes the display in the top section based on the selection. You do not see many menus or designs like this so I had to include it in this list.

class="meteor-icon" style="font-size:130% !important;">
class="icon-link" style="color:inherit !important;">
href="http://helldesign.net/">Take a look at Helldesign’s site

18. Greenanysite

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/0323-18.jpg" alt="JavaScript Samples" width="750" />

Greenanysite uses JavaScript to spice up an already unique design. The added a couple cool mouse over boxes that provide additional information and a fold at the top right of the page. Overall this site really stands out from most other sites because of the unique design and the couple extra features the web developer added.

class="meteor-icon" style="font-size:130% !important;">
class="icon-link" style="color:inherit !important;">
href="http://www.greenanysite.com/">Check out Greenanysite today

19. Vitamin J

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/0323-19.jpg" alt="JavaScript Samples" width="750" />

Vitamin J uses a mixture of Flash and JavaScript to make their site stand out. Flash is used in the top navigation area and interacts with your mouse movement. JavaScript is used to display the selected information in the bottom section of the site.

class="meteor-icon" style="font-size:130% !important;">
class="icon-link" style="color:inherit !important;">
href="http://www.vitamin-j.de/">View Vitamin J’s site

20. Authentic Style

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/0323-20.jpg" alt="JavaScript Samples" width="750" />

Authentic Style is another single page website that uses JavaScript to run the navigation controls. The web developer did a great job at making the site look different and still be functional at the same time.

class="meteor-icon" style="font-size:130% !important;">
class="icon-link" style="color:inherit !important;">
href="http://www.authenticstyle.co.uk/">Stop by Authentic Style’s website today

21. Jeda Records

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/0323-21.jpg" alt="JavaScript Samples" width="750" />

Jeda Records is another site that uses JavaScript to create their site using a single page, and they do it very well. When you click on an item from the navigation menu the pages scrolls to the desired location, without need for the site to refresh. This along with the color scheme and background gives the site a nice feel.

class="meteor-icon" style="font-size:130% !important;">
class="icon-link" style="color:inherit !important;">
href="http://www.jedarecords.it/">Visit Jeda Records’ Site

22. Team Viget

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/0323-22.jpg" alt="JavaScript Samples" width="750" />

Team Viget uses JavaScript to allow the pages on their website to turn, like on a wheel, when you go from page to page. This gives the site a unique feel because this type of navigation is not seen often at all. The navigation is a little choppy but overall I think they did a great job making their site stand out.

class="meteor-icon" style="font-size:130% !important;">
class="icon-link" style="color:inherit !important;">
href="http://www.teamviget.com/">Take a Look at Team Viget’s Site

23. Nofrks

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/0323-23.jpg" alt="JavaScript Samples" width="750" />

Nofrks is another site that uses JavaScript to create a single page design, but they do it a little differentlythan others have. Instead of just scrolling up or down to the desired content, Nofrks scrolls horizontally and diagonally to the content.

class="meteor-icon" style="font-size:130% !important;">
class="icon-link" style="color:inherit !important;">
href="http://www.nofrks.com/">Stop by Nofrks’ SiteToday

24. Webleed Design

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/0323-24.jpg" alt="JavaScript Samples" width="750" />

Webleed Design also went with a single page design created by JavaScript but they did a little extra to make it stand out. When you are scrolling to the content there are graphics that look like they are moving. This gives the site a truly unique feel and I have neverseen anything like it.

class="meteor-icon" style="font-size:130% !important;">
class="icon-link" style="color:inherit !important;">
href="http://www.webleeddesign.com/">Take a look at Webleed Design

25. More LLC

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/0323-25.jpg" alt="JavaScript Samples" width="750" />

More LLC is an example of a site built with JavaScript that was not properly thought out. They used a single page design but more than one set of information is displayed on the page at one time. I don’t think they took resolution into consideration. I added them to this list to give you an example of a not so great website using JavaScript differently.

class="meteor-icon" style="font-size:130% !important;">
class="icon-link" style="color:inherit !important;">
href="http://www.morellc.com/">View More LLC’s Site

26. Volll

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/0323-26.jpg" alt="JavaScript Samples" width="750" />

Volll used JavaScript in their design to make create a single page site that functions properly and looks great. When you use the navigation menu the site scrolls to the desiged content. Once at the desired section of the page if you click a link there it will load only the new content and display it in the designated section. Overall I think this site looks great.

class="meteor-icon" style="font-size:130% !important;">
class="icon-link" style="color:inherit !important;">
href="http://www.volll.com/">Stop by Volll Human Communication’s Site

27. Mozilla

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/0323-27.jpg" alt="JavaScript Samples" width="750" />

Ok here is a site that pretty much everyone has been to at one point or another. Mozilla uses JavaScript all over this site to make it functional, easy on the eyes, and professional. I would not expect anything else from this great company.

class="meteor-icon" style="font-size:130% !important;">
class="icon-link" style="color:inherit !important;">
href="http://www.mozilla.org/en-US/firefox/fx/">Take a look at Mozilla’s Site

28. Firestone Live

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/0323-28.jpg" alt="JavaScript Samples" width="750" />

Firestone Live uses a mixture of Flash and JavaScript to make a very interactive website. The content and graphics on this site is great but like with many Flash website the load time can be slow sometimes. Despite having a slow load time I think this site stands out ina good way.

class="meteor-icon" style="font-size:130% !important;">
class="icon-link" style="color:inherit !important;">
href="http://firestonelive.net/">View Firestone Live’s Site Today

29. Small Stone Recording

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/0323-29.jpg" alt="JavaScript Samples" width="750" />

Small Stone Recording’s uses JavaScript to create a unique navigation menu in the forum of an amplifier. When you click on a link only the content is refreshed/loaded not the navigation menu keeping laod times down. Overall I think they did a great job making this site stand out and it could not have been done without
JavaScript.

class="meteor-icon" style="font-size:130% !important;">
class="icon-link" style="color:inherit !important;">
href="http://www.smallstone.com/home.php">Visit Small Stone Recording’s Site

30. Dibusoft

class="border" src="http://www.webhostingsecretrevealed.net/images/2012/0323-30.jpg" alt="JavaScript Samples" width="750" />

Dibusoft uses JavaScript to help with the navigation menu and also the gallery that is blended in with the site. The gallery is different than most I have seen because it blends in with the site very well. When you click the arrows next to the city shown in the picture above it changes the picture and the text to the left of it. This is just one ofthe features that make the site stand out and look great.

class="meteor-icon" style="font-size:130% !important;">
class="icon-link" style="color:inherit !important;">
href="http://www.dibusoft.com/">Stop by Dibusoft’s Site


Page 25 – Web Hosting Secret Revealed