Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 1702 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     HTML/XHTML/DHTML/CSS :

Javascript popup divs

Thread title: Javascript popup divs
     
    Thread tools Search this thread Display Modes  
Prev Previous Post   Next Post Next
04-11-2005, 01:37 PM
#1
Jonny is offline Jonny
Status: Member
Join date: Feb 2005
Location: UK
Expertise:
Software:
 
Posts: 335
iTrader: 0 / 0%
 

Jonny is on a distinguished road

  Old  Javascript popup divs

I want to create a javascript that when you click on a thumbnail of an image the larger version of it pops up in the center of the screen.

I've done this (mostly) however I have a slight problem, it centers it fine, however it is only centered when you are on the top of the screen. Some how, I want it to be offsetted so its centered at the part of the site you are looking at. (and not have it follow the screen as you move up or down)

You can see what I have done here (link: http://www.jonsully.co.uk/ ) by clicking on a blog image thumbnail or one of the first two in the portfolio section.

Anyone have any idea's of how I can offset the image so its at the center of the screen where you are but not following it?

(btw, don't try it in IE, it doesn't center atm, I will get round to making it work in IE later or sth)

Note: Now works in IE

     


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed