Miscellaneous Scripts - Page 5 | JavaScriptSource

Miscellaneous Scripts - Page 5

This section covers miscellaneous scripts, JavaScript libraries, and tools used in the creation of scripts. If a script didn't fit anywhere else, it's probably ended up here. General questions about these miscellaneous scripts here should be posted to The JavaScript Forum.

  • Expand Collapse Content
    Shaji Kalidasan Jul 19, 2008

    This simple Javascript helps to expand and collapse a message/content by just a mouseclick.

  • Equation Calculator for Degrees 2 To 4
    Brian Kieffer Jul 14, 2008

    This Calculator can solve quartic equations.

  • Page Glossary
    Aaron Gustafson Jun 6, 2008

    This script collects all of the abbreviations, acronyms, and definitions on a page and builds a definition list of the terms, which is appended to a specified container. The script checks for duplicate terms and also alphabetizes the terms.

  • True Color Darkening and Lightening
    Joseph Myers May 28, 2008

    This script will brighten or darken colors, preserving the true color hue. The color's hexadecimal numbers are displayed for further use.

  • Array Creator
    Mr. J May 8, 2008

    This script creates a generator that will help speed up the process of building arrays.

  • HTML Block Scroller & Marquee
    Brian Huisman Apr 30, 2008

    This small script will animate a series of blocks of HTML, scrolling them up, down, left or right dynamically and then pausing before starting the next scroll. The script will also pause on mouseover, and resume scrolling on mouseout. Since it scrolls HTML instead of just images, you can include just about anything that can be ordinarily placed in a static HTML document: links, images, graphics, tables, backgrounds, etc.

  • Alternate Colors
    Apr 28, 2008

    Most scripts that provide alternating rows of color are made for tables. This script can be used with any HTML tag, e.g., div, p, etc. Very easy to set-up and implement. Highlight that special section on your page without too much fuss.

  • E-mail Address Protector
    Joe Maller Apr 23, 2008

    Protect your e-mail address from potential spammers.

  • Code Prettifier
    Mike Samuel Apr 11, 2008

    This script displays syntax highlighting of source code snippets, making the posting of code in an HTML page easier to read. It works on a number of languages including C, Java, Python, Bash, SQL, HTML, XML, CSS, JavaScript, PHP, Ruby, Awk and Makefiles. Heavily commented. Easy to implement.

  • BetterCalculator 5.0
    Jim Anderson Apr 1, 2008

    A JavaScript calculator with advanced features.

  • Auto-Select
    Matt Murphy Mar 7, 2008

    This function, when called on a particular HTML element, will auto-select all of its inner text. It works on elements such as input, textarea, div, span, td, and pre.

  • Show/Hide a DIV
    Justin Barlow Feb 29, 2008

    Showing and hiding a DIV using a link can be very useful when it's not necessary to always display information on the Web page. For example, this technique can be used for posting comments on a blog. That way you don't need to use a popup window or a separate page.

  • Scroll Div Horizontal
    Feb 25, 2008

    Create a scrolling DIV on your Web page. You can use text, pictures, and links. Easy to set-up and implement!

  • Alternate Table Row-List Item
    Brent Graham Feb 13, 2008

    Use this script to make your table data and list items easy to read. No need to hassle with listing each alternate row coloring. Very easy to use.

  • Search the Page
    Robin Winslow Feb 10, 2008

    This script will allow your visitors to search a Web page for any matching characters.

  • Keeping New List Contents in View
    James Robertson Jan 14, 2008

    This code demonstrates how to keep the content at the bottom of a list always in view, similar to a chat window.

  • Change Image 2
    Dec 26, 2007

    Use this script to change an image, using the setAttribute function. You can use different events to change the image, e.g., onClick, or onMouseOver. The script can also be adapted to other uses.

  • Pullquotes
    Mike Papageorge Dec 10, 2007

    This script will create a pullquote on a page, derived from a set of span's. Easy to use, and can be utilized more than once on a page, if desired. Styling is done by CSS.

  • Rainbow Link on mouseOver
    Thai Cao Phong Nov 23, 2007

    Implement this script into your web pages to make all links change color by themselves on mouse over event.

  • Ultra AI
    john Nov 7, 2007

    This is a interactive robot based all on JavaScript.

  • Rollover Text - Hide and Show
    Nov 7, 2007

    Use this script to provide tooltips, FAQs, and other information. The tip is shown when the mouse rolls over the title. You can use any valid HTML element, even links.

  • Semantic On-Page Tabs
    Oct 29, 2007

    Create links to different topics on one page. Since all of the information is included on the same page, it will still be displayed if JavaScript is turned off. Easy to set-up.

  • Hate IE
    Oct 15, 2007

    If your visitor is using Internet Explorer as their browser, this script will politely suggest Firefox as an alternative browser. Just add it to the head of your page. Very simple!

  • SWFObject
    Geoff Stearns Oct 10, 2007

    This small JavaScript file is used for embedding Adobe Flash content. The script can detect the Flash plug-in in all major Web browsers (on Mac and PC) and is designed to make embedding Flash movies as easy as possible. It is also very search engine friendly, degrades gracefully, can be used in valid HTML and XHTML 1.0 documents, and is forward compatible, so it should work for years to come.

  • View Selected Information (With Images)
    Sandeep Gangadharan Sep 28, 2007

    Display detailed information about members or products in a compact manner. When a radio button is selected its corresponding information is displayed in the area to the right with an image. Great for products, membership lists, address books, and more.