Menu
Hi:
Noob here… I have a smaller version of an image that I would like to click and then show the full sized version of the image that I have on another web page.
Question is, what piece of html do I need to do this manoeuvre? I am also thinking of a nice piece of ‘[I]tooltip
I am hours into this already so thanks in advance for any help
[code=html]<a href="image_large.jpg" title="click here to see the full sized image"><img src="image_small.jpg" alt="your alt description here"></a>[/code]
Hi:
Noob here... I have a smaller version of an image that I would like to click and then show the full sized version of the image that I have on another web page.
Question is, what piece of html do I need to do this manoeuvre? I am also thinking of a nice piece of '[I]tooltip[/I]' on the hover that says "click here to see the full sized image" or something like that.
I am hours into this already so thanks in advance for any help[/QUOTE]
<a href="FullSize.jpg"><img alt="thumb" src="thumb.jpg"></a>
When the above thumb is clicked the browser will display FullSize.jpg sized to fit the client window of the browser and when the cursor moves over it a '+' will appear to signify that clicking the image will display it full size. What I want to do is display the image full size in the first place, without requiring the user to click it to get full size.[/QUOTE]
[color=navy]
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>css zoom image in and out</title>
<style media="screen">
body {
background-color:#f0f0f0;
}
#img-holder {
position:relative;
min-height:150px;
}
#mask,#pic {
position:absolute;
z-index:1;
left:0;
right:0;
margin:auto;
width:216px;
padding:4px;
border:1px solid #006000;
background-color:#fff;
box-shadow:5px 5px 5px #666;
outline:0;
cursor:pointer;
}
#mask {
z-index:3;
width:226px;
height:143px;
padding:0;
border:0;
background-color:transparent;
box-shadow:none;
}
#mask:focus~#pic {
-webkit-animation:newsize 5s forwards;
animation:newsize 5s forwards;
}
#mask:focus{
-webkit-animation:masksize 5s forwards;
animation:masksize 5s forwards;
}
#pic:focus {
-webkit-animation:oldsize 5s forwards;
animation:oldsize 5s forwards;
}
@-webkit-keyframes newsize {
from {
width:216px;
padding:4px;
border:1px solid #006000;
box-shadow:5px 5px 5px #666;
}
to {
width:648px;
padding:12px;
border:3px solid #006000;
box-shadow:15px 15px 15px #666;
}
}
@keyframes newsize {
from {
width:216px;
padding:4px;
border:1px solid #006000;
box-shadow:5px 5px 5px #666;
}
to {
width:648px;
padding:12px;
border:3px solid #006000;
box-shadow:15px 15px 15px #666;
}
}
@-webkit-keyframes masksize {
from {
width:226px;
height:143px;
}
to {
width:0;
height:0;
}
}
@keyframes masksize {
from {
width:226px;
height:143px;
}
to {
width:0;
height:0;
}
}
@-webkit-keyframes oldsize {
from {
width:648px;
padding:12px;
border:3px solid #006000;
box-shadow:15px 15px 15px #666;
}
to {
width:216px;
padding:4px;
border:1px solid #006000;
box-shadow:5px 5px 5px #666;
}
}
@keyframes oldsize {
from {
width:648px;
padding:12px;
border:3px solid #006000;
box-shadow:15px 15px 15px #666;
}
to {
width:216px;
padding:4px;
border:1px solid #006000;
box-shadow:5px 5px 5px #666;
}
}
</style>
</head>
<body>
<div id="img-holder">
<span id="mask" tabindex="1"></span>
<img id="pic" src="http://www.coothead.co.uk/images/leaves.png" alt="leaves" tabindex="2">
</div>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec
ultricies sollicitudin nisi, ut molestie felis adipiscing sit
amet. Sed auctor vehicula commodo. Nam a nibh neque, vitae
faucibus felis. Vivamus at metus eget eros consequat fringilla.
Quisque magna magna, laoreet eu tempus sit amet, fringilla at
tellus. Praesent felis tortor, scelerisque vitae fringilla
non, porttitor et lacus. Ut ut sapien nec quam tincidunt
consectetur in nec lacus.
</p><p>
Phasellus porta, dui a elementum egestas, odio sapien rhoncus
lorem, vitae bibendum erat sem eget sapien. Maecenas ut metus
ac quam pellentesque lacinia quis sit amet augue. Fusce eu
euismod urna. Nunc volutpat scelerisque tempus. Donec eget arcu
et mauris scelerisque tristique. Donec fringilla mauris dolor,
sit amet vulputate lacus. Nulla feugiat mattis nulla non
tincidunt. Nam sit amet dolor eros, a viverra lacus. Nunc quis
nisi eget neque tempus facilisis eu quis sapien.
</p>
</body>
</html>[/color]
[color=navy].... "image zoom out with in round motion"...[/color] [/quote]
hello, maybe you can use jquery CSS changing for bigger image on click
like this
<script>
function bigger(){
$(element).css("height":"150%");
}
</script>
[/QUOTE]
hello, maybe you can use jquery CSS changing for bigger image on click
like this
<script>
function bigger(){
$(element).css("height":"150%");
}
</script>
[/QUOTE]
0.1.9 — BETA 6.2