Using .htaccess 












Using .htaccess/.htpasswd Password Protection 





Coding Tips 








Uploads and Downloads 



Mail 
see it on this page





Working with Images 


Frequently Requested Website Functionality 
see it on this page

see it on this page
see it on this page
see it on this page











Using PHP 




Website Managment 








Other Tips 









Make every image pop up
This JavaScript will allow every image on your site to "pop up" to full view when clicked. This is starter code that you will need to adapt to yor site. However, this code will work as is. You just need an image named test.jpg to see it work.
<head>
<script type="text/javascript">
function setupImages() {
if (!document.getElementsByTagName) return;
var images = document.getElementsByTagName("img");
for (var i in images) images[i].onclick = function() { if (this.id != "popupImage") popImage(this.id); };
}
function popImage(item) {
document.getElementById(item).src = document.getElementById(item).src;
document.getElementById(item).style.display = 'block';
}
function closeImage() {
document.getElementById('photoImg').style.display = 'none';
}
</script>
<style type="text/css">
.popup { cursor: pointer; width: 120px; height: 80px; }
</style>
</head>
<body onload="setupImages()">
<img src="test.jpg" class="popup" alt="" />
<img id="popupImage" src="" alt="" style="position: absolute; top: 10px; right: 50%; margin-right: -250px; width: 500px; display: none; cursor: pointer;" onclick="closeImage();" />
</body>




