1.0.2 • Published 4 years ago

subliminal-ads v1.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

subliminal-ads.js — show subliminal messages and images on your webpage

Background

The following is taken from a the WikiPedia page

Applications of subliminal stimuli often base themselves on the persuasiveness of the message. Importantly, research on action priming has shown that subliminal stimuli can trigger only actions a receiver of the message plans to perform anyway. However, consensus of subliminal messaging remains unsubstantiated by other research. Most actions can be triggered subliminally only if the person is already prepared to perform a specific action.

Warning

Although there is no scientific consensus on the efficacy of whether subliminal messages would prime a customer into purchasing a product, it is based on around the priming concept, so usage should take this into consideration. One such study showed the effects of priming a group of participants with "old" words made them walk slower down a hallway.

It may also be unethical to do this without gaining the consent of your visitors.

Proprties

PropertyTypeDefaultDescription
messagesArray / String[]List of messsages
widthString100%Message width
heightString100vhMessage height
colorString#000Message color
duration (ms)Number250How long to show the message
interval (ms)Number10000display a new message every...
repeatBooleanfalseRepeat messages
randomBooleanfalseDisplay messages randomly

Methods

NameDescription
start(ms)Play messages after ms offset
once(ms)Play messages once after ms offset

Display Random List of Words

var fixedMessage = new FixedMessage({
  messages: ["Our company is awesome", "Buy our product"],
  width: '100%',
  height: '80vh',
  color: 'red',
  duration: '50',
  interval: 2000,
}).start(10000);

Display a Mix of Images / Words Randomly

var fixedMessage = new FixedMessage({
  messages: [ `${window.location.origin}/images/product.png`, `${window.location.origin}/images/heart.png`, "Our company is awesome", "Buy our product"],
  width: '100%',
  height: '80vh',
  color: 'red',
  duration: '50',
  interval: 2000,
}).start(10000);

This would create the message in the center screen which would show display each message sequentially every 2 seconds for a duration of 50ms. It would start after 10 seconds. You can also pass in paths that link to images as messages to create image messages.