Back to top

Autore Topic: Problema carrello-codici HTML  (Letto 1795 volte)

Offline Luxord

  • Nuovo arrivato
  • *
  • Post: 6
    • Mostra profilo
Problema carrello-codici HTML
« il: 26 Giu 2009, 11:46:42 »
Ho provato ad editare l'HTML del template... ma quando modifico non mi fa più selezionare oggetti nel carrello. C'è qualche errore nel codice HTML che ho inserito? Ve lo posto:

Codice: [Seleziona]
<html xmlns="http://www.w3.org/1999/xhtml" lang="it">
<head>
<style type="text/css">
body {
font: Arial, Helvetica, sans-serif normal 10px;
margin: 0; padding: 0;
}
* {margin: 0; padding: 0;}
img {border: none;}
.container {
height: 360px;
width: 910px;
margin: -180px 0 0 -450px;
top: 72%; left: 62%;
position: absolute;
}
ul.thumb {
float: right;
list-style: none;
margin: 0; padding: 10px;
width: 360px;
}
ul.thumb li {
margin: 0; padding: 5px;
float: right;
position: relative;
width: 110px;
height: 140px;
}
ul.thumb li img {
width: 130px; height: 130px;
border: 1px solid #FFFFAA;
padding: 5px;
background: #1a1a1a;
position: absolute;
left: 0; top: 0;
-ms-interpolation-mode: bicubic;
}
ul.thumb li img.hover {
background:url(thumb_bg.png) no-repeat center center;
border: none;
}
#main_view {
float: right;
padding: 9px 0;
margin-left: -10px;
}
</style>
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
$(document).ready(function(){

//Larger thumbnail preview

$("ul.thumb li").hover(function() {
$(this).css({'z-index' : '10'});
$(this).find('img').addClass("hover").stop()
.animate({
marginTop: '-110px',
marginLeft: '-110px',
top: '50%',
left: '50%',
width: '190px',
height: '190px',
padding: '20px'
}, 200);

} , function() {
$(this).css({'z-index' : '0'});
$(this).find('img').removeClass("hover").stop()
.animate({
marginTop: '0',
marginLeft: '0',
top: '0',
left: '0',
width: '130px',
height: '130px',
padding: '5px'
}, 400);
});

//Swap Image on Click
$("ul.thumb li a").click(function() {

var mainImage = $(this).attr("href"); //Find Image Name
$("#main_view img").attr({ src: mainImage });
return false;
});
 
});
</script>
</head>
<body>
<div class="container">
<ul class="thumb">
<table>
<br>
<br>
<br>
<br>
<br>
<br>   <table><tr><td><li><a href="/index.php?option=com_virtuemart&page=shop.browse&category_id=8&Itemid=28" target="_blank"><img src="http://i234.photobucket.com/albums/ee189/ironmaster82/cartucce_vuoteD68.jpg"></a></li></a></td> </tr>
<tr><td><li><a href="main_image3.jpg"><img src="http://www.francescobabboni.it/portatile.jpg" alt="" /></a></li></td></tr> <tr><td><li><a href="main_image3.jpg"><img src="http://img.alibaba.com/photo/11739866/Personal_Computer_Desktop.jpg" alt="" /></li></a></td> <tr><td><li><a href="main_image3.jpg"><img src="http://www.ssdisk.eu/news/wp-content/uploads/2008/11/hdd.jpg" alt="" /></li></a></td>
<tr><td><li><a href="main_image5.jpg"><img src="http://www.freemindconsulting.com/osc/catalog/images/ready/393_1415_MultifunzioneEpsonDX7400.jpg" alt="" /></a></li></td></tr>
</table>

</ul>
<div id="main_view">

</div>
</div>
<br /><br /><br /><br /><br /><br />
« Ultima modifica: 26 Giu 2009, 11:58:27 da Luxord »

 



Web Design Bolzano Kreatif