DSiPaint.old/paint/gallery.html
MattTheTekie 9911b1c2e9 Fixes
2023-04-07 19:27:18 -04:00

148 lines
6.2 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<!-- Mirrored from dsipaint.com/paint/gallery.php by HTTrack Website Copier/3.x [XR&CO'2014], Thu, 06 Apr 2023 23:29:10 GMT -->
<!-- Added by HTTrack --><meta http-equiv="content-type" content="text/html;charset=UTF-8" /><!-- /Added by HTTrack -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="viewport" content="width=device-width" />
<meta name="description" content="DSiPaint: Games and Apps for the Nintendo 3DS Internet Browser" />
<meta name="keywords" content="DSiPaint, DSi Opera SDK, Nintendo DSi, DSi, JavaScript, video games" />
<link rel="shortcut icon" href="../favicon.ico" />
<link rel="stylesheet" href="../stylee993.css" type="text/css" />
<link rel="stylesheet" href="../lighte993.css" type="text/css" />
<script type="text/javascript">
function parse(json){
return (typeof JSON == 'object') ? JSON.parse(json) : eval(json);
}
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-702344-9']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script');
ga.type = 'text/javascript';
ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ga, s);
})();
</script>
<title>DSiPaint Art Gallery</title>
<script type="text/javascript">
var images=[], image_array=[], current_image=null, loading=false;
window.onload = function(){
document.body.scrollTop = 176;
authordiv=document.getElementById('author');
mainimage = document.getElementById('mainimg');
images[0] = document.getElementById('img0');
images[1] = document.getElementById('img1');
images[2] = document.getElementById('img2');
images[3] = document.getElementById('img3');
images[4] = document.getElementById('img4');
images[5] = document.getElementById('img5');
load_img();
}
function load_img(){
if(!loading){
loading=true;
LoadObj = new XMLHttpRequest();
LoadObj.open ('GET.html', 'includes/ajax_dsipaint_gallery32a2.html'+encodeURI(document.getElementById('member').value), true);
LoadObj.send (null);
LoadObj.onreadystatechange = function(){
if(LoadObj.readyState==4){
if(LoadObj.responseText){
var temp_image_array=eval(LoadObj.responseText);
for(img=6;--img>=0;){
if(temp_image_array[img] && temp_image_array[img].image_id){
image_array[img]=temp_image_array[img];
images[img].src='/images/art_gallery/'+image_array[img].image_id+'.png';
}
}
loading=false;
}
}
}
}
}
function show_image(img){
if(!loading){
if(image_array[img]){
if(image_array[img].image_id){
current_image=image_array[img].image_id;
mainimage.src=images[img].src;
authordiv.innerHTML='<a href="album.php?member='+image_array[img].member_id+'">'+image_array[img].username+'</a> ';
var stars=5;
if(image_array[img].rating_count){
var rating=Math.round((image_array[img].rating_sum<<1)/image_array[img].rating_count)/2;
while(rating>0){
if(rating>=1){
authordiv.innerHTML+='<img src="/images/star_on.png" alt="star" />';
}else{
authordiv.innerHTML+='<img src="/images/star_half.png" alt="star" />';
}
stars--;
rating--;
}
while(stars>0){
authordiv.innerHTML+='<img src="/images/star_off.png" alt="star" />';
stars--;
}
}
}
}
}
}
</script>
<style type="text/css">
BODY {
font-size: 8px;
text-align: left;
}
.button {
background: #00f;
color: #fff;
border: 2px outset #00f;
font-size: 8px;
height: 12px;
position: absolute;
text-align: center;
width: 30px;
}
</style>
</head>
<body style="background: url(../images/backgrounds/background0.png)">
<img src="images/frame_large.png" style="left:35px; position:absolute; top:3px" alt="" />
<img id="mainimg" style="background:#fff; height:160px; left:40px; position:absolute; top:8px; width:160px" alt="" />
<img src="images/frame.png" style="left:10px; position:absolute; top:179px" alt="" />
<img src="images/frame.png" style="left:90px; position:absolute; top:179px" alt="" />
<img src="images/frame.png" style="left:170px; position:absolute; top:179px" alt="" />
<img src="images/frame.png" style="left:10px; position:absolute; top:245px" alt="" />
<img src="images/frame.png" style="left:90px; position:absolute; top:245px" alt="" />
<img src="images/frame.png" style="left:170px; position:absolute; top:245px" alt="" />
<img id="img0" style="background:#fff; height:40px; left:20px; position:absolute; top:194px; width:40px" onclick="show_image(0)" alt="" />
<img id="img1" style="background:#fff; height:40px; left:100px; position:absolute; top:194px; width:40px" onclick="show_image(1)" alt="" />
<img id="img2" style="background:#fff; height:40px; left:180px; position:absolute; top:194px; width:40px" onclick="show_image(2)" alt="" />
<img id="img3" style="background:#fff; height:40px; left:20px; position:absolute; top:260px; width:40px" onclick="show_image(3)" alt="" />
<img id="img4" style="background:#fff; height:40px; left:100px; position:absolute; top:260px; width:40px" onclick="show_image(4)" alt="" />
<img id="img5" style="background:#fff; height:40px; left:180px; position:absolute; top:260px; width:40px" onclick="show_image(5)" alt="" />
<form style="left:48px; margin:0px; padding:0px; position:absolute; text-align:center; width:140px; top:330px">
<span style="float:left">Search:</span> <input type="text" id="member" style="font-size:8pt; height:10px; margin:2px; width:90px" maxlength="20" />
</form>
<div class="button" style="left:4px; top:332px" onclick="load_img();">More</div>
<div class="button" style="left:202px; top:332px" onclick="location.href='index.html';">Exit</div>
<div style="color:#00f; font-size:10pt; height:10px; left:5px; position:absolute; text-align:center; text-decoration:underline; text-shadow:1px 1px 1px #888; top:311px; width:230px" id="author"></div>
</body>
<!-- Mirrored from dsipaint.com/paint/gallery.php by HTTrack Website Copier/3.x [XR&CO'2014], Thu, 06 Apr 2023 23:29:14 GMT -->
</html>