Source Code for Me (s-c.me)

Allows you to paste souce code to blogs! Adapted for Twitter! Here is Search Form in case you missed your code.
Code:
Selected Language:
Show Linenumbers:
Short link for Twitter:
HTML:

HTML view:

Copy Source | Copy HTML
  1. <script type="text/javascript">
  2.  var phr = new Array();
  3.     phr.push("templates/format/images/img4_3.jpg");
  4.     phr.push("templates/format/images/img4_1.jpg");
  5.     phr.push("templates/format/images/img4_2.jpg");
  6. function Rotator_cont() {
  7. var s = 5000; // Время отображения
  8. var N=phr.length;
  9. var i=Math.round(Math.random()*(N));Rotator(i);
  10. function Rotator(i){
  11. i++; if(i>N-1){i= 0};//alert(i);
  12. document.getElementById('zap').style.backgroundImage='url('+phr[i]+')';
  13. timerId01=setTimeout(function(){Rotator(i)},s);return;}
  14. }Rotator_cont()
  15. </script>




Based on Manoli.Net's CodeFormatter. Made by Topbot (c) 2008-2017