Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <h1><a href="https://ashprincesskawaii.blogspot.co.id/">Ash Princess Kawaii</a></h1>
<h2>News-ticker Text Effect</h2>
<h3><span id="news">NEWS-TICKER</span></h3>
              
            
!

CSS

              
                body{  position:relative; background:url(https://3.bp.blogspot.com/-e7RZaDl68Gw/ToFyangs_EI/AAAAAAAAAxQ/nYAi2RJhJas/s000/botmen2.png)repeat;  font-family:"arial";  font-size:13px;  line-height:1.5;
 text-align:center;color:#e8e2d6;letter-spacing:1px}


a:link, a:visited {   color:#e50099;cursor:url(http://media.tumblr.com/tumblr_lpyq1zoQPK1qcn2vb.gif), url(http://media.tumblr.com/tumblr_lpyq1zoQPK1qcn2vb.gif), auto; text-decoration:none}

a:hover{ text-decoration: none;cursor:url(http://static.tumblr.com/xjqjg7j/BPsmxtr7z/10.gif), url(http://static.tumblr.com/xjqjg7j/BPsmxtr7z/10.gif), auto;}

h1{
font-size:28px;
color:#e50099;
text-transform:uppercase
}
h2{ font-size:18px; color:yellow; text-shadow:0 0 10px #937acc}
h3{ font-size:14px;  color:#ffffff;}
::-moz-selection { background:transparent;
background:pink; 
color:white;
}
::selection {
background:deeppink;
color:white;
}
              
            
!

JS

              
                var news=Array("Cupcake ipsum dolor sit amet.", "Marshmallow toffee chocolate cake donut sesame snaps I love apple pie carrot cake.", "Gummi bears bear claw bear claw lollipop sesame snaps candy marshmallow tart.", "Dessert jelly-o tootsie roll lemon drops lemon drops dragée halvah.", "Wafer pudding apple pie dessert soufflé I love candy Ash Princess Kawaii....");
var cursor="_"; // set cursor
var delay=12; // seconds between each news item
var newsp, cursp, flash, item=0;
if (typeof('addRVLoadEvent')!='function') function addRVLoadEvent(funky) {
  var oldonload=window.onload;
  if (typeof(oldonload)!='function') window.onload=funky;
  else window.onload=function() {
    if (oldonload) oldonload();
    funky();
  }
}

addRVLoadEvent(teleprint);

function teleprint () { if (document.getElementById) {
  var span=document.getElementById("news");
  while (span.childNodes.length) span.removeChild(span.childNodes[0]);
  delay*=1000;
  newsp=document.createElement("span");
  cursp=document.createElement("span");
  cursp.appendChild(document.createTextNode(String.fromCharCode(160)+cursor));
  span.appendChild(newsp);
  span.appendChild(cursp);
  ticker();
}}

function ticker() {
  var i;
  while (newsp.childNodes.length) newsp.removeChild(newsp.childNodes[0]);
  newsp.appendChild(document.createTextNode(news[item].substring(0,1)));
  for (i=1; i<news[item].length; i++) setTimeout('newsp.firstChild.nodeValue="'+news[item].substring(0, i+1)+'"', 100*i);
  if (news[item].indexOf("www")!=-1) setTimeout('linkit('+item+')', 100*i);
  setTimeout('flash=setInterval("cursp.style.visibility=(cursp.style.visibility==\'visible\')?\'hidden\':\'visible\'", 234)', 100*i)
  setTimeout('clearInterval(flash)', delay);
  setTimeout('cursp.style.visibility="visible"', delay);
  setTimeout('ticker()', delay);
  item=++item%news.length;
}

function linkit(q) {
  var a,p,e,l;
  p=news[q].indexOf("www");
  e=news[q].indexOf(" ", p);
  if (e==-1) e=news[q].length;
  l=news[q].substring(p, e);
  while (newsp.childNodes.length) newsp.removeChild(newsp.childNodes[0]);
  newsp.appendChild(document.createTextNode(news[q].substring(0, p)));
  a=document.createElement("a");
  a.href="http://"+l;
  a.appendChild(document.createTextNode(l));
  newsp.appendChild(a);
  newsp.appendChild(document.createTextNode(news[q].substring(e)));
}
              
            
!
999px

Console