document.getElementById('testclick').addEventListener('click', storyboard);
function appendchat(txt, pos) {
var talk_bubble = document.createElement('div');
talk_bubble.classList.add('talk_bubble', pos);
var tl_text = document.createElement('span');
tl_text.innerHTML = txt;
tl_text.classList.add('tl_text');
talk_bubble.appendChild(tl_text);
document.getElementById('oclk').appendChild(talk_bubble);
document.body.scrollTop = document.body.scrollHeight;
}
function storyboard() {
setTimeout("appendchat('Hey, I’m “DCTOP20 Members”!','bbl_left')", 2000);
setTimeout("appendchat('The easiest way for you to get connected and take your music career to the next level, online.','bbl_left')", 3000);
setTimeout("appendchat('Sounds crazy good. Tell me more!','bbl_right')", 5000);
setTimeout("appendchat('You can easily connect with the elite in the music industry in DC, grow your fan base, learn the secrets of the industry, and build with other local celebrities like you!','bbl_left')", 7000);
setTimeout("appendchat('Plus, you can earn and cash out money for creating dope content.','bbl_left')", 8000);
setTimeout("appendchat('Nice, so what’s next?', 'bbl_right')", 10000);
setTimeout("appendchat('Up to you, take your pick! ;)', 'bbl_left')", 11500);
};
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.