Log in

View Full Version : i want something like this...



auriaks
12-16-2009, 01:09 PM
Hi,
I saw a nice picture-sliding system in this page: http://www.acantus.lt/
Is there a script to do the same thing?
If you need more information, ask :) Thanks

auriaks
12-16-2009, 09:22 PM
not so easy?

bluewalrus
12-17-2009, 12:18 AM
It uses jquery.

Here's a simpler version:


<!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" xml:lang="en" lang="en">
<head>
<script type="text/javascript" src="js/jquery-1.3.2.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$(".portfolio1t").hover(
function() {
$(this).addClass("portfolio1t_active");
$(this).children(".portfolio1_container").animate({top: "-25px"}, 200 );
},
function() {
$(this).removeClass("portfolio1t_active");
$(".portfolio1_container").animate({top: "0px"}, 100 );
}
);
});
</script>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Page</title>
<style type="text/css">
.portfolio1 { overflow: hidden; width: 150px; height: 150px; border: 5px solid #ddd; position: relative; }
.portfolio1t { overflow: hidden; width: 80px; height: 80px; border: 3px solid #ddd; position: relative; }
.portfolio1_container { position: absolute; top: 0px; left: 0px; }
.portfolio1_link { background: #3e9feb; text-align: center; }
.portfolio1_link a { color: white; font-size: 11px; display: block; height: 20px; line-height: 20px; }

.portfolio1_active { border: 5px solid #3e9feb !important; }
.portfolio1t_active { border: 3px solid #3e9feb !important; }
</style>
</head>
<body>
<div class="portfolio1t">
<div class="portfolio1_container">
<div><a target="_blank" href="http://www.a-d.lt" style="font-weight: bold"><img src="http://www.acantus.lt/get.php?i.10:w.80:h.80:r.1" alt="A-d.lt" /></a></div>
<div class="portfolio1_link"><a target="_blank" href="http://www.a-d.lt">www.a-d.lt</a></div>
</div>
</div>
<div class="portfolio1t">
<div class="portfolio1_container">
<div><a target="_blank" href="http://www.thanks.lt" style="font-weight: bold"><img src="http://www.acantus.lt/get.php?i.14:w.80:h.80:r.1" alt="Thanks.lt" /></a></div>
<div class="portfolio1_link"><a target="_blank" href="http://www.thanks.lt">www.thanks.lt</a></div>
</div>
</div>
</body>
</html>

auriaks
12-17-2009, 04:18 PM
Hmm, this is not sliding...

bluewalrus
12-17-2009, 05:30 PM
do you have jquery and the version specified in the head on your server in the folder your put this into?

auriaks
12-26-2009, 11:07 PM
mm, no :)

auriaks
02-19-2010, 02:49 PM
can you tell me?