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,471
There are 1242 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     HTML/XHTML/DHTML/CSS :

Javascript popup divs

Thread title: Javascript popup divs
Closed Thread    
    Thread tools Search this thread Display Modes  
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

04-12-2005, 11:17 PM
#2
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

Nevermind, got it working thanks to this site: http://javascriptkit.com/javatutors/static2.shtml

04-14-2005, 05:44 PM
#3
DateinaDash is offline DateinaDash
Status: The BidMaster
Join date: Nov 2004
Location: England
Expertise:
Software:
 
Posts: 10,821
iTrader: 0 / 0%
 

DateinaDash is on a distinguished road

  Old

Glad you got it sorted Jonny, shame no one could help you out

04-14-2005, 10:23 PM
#4
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

No worries, google is my freind.

What do you think of it?

Closed Thread    


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

  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