Boy was I ever hoping that my last post would be the solution. Guess not, at least not entirely.
To keep this post as short as possible, those that may wish to help, that haven't read my previous post may want to go back and read them. It's not to far down the list. I would have posted sooner but had to get away from this for a little bit, it was really irritating me.
Here is the code that is having to be brought in. Again dynamically included useing "<!-- Raid Progression -->"
<div id="Raid Progression_standalone" class="hideit">
<center class=xsmall>Mouse Over the Zone for Details</center><table cellspacing=0 width='100%'> <tr style="font-size:9pt;" onMouseOver="tt('<table class=ttb><tr><td><tr><td>Gruul</td><td> </td></tr><tr><td><strike><b>High King Maulgar</b></strike></td><td>(Killed)</td></tr></table>')" onMouseOut='ctt()' class=MenuChoice>
<td><img src="images/zones/wow/gruul.gif"></td>
<td>Gruuls lair</td>
<td>(1/2)</td>
</tr> <tr style="font-size:9pt;" onMouseOver="tt('<table class=ttb><tr><td><tr><td><strike><b>Attumen the Huntsman</b></strike></td><td>(Killed)</td></tr><tr><td><strike><b>Moroes</b></strike></td><td>(Killed)</td></tr><tr><td><strike><b>Maiden of Virtue</b></strike></td><td>(Killed)</td></tr><tr><td><strike><b>Opera Event</b></strike></td><td>(Killed)</td></tr><tr><td><strike><b>The Curator</b></strike></td><td>(Killed)</td></tr><tr><td>Terestian Illhoof</td><td> </td></tr><tr><td><strike><b>Shade of Aran</b></strike></td><td>(Killed)</td></tr><tr><td>Netherspite</td><td> </td></tr><tr><td>Prince Malchezaar</td><td> </td></tr><tr><td>Nightbane</td><td> </td></tr></table>')" onMouseOut='ctt()' class=MenuChoice>
<td><img src="images/zones/wow/kara.gif"></td>
<td>Karazhan</td>
<td>(6/10)</td>
</tr> <tr style="font-size:9pt;" onMouseOver="tt('<table class=ttb><tr><td><tr><td><strike><b>Huntsman</b></strike></td><td>(Killed)</td></tr><tr><td><strike><b>Moroes</b></strike></td><td>(Killed)</td></tr><tr><td><strike><b>Maiden</b></strike></td><td>(Killed)</td></tr><tr><td><strike><b>Opera Event</b></strike></td><td>(Killed)</td></tr><tr><td><strike><b>Curator</b></strike></td><td>(Killed)</td></tr><tr><td>Terestian Illhoof</td><td> </td></tr><tr><td><strike><b>Shade of Aran</b></strike></td><td>(Killed)</td></tr><tr><td>Prince</td><td> </td></tr><tr><td>Netherspite</td><td> </td></tr><tr><td>Nightbane</td><td> </td></tr></table>')" onMouseOut='ctt()' class=MenuChoice>
<td><img src="images/zones/wow/kara.gif"></td>
<td>Karazhan Two</td>
<td>(6/10)</td>
</tr></table>
</div>
It is them being parsed by this piece of javascript
var GettheSAContent = document.getElementById("<!-- Menu:Title -->_standalone").innerHTML;
var GettheMLContent = document.getElementById("<!-- Menu:Title -->_menulists").innerHTML;
if (GettheSAContent !=""){
var RemoveQuotes = GettheSAContent.replace(/\"/gm, "'");
var NewContent = RemoveQuotes.replace(/\r/gm, " ");
}
else {
var RemoveQuotes = GettheMLContent.replace(/\"/gm, "'");
var NewContent = RemoveQuotes.replace(/\r/gm, " ");
}
As you can guess I am striping out double quotes (") and replacing them with single quotes(')
"NewContent" is then passed to a function that places the content were I want it.
Problem is that all the "onMouseOver" functions are in double quotes, with the html that is to be displayed, on the mouse over, in single quotes this obviously causes major problems, when I change double quotes (") to single quotes(').
You guys were real helpfull with my previous problems. So I am hoping we can once agian bring all the great minds here together and find a way to do this. I suspect this solution is going to be 100's of lines of code.
One thing I may look into is just to take each of the dynamically included segments of code and put all of the html tags into an array. Still leaves me with the same problem but then I can address the quotes issue line by line verses in big lumps of code.