CSS Image Pop Up

Status
Not open for further replies.

Paolo

New Member
Hi Guys, I am new on this forum. I find it very interesting. Can anybody share with me some nice coding for CSS Image Pop Up or post some useful links? I have seen a few of the around but they are not really well coded. Thanks in advance, Regards.
 

louie

New Member
Can you explain more of what are you looking for or give us a link with an example?

Pop-up is usually done using JavaScript.
 

Paolo

New Member
Hi Louie, Thanks for your quick response. You are right this is usually done by using JavaScript but now people is starting to use CSS to achieve the same effect. Basically from a thumbnail image I want to try to pop up a bigger image whe you pass over when mouse on. Please visit the following link to see what I am talking about. CSS ~ Image Pop UP Thanks a mil. Paolo
 

louie

New Member
Did you have a look into the CSS file for that page?
Is loading the image in the browser and only shows when you mouse-over.
That will be grand on one image per page but what about 10 or more loaded in the browser for no reason. That could slow down your website big time. Better make use of Ajax like the lightbox code.
 

Paolo

New Member
Hi Louie, I have seen the CSS and I agree with you the code was terrible, specially when you have more than 1 pic per page. Hi 3rigena, That's exactly what I was looking for. I am sure that this will be usefull for other plp too. Thanks again.
 

Paolo

New Member
Hi Louie, That actually works better for me, with the CSS because the bigger image covers several thumbnails at the same time you don't get to see all the pictures. The big picture covers 6 thumbnails at the same time. The reason why I didn't use JS before is because I don't know much about it. I am testing with one thumbnail and one image and they are both the same size, but the original two pics have different height and width. Do you know what line contains the info for height and width for the bigger image? Thanks in advance, Paolo
 

louie

New Member
Lightbox is very easy to implement into your website.
download, ftp it to your website then include the js file in the <head>...</head> tag and add the rel="" tag to any images that you want to use like this:
Code:
<!--add the js script-->
<script type="text/javascript" src="lightbox.js"></script>

<!-- add the rel="" tag to your image-->
<a href="images/image-1.jpg" rel="lightbox" title="my caption">image #1</a>
 
Status
Not open for further replies.
Top