|
Hi
I was looking up and down the internet but i can't find a site with that viewer again.
What it does is you click on a thumbnail and it expands the full resolution picture out of it without the hassle of opening a new window. It renders the site in the background darker and you can close the picture by clicking on it or a little x on the top right.
Can someone point me to the right direction?
|
like as a firefox extension?
if you are just looking for code to mimic, ign does this and so does starcraft2
|
Germany2896 Posts
but there are two things you should take care of: 1. it should work if js is disabled 2. The back of the browser button should work correctly. I can't remember how often I have cursed the sotes where the back button goes to far back, because they only did some js shit inbetween.
to get it work, you probably can show a div with position:absolute and all margins to auto. How to get a darkened background I don't know. The backbutton probably can be made functional by using a hidden iframe.
|
I always wondered how they did that too, you might be able to add a div that is full height and width, z-index > your normal greatest index , then turn the opacity down to like 30% or something
I might try to do something like this, if i come up with anything i'll let you know
Just for more information - what browser is the main consideration? ( I'm assuming all but IE is just a pain in the ass ) - and what Doctype will you be using?
|
I have once tried this. its qiute hard to get it cross-browser scripted. but as u can see with sc2 blizzard site, it can be done. But you do have to fix it when js is disabled. so you have to take care of such things too.
gl
|
|
|
|