rendered paste body<head>
<script>
function hidediv() {
if (document.getElementById) { // DOM3 = IE5, NS6
document.getElementById('blackstuff').style.display = 'none';
document.getElementById('pic').style.display = 'none';
} else {
if (document.layers) { // Netscape 4
document.blackstuff.display = 'none';
document.pic.display = 'none';
} else { // IE 4
document.all.blackstuff.style.display = 'none';
document.all.pic.style.display = 'none';
}
}
}
function showdiv() {
document.blackstuff.visibility = 'hidden';
document.pic.visibility = 'hidden';
if (document.getElementById) { // DOM3 = IE5, NS6
document.getElementById('blackstuff').style.display = '';
document.getElementById('pic').style.display = '';
} else {
if (document.layers) { // Netscape 4
document.blackstuff.display = '';
document.pic.display = '';
} else { // IE 4
document.all.blackstuff.style.display = '';
document.all.pic.style.display = '';
}
}
}
</script>
<div id="blackstuff" style="display: none; position: fixed; height:100%; width:100%; background:#000000; left:0px; top:0px; filter:alpha(opacity=65);-moz-opacity:.65;opacity:.65;" onMouseUp="hidediv()">
</div>
<div id="pic" style="display: none; left:50%; margin-left: -400px; top:50%; margin-top: -300px; height:600px; width:800px; background:#666666; padding:12px; position: fixed; filter:alpha(opacity=100);-moz-opacity:100;opacity:100;">
<div class="clear"> </div>
<div>
<p style='color: #CCCCCC;'>blah</p><img style='max-height:600px; max-width:800px;' src='images/screenshots/WoWScrnShot_071507_114933.jpg' align='middle' border='0'><br><p style='color: #CCCCCC;'>Uploaded by: GOD</p>
</div>
</div>
</head>
<h3>Screenshots</h3><br>
<table width="530" border="0">
<?php
echo("<tr>");
$column=0;
$db = new DBO();
$db->Init();
$db->Connect();
$db->Select("aerial-news");
$result = $db->Query("SELECT * FROM `screenshots-page`");
while ($row = $db->GetRow())
{
if($column>=3)
{
echo("</tr><tr>");
$column=0;
} else {
$column++;
}
echo("<td><center><a href='' onMouseUp='showdiv()'><img src='".$row['url']."' align='middle' border='0' width='100' height='100'></a></center></td>");
}
$db->Disconnect();
?>
</table>
<?
if(!IsLoggedIn())
{
echo("You must be logged in to upload your own screenshots!");
} else {
echo("Add screenshot");
}
?>