I’m working on a portfolio section for one of our clients. I need the foto’s to be displayed in a specific area in the webpage using lightbox. Now the images are dispolayed but not on a absolute position. Scrolling the page or viewing it on different screen resolutions result in different positions of the photo’s.
Here is the link to a page with thumbnails. You can click on one of them. http://www.taka-kata.com/portfolio/Decibel The idea is that the picture will cover the flash video.
why don’t you use something more simple. For example - add to each link onlick=“some_funktion();”. And the funktion will make visible image which is already absolutely positioned on the place where the flash is but will hidden property. So when you click on a link a funktion will make that image be visible.
You seem to be using the lightbox but not using any of its features
I think you will need to change the javascript to get the element to display where you want as it seems it is basing its top position on how far the page has scrolled so that the image is kept within the window. You would need to ask in that javascript forum if you want the script altered as changing the css seems to have no effect on the top position.
However if you do implement your version then the image will appear above the top of the screen if the page has scrolled down and that seem a bit silly.
It seems to me that if you want to use that lightbox then you should use it in the way that it was intended with the image always appearing in the viewport and the screen faded to allow the image to be viewed.
If you just want to place the image in the same place without any of the effects of the lightbox then a simple javascript hide and show would do the trick as mentioned above.
I would love to, it’s just that i am not familiar with javascript and this lightbox feature works very well. Also the images are uploaded through a Content Management System and the pages are not created manually.
I don’t agree, i do uses the loader, the transitions and the next and previous functions. The only thing that is not used is the layer with opacity.
But what is true is that i just want the larger image to be displayed in a specific, absolute positioned part of the website. The pages are however dynamic (not created manually but using a CMS with photoalbum module) and i have no idea how to do this in a different way as using Lightbox.
Thanks Paul, i tried it but i didn’t help much. Still the image loads on a relative position on the screen. I think you;re right the problem is the Javascript and not the CSS. Do you know how i can move this topic to the another forum?
Once this is working it could also be a very usefull solution to many other websites i guess.
Btw, it’s always nice to see Paul in the Javascript forum. We don’t respect him because he has a green badge. It is he (and the other greenies) who make that badge a very respectable symbol. Thanks, Paul.