yes, it looks like actinic has mangled the javascript.
the rest of it is perfect!
try moving the function out of the page by creating a function in your actinic extras again. thus:
than instead of having your code at the footer of every page, replace it with this:
the rest of it is perfect!
try moving the function out of the page by creating a function in your actinic extras again. thus:
HTML Code:
function makeitso() { //make an array of all the divs on this page. MoveUs = document.getElementsByTagName("div"); //loop all the divs. for( var i = 0; i < MoveUs.length; i++ ) { //only if it has the class 'movethis' if (MoveUs[i].className=="movethis") { ThisItem = MoveUs[i] //get the html from inside this div temp = ThisItem.innerHTML; //where is it going? document.write (ThisItem.title); //empty the old div ThisItem.innerHTML = ""; //append it to the end of the target div, found in the rel attribute document.getElementById(ThisItem.title).innerHTML = document.getElementById(ThisItem.title).innerHTML+temp; } } }
HTML Code:
<script>makeitso();</script>
Comment