Thread: Usertitle Generator

Results 1 to 8 of 8
  1. #1 Usertitle Generator 
    SiteTrec Hosting

    Project's Avatar
    Join Date
    Dec 2010
    Posts
    2,673
    Thanks given
    1,033
    Thanks received
    829
    Rep Power
    1072
    Not sure where to put this, and this isn't really a tutorial nor would it be a download

    Code:
    <!DOCTYPE html>
    <head>
            <title>Usertitle Generator</title>
           
            <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script> 
            <script type="text/javascript">
              var _gaq = _gaq || [];
              _gaq.push(['_setAccount', 'UA-23478657-1']);
              _gaq.push(['_trackPageview']);
     
              (function() {
                    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
                    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
                    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
              })();
            </script>
    </head>
    <body>
            <div class="header">
            </div>
    <center>
            <div class="container">
                    <div class="form">
                            <label for="txt_message" id="lbl_message" class="label">Usertitle:</label>
                            <input type="text" name="txt_message" id="txt_message" class="textbox" value="Usertitle" title="Enter your user title text" />
     
                            <!-- clear_left -->
                            <div class="clear_left"></div>
                            <label for="ddl_color" id="lbl_color" class="label">Color:</label>
                            <select name="ddl_color" id="ddl_color" class="selectbox" title="Select Custom to enter a custom color">
                                    <option value="#000000">Black</option>
                                    <option value="#FFFFFF">White</option>
                                    <option value="#808080">Gray</option>
     
                                    <option value="#C0C0C0">Silver</option>
                                    <option value="#FF0000" selected>Red</option>
                                    <option value="#FFFF00">Yellow</option>
                                    <option value="#008000">Green</option>
                                    <option value="#00FF00">Lime</option>
                                    <option value="#008080">Teal</option>
     
                                    <option value="#00FFFF">Aqua</option>
                                    <option value="#000080">Navy</option>
                                    <option value="#0000FF">Blue</option>
                                    <option value="#800080">Purple</option>
                                    <option value="#FF00FF">Fuschia</option>
                                    <option value="custom">Custom</option>
     
                            </select>
                            <!-- clear_left -->
                            <div class="clear_left"></div>
                            <label for="txt_custom" id="lbl_custom" class="label">Custom:</label>
                            <input type="text" name="txt_custom" id="txt_custom" class="textbox" value="#000000" title="Enter a custom color" />                   
                            <!-- clear_left -->
                            <div class="clear_left"></div>
                            <label for="txt_glow" id="lbl_glow" class="label">Glow Color:</label>
     
                            <input type="text" name="txt_glow" id="txt_glow" class="textbox" value="Leave empty for no glow" title="Specify a glow color should you want a fancy effect" />
                            <!-- clear_left -->
                            <div class="clear_left"></div>
                            <!-- option -->
                            <div class="option">
                                    <input type="checkbox" name="chk_bold" id="chk_bold" class="checkbox" checked title="Make your text Bold" />Bold
                            </div>
                            <!-- option -->
                            <div class="option">
     
                                    <input type="checkbox" name="chk_italic" id="chk_italic" class="checkbox" title="Make your text Italic" />Italic
                            </div>
                            <!-- option -->
                            <div class="option">
                                    <input type="checkbox" name="chk_underlined" id="chk_underlined" class="checkbox" title="Underline your text, cannot be underlined if striked out" />Underlined
                            </div>
                            <!-- option -->
                            <div class="option">
                                    <input type="checkbox" name="chk_striked" id="chk_striked" class="checkbox" title="Strike out your text, cannot be striked if underlined" />Striked
                            </div>
     
                            <!-- option -->
                            <div class="option">
                                    <input type="checkbox" name="chk_marquee" id="chk_marquee" class="checkbox" title="Scroll your text" />Marquee
                            </div>
                            <!-- option -->
                            <div class="option">
                                    <input type="checkbox" name="chk_blink" id="chk_blink" class="checkbox" title="Make your text blink, does not work on some versions of FireFox" />Blink
                            </div>
                            <!-- clear_left -->
                            <div class="clear_left"></div>
     
                            <input type="button" value="Generate" id="btn_generate" name="btn_generate" class="button" title="Generate your usertitle" />
                            <!-- clear_left -->
                            <div class="clear_left"></div>
                            <label for="txt_output" id="lbl_output" class="label">Output:</label>
                            <!-- clear_left -->
                            <div class="clear_left"></div>
                            <input type="text" name="txt_output" id="txt_output" class="textbox" value='<span style="color:red;">User title</span>' />
                            <!-- clear_left -->
     
                            <div class="clear_left"></div>
                            <label id="lbl_preview" class="label">Preview:</label>
                            <!-- clear_left -->
                            <div class="clear_left"></div>
                            <p id="output_area"><span style="color:red;">User title</span></p>
                    </div>
            </div>
            <script type="text/javascript">        
                    $(document).ready(function() {
                            rebuild();
                    });
                    $('#lbl_custom').hide();
                    $('#txt_custom').hide();
                    var glowReset = false;
                    var titleReset = false;
                    $('#ddl_color').change(function() {
                            if ($('#ddl_color').val() == 'custom') {
                                    $('#lbl_custom').show();
                                    $('#txt_custom').show();
                            } else {
                                    $('#lbl_custom').hide();
                                    $('#txt_custom').hide();
                            }
                            rebuild();
                    });
                    $(':checkbox').click(function() {
                            rebuild();
                    });
                    $('#chk_striked').click(function() {
                            if ($(this).is(':checked')) {
                                    $('#chk_underlined').attr('disabled', true);
                            } else {
                                    $('#chk_underlined').removeAttr('disabled');
                            }
                    });
                    $('#chk_underlined').click(function() {
                            if ($(this).is(':checked')) {
                                    $('#chk_striked').attr('disabled', true);
                            } else {
                                    $('#chk_striked').removeAttr('disabled');
                            }
                    });
                    $('#txt_message').change(function() {
                            rebuild();
                    });
                    $('#txt_glow').change(function() {
                            rebuild();
                    });
                    $('#txt_custom').change(function() {
                            rebuild();
                    });
                    $('#txt_glow').focus(function() {
                            if (!glowReset) {
                                    $('#txt_glow').val('');
                                    $('#txt_glow').css('color', 'black');
                                    glowReset = true;
                            }
                    });
                    $('#txt_message').focus(function() {
                            if (!titleReset) {
                                    $('#txt_message').val('');
                                    $('#txt_message').css('color', 'black');
                                    titleReset = true;
                            }
                    });
                    $('#txt_output').click(function() {
                            $('#txt_output').focus();
                            $('#txt_output').select();
                    });
                    $('#btn_generate').click(function() {
                            rebuild();
                    });
                    function rebuild() {
                            var output = '<span style="';
                            var color = $('#ddl_color').val();
                            if (color == 'custom') {
                                    color = $('#txt_custom').val();
                            }
                            if (color != '' && color != 'default') {
                                    output += 'color:' + color + ';';
                            }
                            var bold = $('#chk_bold').is(':checked');
                            if (bold) {
                                    output += 'font-weight:bold;';
                            }
                            var italic = $('#chk_italic').is(':checked');
                            if (italic) {
                                    output += 'font-style:italic;';
                            }
                            var underlined = $('#chk_underlined').is(':checked');
                            var striked = $('#chk_striked').is(':checked');
                            if (underlined) {
                                    output += 'text-decoration:underline;';
                            } else if (striked) {
                                    output += 'text-decoration:line-through;';
                            }
                            var glowColor = $('#txt_glow').val();
                            if (glowColor != '' && glowColor != 'Leave empty for no glow') {
                                    output += 'text-shadow: 0px 0px 3px ' + glowColor + ';';
                            }
                            output += '">';                
                            var marquee = $('#chk_marquee').is(':checked');
                            if (marquee) {
                                    output += "<marquee>";
                            }
                            var blink = $('#chk_blink').is(':checked');
                            if (blink) {
                                    output += "<blink>";
                            }
                            output += $('#txt_message').val();
                            if (blink) {
                                    output += "</blink>";
                            }
                            if (marquee) {
                                    output += "</marquee>";
                            }
                            output += "</span>";
                            $('#txt_output').val(output);
                            $('#output_area').html(output);
                    }
            </script>
    
     
    </body>
    DDOS PROTECTED WEB & VPS AT AN AFFORDABLE COST
    Reply With Quote  
     

  2. Thankful user:


  3. #2  
    #FLAWLESSDUPES

    Monum3ntal's Avatar
    Join Date
    Oct 2011
    Posts
    704
    Thanks given
    35
    Thanks received
    83
    Rep Power
    92
    works great thanks for posting nice work
    Reply With Quote  
     

  4. #3  
    don't leech guys

    ANTILEECH's Avatar
    Join Date
    Jun 2013
    Posts
    736
    Thanks given
    170
    Thanks received
    196
    Rep Power
    129
    lol
    Reply With Quote  
     

  5. #4  
    Registered Member
    Join Date
    Apr 2015
    Posts
    79
    Thanks given
    40
    Thanks received
    9
    Rep Power
    11
    Nice work thanks
    Imagine all the people living life in peace
    Reply With Quote  
     

  6. #5  
    Registered Member
    Anthony`'s Avatar
    Join Date
    Sep 2008
    Age
    26
    Posts
    765
    Thanks given
    75
    Thanks received
    164
    Discord
    View profile
    Rep Power
    204
    Quote Originally Posted by KingMax View Post
    lol
    I haven't looked through the code but unless the data is saved and redisplayed with the executed JavaScript then it's not XSS.
    Reply With Quote  
     

  7. #6  
    Deathlypvpz Founder

    Join Date
    Aug 2012
    Posts
    486
    Thanks given
    6
    Thanks received
    116
    Rep Power
    43
    niceeeeee
    Reply With Quote  
     

  8. #7  
    Registered Member Bomahe's Avatar
    Join Date
    Dec 2014
    Posts
    9
    Thanks given
    0
    Thanks received
    1
    Rep Power
    0
    1. For stuff like this, don't add Google analytics.
    2. Javascript should be in it's own file.
    3. You shouldn't use styles directly, but apply it through CSS.
    4. Blink doesn't work, and shouldn't be used either. Same applies to Marquee and glow, don't use it because this isn't 1999.
    5. I can't see a single useful use for this. And neither the HTML, nor the JS serve as a good example on how to write webpages.
    Reply With Quote  
     

  9. #8  
    Unfortunately we’re all human. Except me


    Join Date
    Aug 2011
    Posts
    919
    Thanks given
    536
    Thanks received
    438
    Rep Power
    613
    Quote Originally Posted by Bomahe View Post
    1. For stuff like this, don't add Google analytics.
    2. Javascript should be in it's own file.
    3. You shouldn't use styles directly, but apply it through CSS.
    4. Blink doesn't work, and shouldn't be used either. Same applies to Marquee and glow, don't use it because this isn't 1999.
    5. I can't see a single useful use for this. And neither the HTML, nor the JS serve as a good example on how to write webpages.
    It is usefull. People who want to have nice titles but dont know how to code can easily generate them with this. I'm sure he put it all in 1 page so its easier to use as its only 1 file. Why shouldnt people use glows lol that's just stupid.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Usertitle Generator
    By Lorex in forum Forum Related Help
    Replies: 1
    Last Post: 05-29-2014, 03:08 AM
  2. Usertitle Generator
    By woof woof bish in forum Suggestions
    Replies: 1
    Last Post: 02-19-2012, 01:29 PM
  3. Third-Generation Side-Icons
    By Gliomaru in forum Downloads
    Replies: 47
    Last Post: 08-19-2007, 05:35 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •