Home > Features > Web Depot: Keep Your Site Unique By Substituting Text • Bookmark   • Newsletters   • Register Search Options

FEATURE

Web Depot: Keep Your Site Unique By Substituting Text

Web Depot: Keep Your Site Unique By Substituting Text

October 14, 2015
Text size: 
View in Digital Mag
Get XBIZ News
XBIZ Research
Will virtual reality boost the paysite market?
Yes, it will soon
  39.66%
Yes, but in a few years
  36.87%
No
  23.46%
Out of 179 votes. Results based on votes submitted by members of XBIZ.net social network.

" A JavaScript library for randomizing taglines by substituting sentences for each other "

A JavaScript library for randomizing taglines by substituting sentences for each other, swapping only the necessary words, substituteteacher.js is an easy way to be sure that your site’s users see different text whenever they visit — and is a great way to provide fresh descriptions and other information for photo and video content.

The script is simple, requiring the addition of the substituteteacher.js file, the creation of a container element and fallback text, and the script’s initialization. Text variables are stored in an array and easily accessed through an API, which provides control over the sub constructor, which creates a new instance of substitution using a list of sentence strings. Options include specifying a random substitution or using a specific order of text substitutions, as well as the interval and speed of the transitions. A run command lets the script run programmatically, or when a user clicks a button, to start the sentences’ rotation.


PROFILES & BIOS

WIA Profile: Nancy Moore

Each month, industry news media organization XBIZ spotlights the career accomplishments and outstanding contributions of Women in Adult. WIA profiles offer an intimate look at the professional lives of... More »

WIA Profile: Janet Rini

Each month, industry news media organization XBIZ spotlights the career accomplishments and outstanding contributions of Women in Adult. WIA profiles offer an intimate look at the professional lives of... More »

Rise of SFW Cams for Voyeurs

Since its inception, Chaturbate could be called many things from sexy to successful, but one thing it can’t really be called is safe for work. It’s no secret that the entire adult cam industry... More »
XBIZ NEWSLETTERS
Stay informed of the latest industry developments. Get XBIZ newsletters delivered to your inbox. Subscribe today!
Enter email address:

* To manage existing subscriptions click here.






POPULAR PRODUCTS & SERVICES
Submit your press release to
multiple news outlets with 1 click.
Subscribe to RSS news feeds or
add free content to your website.
Access XBIZ news and articles
with your mobile device.
Subscribe to XBIZ World magazine, the industry's leading e-commerce trade publication, delivering in-depth coverage of the online, mobile and ancillary digital markets.

UPCOMING EVENTS

Everything To Do With Sex Show

Jan 20 - Jan 22
Montréal, Québec

Everything To Do With Sex Show

Jan 27 - Jan 29
Halifax, Nova Scotia

The European Summit

Mar 04 - Mar 07
Barcelona-Sitges, Spain

The TEA Show

Mar 05 - Mar 06
Hollywood, CA
Everyday thousands of business professionals browse XBIZ's industry directory for quality products and services. Not listed yet? Your company could be losing potential new business. Submit your company today!
Use XBIZ RSS feeds to stay informed of the latest industry developments or as a content syndication tool for your website!