gongpex Posted April 23, 2011 Share Posted April 23, 2011 Hello everyone,I think I difficult to say it because I don't know how to call it:but please see this image : when I click "sign in" it appears like this image.Can someone give me the javascript code?and please and tell me what called of this javascriptThank you very much Link to comment Share on other sites More sharing options...
jeffman Posted April 23, 2011 Share Posted April 23, 2011 Please explain the problem a little more. Link to comment Share on other sites More sharing options...
dsonesuk Posted April 23, 2011 Share Posted April 23, 2011 Its a div container that contains a form, which is hidden from view within the page, until the user click a button/link which use js to show the container, and position itself and and transparent background over the page content, filling the whole browser screen window.a css code to position a container in middle/centre of page is found at http://simon.html5.org/sandbox/css/center-fixed Link to comment Share on other sites More sharing options...
Zilee Posted April 23, 2011 Share Posted April 23, 2011 Relatively easy to make. Don't forget you have position:absolute and z-index:++ to allow you to basically splatter any element over existing content. Link to comment Share on other sites More sharing options...
gongpex Posted April 24, 2011 Author Share Posted April 24, 2011 Its a div container that contains a form, which is hidden from view within the page, until the user click a button/link which use js to show the container, and position itself and and transparent background over the page content, filling the whole browser screen window.a css code to position a container in middle/centre of page is found at http://simon.html5.org/sandbox/css/center-fixed so this only using CSS?not javascript?please give me the code or script if not objectionThank you very much Link to comment Share on other sites More sharing options...
thescientist Posted April 25, 2011 Share Posted April 25, 2011 well, like he said, it uses both. Javascript shows an element that has been set to hidden, and CSS positions it so it will appear in the center of the screen when shown. Link to comment Share on other sites More sharing options...
ShadowMage Posted April 25, 2011 Share Posted April 25, 2011 Try Googling "javascript lightbox tutorial" Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.