My problem is this: I have a page where I must select an image to be displayed on the screen. These images are in a specific directory that will stay on the server. I am currently calling the images randomly and displaying on the screen, however, I want to call these images in a way that a window opens displaying the images from that directory so that I can choose the image and load the screen. The code for the js page is these:
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
<h1 class="page-header">
<table width="400px" border="0">
<tr>
<td>
<input type="image" name="selectImage" src="../layout/imagens/Abrir.png" onClick="image()">
</td>
</tr>
</table>
</h1>
<div id="image"></div>
O js:
function image() {
global_points = new Array();
global_effects = new Array();
random = Math.floor(Math.random() * (17 - 1) + 1);
img = new Image();
img.src = "../radiografias/" + random + ".jpg";
document.getElementById('image').innerHTML = "<img style=\"
cursor:crosshair\" id='logo' href=\"#\" onmousedown= \"coordenadas(event)\"
src=\"" +
img.src + "\" width= 1050 />";
reset();
}
If someone can help me, thank you very much.