Advertisement
ukamori

all codes for expanding scrollbox crd tut

Jul 25th, 2022 (edited)
776
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 6.53 KB | None | 0 0
  1. <!--- CSS STUFF --->
  2. <style>
  3. #container01 {
  4. border-width:7px;
  5. border-style:solid;
  6. border-image: url("https://i.imgur.com/8Tk8PKV.gif") 7 fill round;
  7. width: 20em;
  8. margin:auto;
  9. }
  10.  
  11. #text01 a {
  12. text-shadow: -1px 0 #000, 0 1px #000, 1px 0 #000, 0 -1px #000;
  13. }
  14. </style>
  15.  
  16.  
  17. <!--- TYPING NAME --->
  18. <link rel="preconnect" href="https://fonts.googleapis.com">
  19. <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  20. <link href="https://fonts.googleapis.com/css2?family=Yomogi&display=swap" rel="stylesheet">
  21.  
  22. <style>
  23. #news {
  24. position: relative;
  25. text-shadow: -1px 0 #000, 0 1px #000, 1px 0 #000, 0 -1px #000;
  26. z-index: 1;
  27. right: -10.5px;
  28. font-family: 'Yomogi', cursive;
  29. font-size:1.5em;
  30. color: #fff;
  31. font-weight: bold;
  32. }
  33.  
  34. #cursor {
  35. position: relative;
  36. z-index: 1;
  37. right: -1.5px;
  38. text-shadow: -1px 0 #000, 0 1px #000, 1px 0 #000, 0 -1px #000;
  39. font-family: 'Yomogi', cursive;
  40. font-size:0.875em;
  41. color: #fff;
  42. font-weight: bold;
  43. }
  44.  
  45. </style>
  46.  
  47. <span id="news"></span><span id="cursor">:-)</span>
  48.  
  49. <script type="text/javascript">
  50. // <![CDATA[
  51. var news=Array("name");
  52. var cursor=""; // set cursor
  53. var delay=3; // seconds between each news item
  54.  
  55. /***************************\
  56. * News Ticker Text Effect *
  57. *(c)2004-14 mf2fm web-design*
  58. * http://www.mf2fm.com/rv *
  59. * DON'T EDIT BELOW THIS BOX *
  60. \***************************/
  61. var newsp, cursp, flash, item=0;
  62.  
  63. if (typeof('addRVLoadEvent')!='function') function addRVLoadEvent(funky) {
  64. var oldonload=window.onload;
  65. if (typeof(oldonload)!='function') window.onload=funky;
  66. else window.onload=function() {
  67. if (oldonload) oldonload();
  68. funky();
  69. }
  70. }
  71.  
  72. addRVLoadEvent(teleprint);
  73.  
  74. function teleprint () { if (document.getElementById) {
  75. var span=document.getElementById("news");
  76. while (span.childNodes.length) span.removeChild(span.childNodes[0]);
  77. delay*=1000;
  78. newsp=document.createElement("span");
  79. cursp=document.createElement("span");
  80. cursp.appendChild(document.createTextNode(String.fromCharCode(160)+cursor));
  81. span.appendChild(newsp);
  82. span.appendChild(cursp);
  83. ticker();
  84. }}
  85.  
  86. function ticker() {
  87. var i;
  88. while (newsp.childNodes.length) newsp.removeChild(newsp.childNodes[0]);
  89. newsp.appendChild(document.createTextNode(news[item].substring(0,1)));
  90. for (i=1; i<news[item].length; i++) setTimeout('newsp.firstChild.nodeValue="'+news[item].substring(0, i+1)+'"', 100*i);
  91. if (news[item].indexOf("www")!=-1) setTimeout('linkit('+item+')', 100*i);
  92. setTimeout('flash=setInterval("cursp.style.visibility=(cursp.style.visibility==\'visible\')?\'hidden\':\'visible\'", 234)', 100*i)
  93. setTimeout('clearInterval(flash)', delay);
  94. setTimeout('cursp.style.visibility="visible"', delay);
  95. setTimeout('ticker()', delay);
  96. item=++item%news.length;
  97. }
  98. function linkit(q) {
  99. var a,p,e,l;
  100. p=news[q].indexOf("www");
  101. e=news[q].indexOf(" ", p);
  102. if (e==-1) e=news[q].length;
  103. l=news[q].substring(p, e);
  104. while (newsp.childNodes.length) newsp.removeChild(newsp.childNodes[0]);
  105. newsp.appendChild(document.createTextNode(news[q].substring(0, p)));
  106. a=document.createElement("a");
  107. a.href="http://"+l;
  108. a.appendChild(document.createTextNode(l));
  109. newsp.appendChild(a);
  110. newsp.appendChild(document.createTextNode(news[q].substring(e)));
  111. }
  112. // ]]>
  113. </script>
  114.  
  115.  
  116. <!--- EXPANDING SCROLLBOX 1 --->
  117. <link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin=""><link href="https://fonts.googleapis.com/css2?family=Mali:wght@500&amp;display=swap" rel="stylesheet">
  118.  
  119. <div id="conte">
  120. <strong>text</strong> info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info
  121. </div>
  122.  
  123. <style>
  124. #conte {
  125. border: 3px double #f0b5c0;
  126. border-radius: 8px;
  127. background: #fff ;
  128. width: 110px;
  129. height: 70px;
  130. transition: 0.6s ease;
  131. padding: 5px;
  132. font-family: 'Mali', cursive;
  133. text-align: left;
  134. font-size:0.75em;
  135. overflow: scroll;
  136. position: relative;
  137. right: -8em;
  138. bottom: 3.5em;
  139. }
  140.  
  141. #conte:hover {
  142. background: #f0c3cf;
  143. width: 140px;
  144. height: 90px;
  145. }
  146. </style>
  147.  
  148.  
  149. <!--- EXPANDING SCROLLBOX 2 --->
  150. <link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin=""><link href="https://fonts.googleapis.com/css2?family=Mali:wght@500&amp;display=swap" rel="stylesheet">
  151.  
  152. <div id="conte2">
  153. <strong>text</strong> info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info
  154. </div>
  155.  
  156. <style>
  157. #conte2 {
  158. border: 3px double #f0b5c0;
  159. border-radius: 8px;
  160. background: #fff ;
  161. width: 110px;
  162. height: 70px;
  163. transition: 0.6s ease;
  164. padding: 5px;
  165. font-family: 'Mali', cursive;
  166. text-align: left;
  167. font-size:0.75em;
  168. overflow: scroll;
  169. position: relative;
  170. right: -8em;
  171. bottom: 3.5em;
  172. }
  173.  
  174. #conte2:hover {
  175. background: #f0c3cf;
  176. width: 140px;
  177. height: 90px;
  178. }
  179. </style>
  180.  
  181.  
  182. <!--- EXPANDING SCROLLBOX 3 --->
  183. <link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin=""><link href="https://fonts.googleapis.com/css2?family=Mali:wght@500&amp;display=swap" rel="stylesheet">
  184.  
  185. <div id="conte3">
  186. <strong>text</strong> info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info
  187. </div>
  188.  
  189. <style>
  190. #conte3 {
  191. border: 3px double #f0b5c0;
  192. border-radius: 8px;
  193. background: #fff ;
  194. width: 110px;
  195. height: 70px;
  196. transition: 0.6s ease;
  197. padding: 5px;
  198. font-family: 'Mali', cursive;
  199. text-align: left;
  200. font-size:0.75em;
  201. overflow: scroll;
  202. position: relative;
  203. right: -8em;
  204. bottom: 3.5em;
  205. }
  206.  
  207. #conte3:hover {
  208. background: #f0c3cf;
  209. width: 140px;
  210. height: 90px;
  211. }
  212. </style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement