I'm looking to achieve the following:
<div id="display">
<div id="slideshow1">
<table cellspacing=0><tr><td style="height:200px;padding:0;vertical-align:middle">
<img ... />
</td></tr></table>
</div>
</div>
Currently, my implementation involves:
var thelistt = localStorage.getItem('thelist')
var trt = document.createElement("div");
trt.setAttribute("Id","slideshow1");
trt.className="pics";
$('#display').append(trt);
var tble = document.createElement("table");
tble.setAttribute("cellspacing","0");
tble.innerHTML = "<tr><td style='height:200px;padding:0;vertical-align:middle'>";
$('#slideshow1').append(tble);
trt.innerHTML += thelistt;
This results in creating a div, then a table, followed by images before closing the div.
Does anyone know of a more efficient way to accomplish this without the current cumbersome steps? Here's a link to my current code for reference:
(Make sure to click on edit and input two or more image URLs directly)