Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.4.min.js"></script>
    <style type="text/css">
        #alertmsg
    {
      font-family:Arial,Helvetica,sans-serif;
font-size:135%;
font-weight:bold;
      overflow: hidden;
      width: 100%;
      text-align: center;
      position: absolute;
      top: 0;
      left: 0;
      background-color: #333F31;
      height: 20;
      color: #F3FDED;
      font: 20px/40px arial, sans-serif;
      opacity: .9;
        display:none;
}
    </style>
</head>
<body>
  
</body>
</html>
 
$(document).ready(function() {
            var $alertdiv = $('<div id = "alertmsg"/>');
            $alertdiv.text("Welcome to twitter");
            $alertdiv.bind('click', function() {
                $(this).slideUp(200);
            });
            $(document.body).append($alertdiv);
            $("#alertmsg").slideDown("slow"); 
            setTimeout(function() { $alertdiv.slideUp(200) }, 3000);
                            });
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers