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


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
Yes, but in a few years
Out of 143 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.


Manufacturers Take Action Against Counterfeit Sex Toys

The mainstreaming of pleasure products is proving to be a blessing and a curse for the sex toy industry. As the demand for pleasure products continues to grow, manufacturers are seeing an increase of counterfeiters... More »

Trends in Paysite Design, Content Delivery

Given the highly visual nature of adult entertainment, it is no surprise that many paysites have shown design-forward approaches — some skirting the bleeding edge, while others sought stability over... More »

Surviving Affiliates Seem to Be Thriving

Long a mainstay of traffic generation for adult website owners and monetization channel for tech savvy marketers, “sponsor programs” have delivered countless millions of dollars to affiliates... More »
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.

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.



Oct 05 - Oct 07
Hannover, Germany


Nov 04 - Nov 06
Edison, New Jersey

2016 Inked Awards

Nov 05 - Nov 05
Edison, New Jersey

XBIZ 2017

Jan 09 - Jan 13
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!