a img{width: 100px;}
a:hover img{width: 100%;}
img {width: 100px;}
img:hover{width: 100%;}
Öhm... wenn er Photoshop hat und es die passeende Version ist, evtl. - obwohl das dann auch ziemlich übel verjavascriptett oder verflasht ist. Falls er Photoshop nicht hat, müsste er für einen einfachen Effekt mal "gerade eben" ca. 1000€uronen übrig haben...Du kannst Dir sowas auch ganz super mit Photoshop bauen.
Hier habe ich das 1. von dir genannte beispiel genommen. ein teilerfolg war da. die Vorschau waren ganze Bilder. Aber sie haben sich nicht vergrößert als ich mit der Maus drüber fuhr.</head>
<body>
<style>
ul#thumbs a{
display:block;
float:left;
width:100px;
height:100px;
line-height:100px;
overflow:hidden;
position:relative;
z-index:1;
}
ul#thumbs a img{
float:left;
position:absolute;
top:-20px;
left:-50px;
}
a img{width: 150px;}
a:hover img{width: 100%;}
ul#thumbs a:hover{
overflow:visible;
z-index:1000;
border:none;
}
</style>
</head>
<body>
<h1>Fotos vo...</h1>
<h2>2009</h2>
<ul id="thumbs">
<li><a href="fotos/1.jpg"><img src="fotos/1.jpg"></a></li>
<li><a href="fotos/2.jpg"><img src="fotos/2.jpg"></a></li>
<style>
/* general */
body {
margin:0;
padding:40px 80px;
background:#fff;
font:70% Arial, Helvetica, sans-serif;
color:#555;
line-height:180%;
}
h1, h2{
font-size:180%;
font-weight:normal;
color:#555;
}
h2{
font-size:140%;
}
p{
margin:1em 0;
}
p.text{
width:500px;
}
a{
color:#f20;
text-decoration:none;
}
a:hover{
color:#999;
}
img{
border:none;
}
/* // general */
/* thumbnail list */
ul#thumbs, ul#thumbs li{
margin:0;
padding:0;
list-style:none;
}
ul#thumbs li{
float:left;
margin-right:5px;
border:1px solid #999;
padding:2px;
}
ul#thumbs a{
display:block;
float:left;
width:100px;
height:100px;
line-height:100px;
overflow:hidden;
position:relative;
z-index:1;
}
ul#thumbs a img{
float:left;
position:absolute;
top:-20px;
left:-50px;
}
/* mouse over */
ul#thumbs a:hover{
overflow:visible;
z-index:1000;
border:none;
}
ul#thumbs a:hover img{
border:1px solid #999;
background:#fff;
padding:2px;
}
/* // mouse over */
/* clearing floats */
ul#thumbs:after, li#thumbs:after{
content:".";
display:block;
height:0;
clear:both;
visibility:middle;
}
ul#thumbs, li#thumbs{
display:block;
}
/* \*/
ul#thumbs, li#thumbs{
min-height:1%;
}
* html ul#thumbs, * html li#thumbs{
height:1%;
}
/* // clearing floats */
/* // thumbnail list */
/* single thumbnail */
p.thumb{
float:left;
margin:.5em 0;
margin-right:10px;
border:1px solid #999;
padding:2px;
}
p.thumb a{
display:block;
float:left;
width:100px;
height:100px;
line-height:100px;
overflow:hidden;
position:relative;
z-index:1;
}
p.thumb a img{
float:left;
position:absolute;
top:-20px;
left:-50px;
}
/* mouse over */
p.thumb a:hover{
overflow:visible;
z-index:1000;
border:none;
}
p.thumb a:hover img{
border:1px solid #999;
background:#fff;
padding:2px;
}
/* // mouse over */
/* // single thumbnail */
</style>
</head>
<body>
<h1>Fotos ...</h1>
<h2>2009</h2>
<ul id="thumbs">
<li><a href="fotos/1.jpg"><img src="fotos/1.jpg"></a></li>
div img {
float : left;
clear : left;
width : 188px;
height : 230px;
margin : 1em 1em 0.1em 0.5em;
}
div img:hover {
width : 393px;
height : 483px;
border : 2px solid #cc0000;
margin : 0;
padding : 0;
position:absolute;
z-index:2;
}
.IElink {
display: none;
}
<!--[if lt IE 8]>
<style type="text/css">
.IElink {
display: inline;
}
div img:hover {
position : relative;
top : 0px;
left : 0px;
float:left;
clear : left;
width : 188px;
height : 230px;
margin : 1em 1em 0.1em 0.5em;
border: 0px;
}
</style>
<![endif]-->
<div>
<img src="bild.jpg" alt="Was sinvolles" title="weitere sinvolle Sachenl" /><a class="IElink" href="bild.jpg">Bildlink</a>
</div>
<!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>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Hoverbox Image Gallery</title>
<link rel="stylesheet" href='css/hoverbox.css' type="text/css" media="screen, projection" />
<!--[if lte IE 7]>
<link rel="stylesheet" href='css/ie_fixes.css' type="text/css" media="screen, projection" />
<![endif]-->
</head>
<body>
<h1>Bilder vom xxx</h1>
<ul class="hoverbox">
<li>
<a href="#"><img src="fotos/1.jpg" alt="description" /><img src="fotos/1.jpg" alt="description" class="preview" /></a>
</li>
<li>
<a href="#"><img src="fotos/2.jpg" alt="description" /><img src="fotos/2.jpg" alt="description" class="preview" /></a>
</li>
<li>
<a href="#"><img src="fotos/3.jpg" alt="description" /><img src="fotos/3.jpg" alt="description" class="preview" /></a>
</li>
<li>
<a href="#"><img src="fotos/4.jpg" alt="description" /><img src="fotos/4.jpg" alt="description" class="preview" /></a>
</li>
<li>
<a href="#"><img src="fotos/5.jpg" alt="description" /><img src="fotos/5.jpg" alt="description" class="preview" /></a>
</li>
<li>
<a href="#"><img src="fotos/6.jpg" alt="description" /><img src="fotos/6.jpg" alt="description" class="preview" /></a>
</li>
<li>
<a href="#"><img src="fotos/7.jpg" alt="description" /><img src="fotos/7.jpg" alt="description" class="preview" /></a>
</li>
<li>
<a href="#"><img src="fotos/8.jpg" alt="description" /><img src="fotos/8.jpg" alt="description" class="preview" /></a>
</li>
<li>
<a href="#"><img src="fotos/9.jpg" alt="description" /><img src="fotos/9.jpg" alt="description" class="preview" /></a>
</li>
<li>
<a href="#"><img src="fotos/10.jpg" alt="description" /><img src="fotos/10.jpg" alt="description" class="preview" /></a>
</li>
<li>
<a href="#"><img src="fotos/11.jpg" alt="description" /><img src="fotos/11.jpg" alt="description" class="preview" /></a>
</li>
<li>
<a href="#"><img src="fotos/12.jpg" alt="description" /><img src="fotos/12.jpg" alt="description" class="preview" /></a>
</li>
<li>
<a href="#"><img src="fotos/13.jpg" alt="description" /><img src="fotos/13.jpg" alt="description" class="preview" /></a>
</li>
<li>
<a href="#"><img src="fotos/14.jpg" alt="description" /><img src="fotos/14.jpg" alt="description" class="preview" /></a>
</li>
</ul>
<p id="footer"><a href="http://validator.w3.org/check/referer">XHTML</a> <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a> <a href="http://www.contentquality.com/mynewtester/cynthia.exe?Url1=http://host.sonspring.com/hoverbox/">508</a> | Hoverbox by <a href="http://sonspring.com/">Nathan Smith</a>. | Read the <a href="http://sonspring.com/journal/hoverbox-image-gallery">Tutorial</a>.</p>
</body>
</html>
Update: Hoverbox code is free to use, so do with it whatever you want in your own projects. I just ask that you not redistribute the code via template sharing repositories, because I occasionally make updates to ensure multiple browser compatibility. If you do want to spread the word, simply link to this page so that people are always getting the most updated version.