Vb Script Text Effect - Was Bored

Discussion in 'General Discussion' started by MarkWLI, Aug 16, 2004.

  1. MarkWLI

    MarkWLI Guest

    Well, its around 12:30 AM and I got really bored tonight so I got an idea to make a text effect for ASP. I ended up making it in VBScript. The original code is basically a script that just generates a bit of TEXT. The second customized code is a code in which generates a line of text, but increases the size from 1 to 7 on the HTML font size scale, it is in ASP and is a simple line that can be applied to any ASP enabled page, it is executed only when the page is rendered, after the page is loaded in otherwords. Its a stupid code but it works :) Well enjoy!

    Original:

    Code:
    <script language="VB" runat="server">
         Sub DeclareLove()
                Response.Write("<h1>Game Renders Kicks Ass!</h1>")
         End Sub
    </script>
    
    The result would simply be: <h1>Game Renders Kicks Ass!</h1>

    Now here is the text effect version, in ASP:

    Code:
    <% for (int i=0; i<8; i++) { %>
         <font size="<%=i %>"> Game Renders Kicks Ass!<font>
    
    <% } %>
    
    I hope you like it... its a stupid code but remember its fun to **** with... :P
     
  2. Llamaman

    Llamaman Senior Member

    Posts:
    2,059
    Likes Received:
    0
    Joined:
    Apr 24, 2004
    Location:
    UK
    Nice one! Unfortuantly I dont have any webspace that supports ASP so i cant really use it, but its nice to learn some basics from a new coding language.
     

Share This Page