HomeHome  
  • WelcomeWelcome  
  • Events  
  • PublicationsPublications  
  • FAQFAQ  
  • SearchSearch  
  • MemberlistMemberlist  
  • UsergroupsUsergroups  
  • RegisterRegister  
  • Log inLog in  
  • You are not connected. Please login or register


    Roller text

    • Co-Founder

        Reputation : 40
        Registered on : 2012-02-26
        Posts : 284
      Roller text

      Description


      In this tutorial, I will show you how to make text with big and small characters.

      Set up


      1. Paste this code into the BODY of your HTML document:

      Code:
      <script>

      /*
      Roller Coaster Script-
      By JavaScript Kit
      Over 200+ free scripts here!
      */

      var fs=1
      var direction="right"
      function rollertext(whichone){
      var thetext=whichone
      for (i=0;i-thetext.length;i++){
      document.write(thetext.charAt(i).fontsize(fs))

      if (fs-7&&direction=="right")
      fs++
      else if (fs==7){
      direction="left"
      fs--
      }
      else if (fs==1){
      direction="right"
      fs++
      }
      else if (fs-1&&direction=="left")
      fs--

      }
      }
      //Change below text to your own
      rollertext("Bigsmall text!")

      </script>

      2. Change "Bigsmall text!" into your own text.

      Demo




      Technical problems


      The tutorial was tested on this forum and with the browser Mozilla Firefox; If you notice that the tutorial doesn't work for a browser or for a version of forum (PhpBB2, PhpBB3, PunBB, Invision) contact an administrator and we will fill this field with your reporting.

      Thanks, the staff
      For every problem or question please, contact us in the section Support for the tutorials, The staff will answer you as soon as it is possible...


      Friendly,
      The team of the Forum of Codes. :bene:

      avatar
      • Veteran staff member

          Reputation : 14
          Registered on : 2012-02-25
          Posts : 98
        This script has a bug. If you include it in the admin panel-> Display-> Front Page, Puts it on the forum.


        YOUR BANNER HERE
        728x90
        DMCA.com Protection Status
        © PunBB | Contact | Report an abuse