Saturday, March 26, 2011

making youtubelooper.com notes

http://youtubelooper.com/

htmlentities() - to prevent xss
urlencode() - to keep the lyric's spaces and new lines
<label> - to click on


<textarea onclick="this.focus(); this.select();"></textarea> - make it select all when clicked

style changes

Fixed something on bottom right of page with CSS:

     position: fixed;
     bottom: 0;  
     right: 0;

css to make pointer into a hand
    cursor: pointer;


get jquery: <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
jQuery to focus on something at the beginning:

  $(document).ready(function(){
      $("#inputboxid").focus();
  });



name.com sigh doesn't allow very long URL's

No comments:

Post a Comment