Friday, 16 December 2011

Art work

On my art work page where i display all my work in photo form (mainly jpeg)in a canvas slide show, It operates by moving the mouse either side of the left and right of the picture to make the slide show move. I used a video tag to do this and i have also used a sound tag in lower right corner to play music while viewing the slide show.

Source code for set up (there are jqueries included. Due to length of them , they can be viewed through my source code at this url: http://www.thomaspiercey.co.uk/artwork.html


<!DOCTYPE html>
<html lang="en">
 
  <head>
     <meta charset="utf-8" />
     <meta name="description" content="Portofilo"/>
    <meta name="keywords" content="art,thomas piercey,html5"/>    
              
                
                
  <title> Home Page </title>
      <link href="Reset.css" rel="stylesheet" type="text/css"/>
     <link href="stylesheet.css" rel="stylesheet" type="text/css">
          
    
      <!--[if lt IE 9]>
     <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
     <![endif]-->
                    <!-- the CSS for Smooth Div Scroll -->
 <link rel="Stylesheet" type="text/css" href="smoothDivScroll.css" />
 
 <!-- jQuery library - I get it from Google API's -->
 <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js" type="text/javascript"></script>
 <!-- jQuery UI widget factory -->
 <!-- You can download it as a part of jQuery UI Core
   http://jqueryui.com/download -->
 <script src="jquery.ui.widget.js" type="text/javascript"></script>
 
 <!-- Smooth Div Scroll 1.1 - minified for faster loading-->
<script src="jquery.smoothDivScroll-1.1.js" type="text/javascript"></script>

 <script type="text/javascript">
  // Initialize the plugin with no custom options
  $(window).load(function() {
   $("div#makeMeScrollable").smoothDivScroll({});
  });
 </script>

 <!-- Styles for my specific scrolling content -->
 <style type="text/css">
  #makeMeScrollable
  {
   width:880px;
   height: 400px;
   position: relative;
   padding: 40px;
  }
  
  #makeMeScrollable div.scrollableArea img
  {
   position: relative;
   float: left;
   margin: 0;
   padding: 0;
   border: solid: 10px: #000;
  }
 </style>
                    
        
 </head>

<body>
<div id="wrapper">

 <banner>  </banner>

      
       <header>    
    <nav> 
             
       
        <ul id="nav">
         <li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
         <li id="active"><a href="artwork.html">Art Work</a></li>
         <li><a href="video gallery.html">Video Work</a></li>
         <li><a href="http://thomaspiercey.blogspot.com/">Blog</a></li>
         <li><a href="samantic app.html">Samantic App</a></li>
         <li><a href="http://www.facebook.com/thomas.piercey?ref=tn_nonslim">  <iframe src="facebook-icon.gif"width="50" height="50" frameborder="0"></iframe></a></li>
<li><a href="www.facebook.com">  <iframe src="rrs-icon.gif"width="50" height="50" frameborder="0"></iframe></a></li>
        
        </ul>
        
 </nav>
   
        </header>
        
        <header2> 
        </header2>
             
       <article>
                 
                 <section>
                     <div id="makeMeScrollable">
  <div class="scrollingHotSpotLeft"></div>
  <div class="scrollingHotSpotRight"></div>
  <div class="scrollWrapper">
   <div class="scrollableArea">
    <img src="dude.jpg" alt="Demo image" />
                <img src="sea.jpg" alt="Demo image" />
                <img src="main-team.png" alt="Demo image" />
               <img src="picture9.png" alt="Demo image" />
  </div>
 </div>
        
        
        </section>
        
        </article>
                    
                    <bside>
                    
                       <audio control  ="controls" autoplay="autoplay">
        <source src= "musicplay.mp4" />
        
        </audio>
                    <b>A canvas reel of my work!</b>
</bside>
   
            
 
             <audio controls="controls">
  
  <source src="play.mp3" type="audio/mp3" />
  Your browser does not support the audio element.
</audio>    
                
                 
                 
                 
               
                 
                 
                 
      
                     
        
                         
              <header3></header3>
                         
       <div id= "footer"> &copy; 2011 thomaspiercey.com
             
               <iframe src="http://free.timeanddate.com/clock/i2vzr62q/fs20/fcfff/tct/pct/ftb/th2" frameborder="0" width="118" height="27" allowTransparency="true"></iframe>
          
              </div>
</div>
 </div>
 
</body>

</html>

No comments:

Post a Comment