• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
JavaScriptSource

JavaScriptSource

Search 5,000+ Free JavaScript Snippets

  • Home
  • Browse Snippets
    • Addon
    • Ajax
    • Buttons
    • Cookies
    • CSS
    • Featured
    • Forms
    • Games
    • Generators
    • Image Effects
    • Math Related
    • Miscellaneous
    • Multimedia
    • Navigation
    • Page Details
    • Passwords
    • Text Effects
    • Time & Date
    • User Details
Home / Archives for Text Effects

Text Effects

Transform all text in a string to uppercase

Transform all text in a string to uppercase

Use String.toUpperCase() to transform all text in a string to uppercase.

Text Effects

Scale a text to fit inside of an element

Scale a text to fit inside of an element

First of all, we need to measure the width of element with its current font size and text content.

Text Effects

Get the direction of the text selection

Get the direction of the text selection

This function returns forward if user selected text from the left to right. It returns backward in the other case.

Text Effects

Get the currently selected text with JavaScript

Get the currently selected text

Use Window.getSelection() and Selection.toString() to get the currently selected text.

Text Effects

Dynamically changing the text color based on background color contrast

Dynamically changing the text color based on background color contrast

Get the contrasting color for any hex color.

Text Effects

Get the text content of an element

Get the text content of an element

Returns the raw text content of the ele element and its children.

Text Effects

Sticky Note Script

Sticky Note is an attractive DHTML script that pops up at the center of the page to display anything you choose. Users can customize, how often the note should appear on the page, for how long, and whether a fade-in effect should be accompanied.

Text Effects

Reverse Text Wizard

Reverse Text Wizard

Some languages are written from right to left. This script takes the input from the users entry field and simulates typing from right to left.

Text Effects

Vertical Marquee

Vertical Marquee

Text scrolls from bottom to top, pauses, then scrolls up and out of view. A link can be added, opening in a new window. Configuration is simple.

Text Effects

Banner Ad Rotator

Banner Ad Rotator

Display two or more rotating banners (480 x 60) in an infinite loop. Banners also link to advertised URLs.

Text Effects

  • Go to page 1
  • Go to page 2
  • Go to Next Page »

Primary Sidebar

FREE UPDATES!

Get the latest updates in your inbox for FREE!

Popular Posts

Story Generator

IP Grabber – get a users IP address with JavaScript

Simple Calendar

Remove Ads

Astrological Calculator

Copyright © 2023 JavaScriptSource.com

  • About
  • Privacy Policy
  • Submit
  • FAQ
  • Jobs For Developers
  • Contact Us