Warning: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in ..../includes/class_bbcode.php on line 2083

Warning: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in ..../includes/class_bbcode.php on line 2083
Uphill Text
Results 1 to 1 of 1

Thread: Uphill Text

  1. #1
    Senior Member ghaza's Avatar
    Join Date
    Oct 2013
    Location
    Multan, Pakistan
    Posts
    354
    ΑΡ Credit
    3540

    Uphill Text

    This script renders text with ascending font sizes (from font size 1 to 7), starting over when it hits 7. Great and efficient way of sprucing up selected messages on your site!

    Step 1: Add the following to the <head> section of your page:

    HTML Code:
    <script>
    
    /*
    Uphill Text effect
    By JavaScript Kit (http://adminspoint.com)
    Over 400+ free scripts here!
    */
    
    function uphilltext(text){
    var temptext=text.toUpperCase()
    var size=1
    //go through the text, letter by letter
    for (i=0;i<temptext.length;i++){
    document.write(temptext.charAt(i).fontsize(size).bold())
    if (size<7)
    size++
    else
    size=1
    }
    }
    </script>
    Step 2: Add the below chunk of code to your <body> whenever you wish an uphill text to be rendered (can be added multiple times):

    HTML Code:
    <script>
    uphilltext("Welcome to adminspoint site!")
    </script>
    Enjoy the script!
    Attached Files Attached Files

Similar Threads

  1. JS code for making Sequential fly-in text
    By M.A.A in forum Javascript and js libraries
    Replies: 0
    Last Post: 11-12-2013, 08:52 AM
  2. Text Shadow using css
    By web_guru in forum CSS
    Replies: 1
    Last Post: 10-10-2011, 12:12 PM
  3. PHP: How do I read from text file?
    By Meer in forum Web Hosting Control Panels
    Replies: 0
    Last Post: 10-05-2010, 07:03 PM
  4. PHP: How do I read from text file?
    By Meer in forum Server Administration
    Replies: 0
    Last Post: 10-04-2010, 02:30 PM
  5. How To Truncate Text Using PHP
    By AP admin in forum PHP
    Replies: 0
    Last Post: 07-28-2010, 08:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •