if i do something like this:
it wont work, itll give me an error, but if i place all that code on a single line (backspacing it all), it works fineCode:<script type="text/javascript"> var theInteger = 0; function addToDiv(){ var theDiv = document.getElementById('newContent'); theDiv.innerHTML += '<div id="scont"> <div class="inner" id="inner"> <div class="innertopleft"> <div class="innertopright"> </div> <div class="flexcroll" id="flexcroll" onmouseover="javascript:insertRemoveP(false)"> <div id="dynamic"> '; theInteger++; } </script>
btw, for the html code within, i replace all quotations with \"Code:<script type="text/javascript"> var theInteger = 0; function addToDiv(){ var theDiv = document.getElementById('newContent'); theDiv.innerHTML += '<div id="scont"><div class="inner" id="inner"><div class="innertopleft"><div class="innertopright"></div><div class="flexcroll" id="flexcroll" onmouseover="javascript:insertRemoveP(false)"><div id="dynamic">'; theInteger++; } </script>




Reply With Quote