Return to Snippet

Revision: 1674
at November 7, 2006 16:52 by iTony


Initial Code
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";
	}
}

Initial URL


Initial Description
This I will use for popping up the login and profile info

Initial Title
popup an element from one click

Initial Tags
javascript

Initial Language
JavaScript