Quantcast
Browsing all 165 articles
Browse latest View live

How to Make VAR a Hyperlink in JavaScript

The word “hyperlink” is the more formal, long-form term for a “link” on a Web page. Anchor tags use URLs – the address of a document on the Web – to create links in HTML. These links are static, but...

View Article


Image may be NSFW.
Clik here to view.

Javascript Check for Illegal Characters

Websites often use JavaScript functions to validate user input. When users enter data into a Web page form, the site normally sends this data to the Web server. Rather than sending invalid data, many...

View Article


Image may be NSFW.
Clik here to view.

JQuery Callback Function

Website designers use the jQuery JavaScript library to implement interactive and animated effects within their Web pages. Using jQuery functions, you can create pages with transitions enhancing the...

View Article

Image may be NSFW.
Clik here to view.

JavaScript Runtime: Height of Div

The JavaScript functions in a Web page can get and set the properties of HTML elements. Sometimes, when a page is set to alter its content dynamically as the user interacts with it, it is difficult to...

View Article

Image may be NSFW.
Clik here to view.

How to Fix Floating-Point Problems in JavaScript

JavaScript is a simple, efficient language that can add functionality and flair to a website. Before adding a script on a page to perform conversions or calculations, you need to be aware of a flaw in...

View Article


How to Get Rid of the Hand Cursor on Google Maps API V3

You can customize the cursors that an embedded Google map uses on your website. By default, the map uses an open-handed cursor when a mouse pointer is over the map and a closed-handed cursor when the...

View Article

Image may be NSFW.
Clik here to view.

How to Make an Expandable Banner With JavaScript

One of the most useful features of client-side programs like JavaScript is that they can be used to dynamically modify web page user interfaces. Although server-side programs like PHP or Perl can also...

View Article

Image may be NSFW.
Clik here to view.

The JavaScript Code for a Fading Slideshow

Creating a Web page sideshow only requires a few small JavaScript functions. Making its slides fade requires a bit more work. Slideshows, although common in the Internet, can help you display your art,...

View Article


JavaScript for Scrolling DIV

JavaScript lets you automate scrolling features on your Web pages. If you want a div container to scroll automatically, you use the "scrollTop" property in JavaScript. The scrolling feature...

View Article


Differences Between onLoad & onReady

Once you learn to handle Web page events, you can create websites that interact with site visitors and enhance their user experience. Some events, such as onLoad, occur even if you don't write code to...

View Article

Image may be NSFW.
Clik here to view.

How to Create an Embed Code for Streaming Video

Streaming media on your website is an effective way to share videos in a wide variety of formats with your site visitors. However, every visitor to your site has a different browsing configuration,...

View Article

How to Convert KeyCode to ASCII With JavaScript

The ability to detect a site visitor's keystrokes can help you build more interactive Web applications. A game program, for instance, may need to know the characters a user presses in order to control...

View Article

Image may be NSFW.
Clik here to view.

How to Get the Current Mouse Position in Javascript

When your site visitors move their mouse cursors, you can track those movements using JavaScript. Once you know the X and Y coordinates of the user's cursor, you can program your application to...

View Article


Image may be NSFW.
Clik here to view.

How to Change the Speed of Slideshows With JavaScript

Slidershows became a popular feature for Web pages shortly after the release of jQuery in 2006, a JavaScript library that makes it easy to create the kinds of animations required for sliders to work....

View Article

Image may be NSFW.
Clik here to view.

How to Remove Non-Numeric Characters in Javascript

Everything a visitor types while on your website consists of text, even when the visitor types numbers. If your application expects to receive pure numeric input, your program must strip away...

View Article


How to Post Data With an HTML Anchor

HTML forms are submitted using either the "get" or "post" method, depending on the purpose of the form and the server script being used, if any. A form is normally submitted when the user presses the...

View Article

How to Make a Title Bar Scroll

The title bar is located at the very top of your Web page and contains the name of the page. Sometimes your Web page's title might be too long to fit within the title bar, making it so users cannot see...

View Article


How to Move a DIV Into Another DIV on CSS

Part of the magic of surfing the Internet comes from viewing special effects that websites generate. Developers build Web pages using construction blocks; in the HTML markup language, these blocks are...

View Article

How to Scroll a Frame with JavaScript

The "scrollTo" and "scrollBy" JavaScript methods allow you to scroll a Web page programmatically. By referencing your way upward in the DOM tree, you can access other frames from JavaScript code inside...

View Article

Image may be NSFW.
Clik here to view.

How to Scroll Horizontally in Javascript

The National Institute on Aging recommends designing Web pages that do not require horizontal scrolling. When a Web page's content spills over to hidden areas to the right of the viewing area, Browsers...

View Article
Browsing all 165 articles
Browse latest View live