Results 1 to 7 of 7

Thread: i want something like this...

  1. #1
    Join Date
    Aug 2009
    Posts
    399
    Thanks
    42
    Thanked 4 Times in 4 Posts

    Default i want something like this...

    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

  2. #2
    Join Date
    Aug 2009
    Posts
    399
    Thanks
    42
    Thanked 4 Times in 4 Posts

    Default

    not so easy?

  3. #3
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    It uses jquery.

    Here's a simpler version:

    Code:
    <!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>
    Last edited by bluewalrus; 12-17-2009 at 12:54 AM.

  4. #4
    Join Date
    Aug 2009
    Posts
    399
    Thanks
    42
    Thanked 4 Times in 4 Posts

    Default

    Hmm, this is not sliding...

  5. #5
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    do you have jquery and the version specified in the head on your server in the folder your put this into?

  6. #6
    Join Date
    Aug 2009
    Posts
    399
    Thanks
    42
    Thanked 4 Times in 4 Posts

    Default

    mm, no

  7. #7
    Join Date
    Aug 2009
    Posts
    399
    Thanks
    42
    Thanked 4 Times in 4 Posts

    Default

    can you tell me?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •