Advertisement
Guest User

Untitled

a guest
Dec 7th, 2012
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 8.80 KB | None | 0 0
  1.  
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  6. <title>APW-Design:Andrew Paul Wilson</title>
  7.     <link rel="stylesheet" type="text/css" href="css/styles.css" />
  8.     <link rel="stylesheet" href="bjqs.css">
  9.    
  10.    
  11. <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
  12. <script type="text/javascript" src="js/jquery.easing.1.3.js"></script>
  13. <script type="text/javascript" src="js/jquery.delay.js"></script>
  14. <script type="text/javascript" src="js/jquery.backgroundPosition.js"></script>
  15. <script type="text/javascript" src="js/bjqs-1.3.min.js"></script>
  16.  
  17.  
  18.  
  19. <script>
  20.     $(document).ready(function() { 
  21.         $("#menu, #white_line, #logo, #social").css("opacity","0");
  22.         $("#menu").stop().animate({
  23.                 opacity: 1,
  24.                 marginLeft: '50px'
  25.         }, 600, 'easeInSine');
  26.         $("#social").stop().animate({
  27.                 opacity: 0.7,
  28.         }, 600, 'easeInSine');
  29.         $("#logo").stop().animate({
  30.                 opacity: 1.0,
  31.                 marginLeft: '50px'
  32.         }, 600, 'easeInSine');
  33.         $('#white_line').stop().animate(
  34.             {opacity: 0.5},
  35.             {duration:600,easing: 'easeInSine'
  36.         });
  37.     $('#help').mouseenter(function(element) {
  38.         $("#help").css("background","#cecece")
  39.         $("#help a").css("color","#000")
  40.         });
  41.         $('#help').mouseleave(function(element) {
  42.         $("#help").css("background","#000")
  43.         $("#help a").css("color","#fff")
  44.         });
  45.        
  46.        
  47.         $('#social').mouseenter(function(element) {
  48.         $("#social").stop().animate(
  49.                 {right:0,opacity:1 },
  50.                 {duration:500,easing: 'easeOutBack'}
  51.         )
  52.         });
  53.        
  54.         $('#social').mouseleave(function(element) {
  55.         $("#social").stop().animate(
  56.                 {right:-280,opacity:0.7 },
  57.                 {duration:500,easing: 'easeOutBack'}
  58.         )
  59.         });
  60.  
  61.        
  62.     $('#logo').mouseenter(function(element) {
  63.         $("#white_line").css("background-color","#3F9");
  64.             $('#white_line').stop().animate(
  65.                 {top: 0, height:234,left:49, width:166,opacity:1 },
  66.                 {duration:500,easing: 'easeOutBack'}
  67.             )
  68.     })
  69.     $('#logo').mouseleave(function(element) {
  70.         $("#white_line").css("background","#000");
  71.             $('#white_line').stop().animate(
  72.                 {top: 79, height:2, width:1920, left:0, opacity:0.5},
  73.                 {duration:500,easing: 'easeOutBack'}
  74.             )
  75.     })
  76.            
  77.         $('#menu span').mouseenter(function(element) {
  78.             $("#menu ul li").css("opacity","1");
  79.             $("#menu").css("background","url(images/menuwhite.png) no-repeat 0px top");
  80.             $('#white_line').stop().animate(
  81.                 {top: 100, height:310,left:49, width:166, opacity:0.5 },
  82.                 {duration:500,easing: 'easeOutBack'}
  83.             )
  84.             $("#menu ul li").eachDelay(function(){
  85.                 $(this).stop().animate({
  86.                 opacity: 1,
  87.                 marginLeft: '0px',
  88.                 backgroundPosition: "150px 0px"
  89.                 }, 600, 'easeOutBack');        
  90.             }, 30);        
  91.         });
  92.        
  93.         $('#menu').mouseleave(function(element) {
  94.             $("#menu ul li").eachDelay(function(index){
  95.                 $(this).stop().animate({
  96.                 opacity: 0,
  97.                 marginLeft: '-200px',
  98.                 backgroundPosition: "150px 0px"
  99.                 }, 600, 'linear'); 
  100.                 $("#menu").css("background","url(images/menu.png) no-repeat 0px top");
  101.                 if(index == $("#menu ul li").size() -1){
  102.                     $('#white_line').stop().animate(
  103.                         {top: 79, height:2, width:1600, left:0, opcacity:0.5},
  104.                         {duration:600,easing: 'easeInBack'
  105.                     })
  106.                 }
  107.             }, 30);
  108.            
  109.            
  110.         });
  111.        
  112.        
  113.        
  114.        
  115.         $('#menu ul li').mouseenter(function(element) {        
  116.             $('#menu ul li').not(this).stop().animate({
  117.                 backgroundPosition: "150px 0px",
  118.                 opacity: '0.5'
  119.             }, 500, 'linear');
  120.             $(this).stop().animate({
  121.                 backgroundPosition: "300px 0px",
  122.                 opacity: '1'
  123.             }, 600, 'easeOutBounce');  
  124.             $(this).find('a').css("color","#fff");
  125.         });
  126.        
  127.         $('#menu ul li').mouseleave(function(element) {        
  128.             $(this).stop().animate({
  129.                 backgroundPosition: "150px 0px",
  130.                 opacity: '1'
  131.             }, 200, 'linear'); 
  132.             $(this).find('a').css("color","#000");
  133.         });
  134.        
  135.    
  136.        
  137.        
  138.     });
  139. </script>
  140. <script type="text/javascript">
  141.             $(function() {
  142.                 $('#menu ul li a').bind('click',function(event){
  143.                     var $anchor = $(this);
  144.                     /*
  145.                     if you want to use one of the easing effects:
  146.                     $('html, body').stop().animate({
  147.                         scrollLeft: $($anchor.attr('href')).offset().left
  148.                     }, 1500,'easeOutQuad');
  149.                      */
  150.                      $('html, body').stop().animate({
  151.                         scrollLeft: $($anchor.attr('href')).offset().left, scrollTop: $($anchor.attr('href')).offset().top
  152.                     }, 1500,'easeInOutExpo');
  153.                     event.preventDefault();
  154.                 });
  155.             });
  156.         </script>
  157. </head>
  158. <body>
  159. <!--[if lt IE 9]><div id="IENotice" div class="IENotice"><p>Your web browser is a little old for this site, update it here: <a href="http://www.browserchoice.eu">upgrade your browser</a> to the latest version if you want to properly see this site.</p></div><![endif]-->
  160. <div class="section white" id="section1">
  161.             <div class="maincontent">
  162.             <h1>Welcome</h1>
  163.             <p>My name is Andrew Paul Wilson. I am a student designer currently based in <a href="https://maps.google.co.uk/maps?q=google+maps+leeds&ie=UTF-8&hq=&hnear=0x48793e4ada64bd99:0x51adbafd0213dca9,Leeds,+West+Yorkshire&gl=uk&ei=8XPBULCDDMOx0AXm2YGwBg&ved=0CC8Q8gEwAA" target="_blank">Leeds</a>. I am studying my second year of product design at Leeds Metropolitan University in The Leeds School of Art, Architecture and Design. </p>
  164.             </div>
  165.         </div>
  166. <div class="section white" id="section2">
  167.             <div class="maincontent">
  168.             <h1>Profile</h1>
  169.             <p>Name: Andrew Paul Wilson
  170.             Age:20</p>
  171.             </div>
  172.         </div>
  173. <div class="section white" id="section2a">
  174. <div class="section maincontent"><h1>Section 2a</h1></div>
  175.            
  176.             <ul class="nav">
  177.                 <li><a href="#section1">1</a></li>
  178.                 <li><a href="#section2">2</a></li>
  179.                 <li>3</li>
  180.             </ul>
  181.         </div>
  182. <div class="section white" id="section3">
  183. <div class="workcontent">
  184. <div class="workbox">
  185. <div class="workboximage" div id="workboximage1"></div>
  186.                     <div class="workboxdescription" div id="workboxdescription1">
  187.                         <p>Bamboo Project - This project was about.</p>
  188.                     </div>
  189.                 </div>
  190.                 <div class="workbox"><div class="workboximage"></div><div class="workboxdescription"></div></div>
  191.                 <div class="workbox"><div class="workboximage"></div><div class="workboxdescription"></div></div>
  192.                 <div class="workbox"><div class="workboximage"></div><div class="workboxdescription"></div></div>
  193.                 <div class="workbox"><div class="workboximage"></div><div class="workboxdescription"></div></div>
  194.                 <div class="workbox"><div class="workboximage"></div><div class="workboxdescription"></div></div>
  195.                 <div class="workbox"><div class="workboximage"></div><div class="workboxdescription"></div></div>
  196.                 <div class="workbox"><div class="workboximage"></div><div class="workboxdescription"></div></div>
  197.                 <div class="workbox"><div class="workboximage"></div><div class="workboxdescription"></div></div>
  198.                 <div class="workbox"><div class="workboximage"></div><div class="workboxdescription"></div></div>
  199.                 <div class="workbox"><div class="workboximage"></div><div class="workboxdescription"></div></div>
  200.                 <div class="workbox"><div class="workboximage"></div><div class="workboxdescription"></div></div>
  201.             </div>
  202.         </div>
  203. <div class="section white" id="section4">
  204. <div style="background-color: rgba(0, 255, 0, 0.1);
  205. filter: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr='#7F00FF00', EndColorStr='#7F00FF00');position:relative; top:300px; left:300px;">
  206.             <h2>Section 4</h2>
  207.             <p>
  208.                 Mur
  209.             </p>
  210.             </div>
  211. <ul class="nav">
  212.                 <li>1</li>
  213.                 <li><a href="#section2">2</a></li>
  214.                 <li><a href="#section3">3</a></li>
  215.             </ul>
  216.         </div> 
  217.         <div id="logo" onclick="location.href='index.html'"></div>
  218.         <div id="help"><a href="help.html">Help</a></div>
  219.         <div id="white_line"></div>    
  220.         <div id="menu">
  221.             <span></span>
  222.             <ul>
  223.                 <li class="item1"><a href="#section1">Home</a></li>
  224.                 <li class="item2"><a href="#section2">Profile</a></li>
  225.                 <li class="item3"><a href="#section2a">Work</a></li>
  226.                 <li class="item4"><a href="#section3">Connect</a></li>
  227.                 <li class="item5"><a href="#section4">Contact</a></li>         
  228.             </ul>
  229.         </div>
  230.       <div id="social"></div>
  231.    
  232.  
  233.    
  234.  
  235.  
  236. </body>
  237. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement