මචන් මම image popup ෙවන්න ෙපාඩි code ඒකක් ලිවිවා thumb උඩ click කරැවහම mysql database ඒෙක තිෙය්න images popup ෙවන්න but ෙමෙක් ඒකක් විතරයි popup ෙවන්ෙන්
ෙම නිෙය්න්ෙන් code ඒක දන්න ෙකෙනක් ඉනන වනමි ෙපාඩිඩක් බලපන්
<html>
<head>
<script type="text/javascript" src="js/jquery-1.3.2.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#show").hide();
$("#img").click(function(){
$("#show").show();
});
$("#cls").click(function(){
$("#show").hide();
});
});
</script>
</head>
<body>
<?php
include('connect.php');
$query=mysql_query("select * from `img`");
while($row=mysql_fetch_array($query)){
$img_id=$row['image_id'];
$img_ext=$row['ext'];
$make_img=$img_id.'.'.$img_ext;
?>
<?php echo '<img id="img" src="uplaod/thumbs/',$make_img,'">';?>
<div id="show">
<div id="cls">[x]</div>
<?php echo '<img src="uplaod/orginal-size/',$make_img,'">';?>
</div>
<?php
}
?>
</body>
</html>