/ Published in: JavaScript
This I will use for popping up the login and profile info
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function popup() { var id = document.getElementById(ID); var screenW = document.body.clientWidth; id.style.left = (screenW - 850)/2 + 515 + "px"; if (id.style.display == "none") { id.style.display = "block"; } else { id.style.display = "none"; } }