Team:Sevilla/Notebook

From 2011.igem.org

(Difference between revisions)
Line 11: Line 11:
-
+
<script src="http://www.rockechris.com/jquery/jquery.panorer.js"></script>
-
<script type="text/javascript">
+
<script>
-
+
-
$(document).ready(function(){
+
-
$('.panorama-view').panorama360();
+
-
});
+
-
+
-
</script>
+
-
<div class="panorama round" style="padding-left:10px;width:720px;height:520px;background-color:#444;">
+
  $(document).ready(function() {
-
<div class="panorama-view">
+
//use panorer plugin.
-
<div class="panorama-container">
+
    $('#pano').panorer({ 'easing': 'linear', 'direction': "EW" });
-
<img src="https://sites.google.com/site/bobstringfiles/arcanum/arcanumlab.jpg" data-width="7476" data-height="501" alt="Panorama" />
+
-
</div>
+
-
</div>
+
-
<a class="info round" href="http://www.arcanumproject.com">Arcanum Lab</a>
+
-
</div>
+
 +
});
 +
</script>
-
<style>
+
<div id="pano" style= "width: 700px; height: 501px;border: medium solid black; position: relative; overflow: hidden;">
 +
   
 +
        <img alt="Example" src="http://institucional.us.es/igembiouse/360/View_from_Sky_Tower_Akl_small.jpg" style="position: absolute; left: -100.3px;">
-
a{margin:0;padding:0;font-size:100%;vertical-align:baseline;background:transparent}
+
</div>
-
.round{border-radius:6px;-moz-border-radius:6px}
+
-
 
+
-
/* layout */
+
-
.panorama,.panorama-view{width:100%;height:100%;overflow:hidden}
+
-
.panorama,.panorama-container{position:relative}
+
-
.panorama-container img{height:100%;position:absolute;top:0}
+
-
.panorama .info,.panorama-view .area{position:absolute;display:block}
+
-
.panorama .info{right:10px;bottom:10px}
+
-
 
+
-
/* style */
+
-
 
+
-
.panorama .info{padding:6px;opacity:0.4;background-color:#000;color:#fff;font:11px bold Arial,sans-serif;text-decoration:none}
+
-
.panorama .info:hover{opacity:0.6}
+
-
.panorama-view .area{opacity:0.2;background-color:#000;cursor:pointer}
+
-
.panorama-view .area:hover{opacity:0.4}
+
-
.panorama-view img{user-select:none;-o-user-select:none;-moz-user-select:none;-webkit-user-select:none)}
+
-
</style>
 
</html>
</html>

Revision as of 15:22, 25 July 2011



Example