Dynamically Creating a <div> to Place Javascript Slideshow in
<p>I'm trying to place a div within a long set of javascript that runs alongside hundreds of pages. This div needs to be an empty  that a javascript slideshow will get placed into.
The javascript controling the slideshow are also dynamically loaded onto the page from one singular javascript. Because of this, I don't know if I need to load the div at the top of the script, to avoid a conflict, and then have document.write or something insert the div. I'm just now learning javascript.</p>

<p>Any help is much appreciated:</p>

<p>Here's the code I'm working with and what I tried with theplacement of fadeshow1:</p>

<pre><code>writeButton("","/hardware-accessories.html","p_Hardware",206,20,"Hardware and Accessories","",0);

document.write("&lt;td&gt;&lt;img src=\""+loc+"Separator03"+gtype+"\" alt=\"\" width=\"206\" height=\"96\"&gt;&lt;/td&gt;");

//what Im trying to add.
var newdiv = document.createElement('div'); 
var divIdName = 'fadeshow1';
newdiv.setAttribute('fadeshow1',divIdName);
document.body.appendChild(newdiv); 

writeButton("","/uploads.aspx","upload",206,105,"","",0);
writeButton("","","inf00",206,38,"","",0);
</code></pre>
