Taurus
03-15-2007, 06:58 PM
I need help to create CSS image popup, to show big image, without
javascript, based on 'Magnify an image' sample:http://www.cssplay.co.uk/menu/magnify.html
Main difference is that all my images (i need 3 image - one row) have different size, so I need specify width/heigh for each image, include thumbnails.
Second thing is that i want convert this css into inline style, since I can no use external css file, nor css inside head section, because my html code will be added inside online listing builder, which have no head and body sections accessible, and accept just raw html code snippets, so I can no control head and body sections.
<style type="text/css">
#menu {position:relative; top:10px; left:100px; width:75px; background-color:#fff; z-index:100;}
#menu a.p1, #menu a.p1:visited {display:block; width:75px; height:75px; text-decoration:none; background:#fff; top:0; left:0; border:0;}
#menu a img {border:0;}
#menu a.p1:hover {text-decoration:none; background-color:#8c97a3; color:#000;}
#menu a .large {display:block; position:absolute; width:0; height:0; border:0; top:0; left:0;}
#menu a.p1:hover .large {display:block; position:absolute; top:-65px; left:150px; width:300px; height:300px; border:10px solid #ccc;}
#info {z-index:100; height:22em;}
</style>
<div id="menu">
<a class="p1" href="#nogo" title="thumbnail image"><img src="../img/tdrips.jpg" title="Thumbnail image" alt="Thumbnail image" /><img class="large" src="../img/drips.jpg" title="Enlarged view of image" alt="Enlarged view of image" /></a>
</div>
any help will be appreciated.
Thanks,
javascript, based on 'Magnify an image' sample:http://www.cssplay.co.uk/menu/magnify.html
Main difference is that all my images (i need 3 image - one row) have different size, so I need specify width/heigh for each image, include thumbnails.
Second thing is that i want convert this css into inline style, since I can no use external css file, nor css inside head section, because my html code will be added inside online listing builder, which have no head and body sections accessible, and accept just raw html code snippets, so I can no control head and body sections.
<style type="text/css">
#menu {position:relative; top:10px; left:100px; width:75px; background-color:#fff; z-index:100;}
#menu a.p1, #menu a.p1:visited {display:block; width:75px; height:75px; text-decoration:none; background:#fff; top:0; left:0; border:0;}
#menu a img {border:0;}
#menu a.p1:hover {text-decoration:none; background-color:#8c97a3; color:#000;}
#menu a .large {display:block; position:absolute; width:0; height:0; border:0; top:0; left:0;}
#menu a.p1:hover .large {display:block; position:absolute; top:-65px; left:150px; width:300px; height:300px; border:10px solid #ccc;}
#info {z-index:100; height:22em;}
</style>
<div id="menu">
<a class="p1" href="#nogo" title="thumbnail image"><img src="../img/tdrips.jpg" title="Thumbnail image" alt="Thumbnail image" /><img class="large" src="../img/drips.jpg" title="Enlarged view of image" alt="Enlarged view of image" /></a>
</div>
any help will be appreciated.
Thanks,