Advertisement
Guest User

Untitled

a guest
Nov 28th, 2014
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>HEY</title>
  6.  
  7. <script type="text/javascript" src="jquery-1.7.1.js"></script>
  8.  
  9. <style type="text/css">
  10. html {font-family:Arial, Helvetica, sans-serif; }
  11.  
  12. #hp_barreSeek{ background:#f0f0f0; height:37px; width:100%; }
  13. #hp_barreSeekData{ height:37px; width:940px; margin:0 auto 0 auto; }
  14.  
  15. #hp_barreSeekData ul,#hp_barreSeekData ul li,#hp_barreSeekData ul li span{
  16. height:37px; line-height:37px; vertical-align:middle;
  17. display:block;}
  18. #hp_barreSeekData ul{ padding:0 18px 0 18px; }
  19. #hp_barreSeekData ul li{ float:left; list-style:none;}
  20. #hp_barreSeekData ul li+li{ margin-left:45px;}
  21. #hp_barreSeekData ul li span{ font-size:18px; }
  22. #hp_barreSeekData ul li+li>span{cursor:pointer!important;}
  23. #hp_barreSeekData ul li+li>span:hover,#hp_barreSeekData ul li span.selected{ color:#cacaca;}
  24.  
  25. </style>
  26. </head>
  27.  
  28. <body>
  29.  
  30. <div id="hp_barreSeek">
  31. <div id="hp_barreSeekData">
  32. <div id="tabs">
  33. <ul>
  34. <li class="title" ><span>Title</span></li>
  35. <li id="toto" ><span id="onefx">btn1 hey</span></li>
  36. <li ><span>btn2</span></li>
  37. <li ><span>btn3</span></li>
  38. <li ><span>btn4</span></li>
  39. <li class="clear"></li>
  40. </ul>
  41.  
  42. </div>
  43. <div class="clear"></div>
  44. <script type="text/javascript">
  45. $('#onefx').on('click',function(){
  46. $('#toto').css('width',$(this).width());
  47. console.log($(this).width());
  48. });
  49. </script>
  50. </div>
  51. </div>
  52. </body>
  53. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement