Topic: I can't figure out this pirobox code?!
Hey everyone.
I am working on this portfolio site, and found this great script ( pirobox) but cannot figure out how to properly incorporate it into my html page
so far this is the script I have for a single page..But all I get is this weird arrow image thing and it erased all my text, and theres no images shown.
I guess I just don't know where to place the main code from the site into the body of my other work?
here is the main site with brief info:http://www.pirolab.it/pirobox/
Thanks
here is my document:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>untitled</title>
<link href="css_pirobox/pirobox_w.css" media="screen" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery-1.3.1.min.js"></script>
<script type="text/javascript" src="js/jquery.easing.1.3.js"></script><!--OPTIONAL-->
<!--<script type="text/javascript" src="js/jquery1.2.6.js"></script>-->
<script type="text/javascript" src="js/piroBox.js"></script>
<script type="text/javascript">
$(document).ready(function(){
jQuery.easing.def = 'easeOutExpo';
$('.thumbs').piroBox({<!--OPTIONAL,if don't want easing, just take it off, or comment-->
mySpeed: 1500,
open_speed : 1500,
close_speed : 1500,
bg_alpha: 0.8,
pathLoader : 'url(css_pirobox/ajax-loader_w.gif) center center no-repeat;',
gallery : '.pirobox_in li a',
gallery_li : '.pirobox_in li',
next_class : '.next_in',
previous_class : '.previous_in'
});
$('.thumbs').piroBox({
mySpeed: 1500,
open_speed : 1500,
close_speed : 1500,
bg_alpha: 0.8,
pathLoader : 'url(css_pirobox/ajax-loader_w.gif) center center no-repeat;',
gallery : '.pirobox li a',
gallery_li : '.pirobox li',
single : '.single a',
next_class : '.next',
previous_class : '.previous'
});
});
<style type="text/css">
<!--
#apDiv1 {
position:absolute;
left:10px;
top:31px;
width:214px;
height:557px;
background-color:#FFF;
layer-background-color:#FFF;
border:0px none #000000;
z-index:1;
}
body,td,th {
font-family: Arial, Helvetica, sans-serif;
font-size: 9px;
color: #999;
font-weight: bold;
}
body {
background-color: #FFF;
}
a:link {
text-decoration: none;
color: #999;
}
a:visited {
text-decoration: none;
color: #666;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}
#apDiv2 {
position:absolute;
left:239px;
top:31px;
width:793px;
height:555px;
background-color:#FFF;
layer-background-color:#FFF;
border:0px none #000000;
z-index:2;
}
-->
</style>
<script src="SpryAssets/SpryEffects.js" type="text/javascript"></script>
<script type="text/javascript">
<!--
function MM_effectHighlight(targetElement, duration, startColor, endColor, restoreColor, toggle)
{
Spry.Effect.DoHighlight(targetElement, {duration: duration, from: startColor, to: endColor, restoreColor: restoreColor, toggle: toggle});
}
//-->
</script>
</head>
<body>
<body leftmargin="235" topmargin="30" marginwidth="14" marginheight="14"><link href="css_pirobox/pirobox_w.css" media="screen" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery-1.3.1.min.js"></script>
<script type="text/javascript" src="js/jquery.easing.1.3.js"></script><!-- OPTIONAL, just for easing-->
<script type="text/javascript" src="js/piroBox.js"></script>
<script type="text/javascript">
$(document).ready(function(){
<li>
<a href="images folder/GRAPHICS/Graphic1book.jpg" title="Enojet Sohest Album Booklet Design 2006" ><img src="images folder/GRAPHICS/Graphic1book.jpg" alt="demo" width="100" height="100" /></a>
</li>
<li>
<a href="images folder/GRAPHICS/Graphic2cards.jpg" title="Orphan's Roar Business Card Set 2006" class="first_list"><img src="images folder/GRAPHICS/Graphic2cards.jpg" alt="demo" width="100" height="100" /></a>
</li>
<li>
<a href="images folder/GRAPHICS/Graphic3posters.jpg" title="Selected Poster Designs 2002-200" class="first_list"><img src="images folder/GRAPHICS/Graphic3posters.jpg" alt="demo" width="100" height="100" /></a>
</li>
<li>
<a href="images folder/GRAPHICS/Graphic4bargrill.jpg" class="first_list" title="Logo Design Set" ><img src="images folder/GRAPHICS/Graphic4bargrill.jpg" alt="demo" width="100" height="100" /></a>
</li>
<li>
<a href="images folder/GRAPHICS/Graphic5humans.jpg" title="Voices of Tools and Machines: Digital Print Set"><img src="images folder/GRAPHICS/Graphic5humans.jpg" alt="demo" width="100" height="100" /></a>
</li>
<li>
<a href="images folder/GRAPHICS/Graphic6sleeve.jpg" title="Detail of Enojet Sohest Album Design 2006"><img src="images folder/GRAPHICS/Graphic6sleeve.jpg" alt="demo" width="100" height="100" /></a>
</li>
<li>
<a href="images folder/GRAPHICS/Graphic7sus.jpg" title="Natural Plastic, Publication Cover Design 2007"><img src="images folder/GRAPHICS/Graphic7sus.jpg" alt="demo" width="100" height="100" /></a>
</li>
<li>
<a href="images folder/GRAPHICS/Graphic8close.jpg" title="Selected Album Booklet in leaf closeup 2006"><img src="images folder/GRAPHICS/Graphic8close.jpg" alt="demo" width="100" height="100" /></a>
<li>
<a href="images folder/GRAPHICS/Graphic9inter.jpg" title="Selected Poster Design: International Career Forum 2007"><img src="images folder/GRAPHICS/Graphic9inter.jpg" alt="demo" width="100" height="100" /></a>
</li>
<li>
<a href="images folder/GRAPHICS/Graphic10tranlim.jpg" title="Detail of Album Design Transference/Limerance 2008"><img src="images folder/GRAPHICS/Graphic10tranlim.jpg" alt="demo" width="100" height="100" /></a>
</li>
</ul>
</div>
<div style="float:left; width:90%; margin-top:5px;">
<h3>Single Image</h3>
</div>
<div class="pirobox">
<span class="single thumbs_all">
<a href="images/9.jpg" title="Caption">
<img src="images/9_s.jpg" alt="demo" width="100" height="100" /></a>
</span>
<span class="single thumbs_all">
<a href="images/10.jpg" title="Caption"><img src="images/10_s.jpg" alt="demo" width="100" height="100" /></a>
</span>
</div>
<div style="float:left; width:90%; margin:10px 0 10px 10px;">
<a href="http://www.pirolab.it/pirobox/">back to pirobox </a>
</div>
</body>
</html>

