View Full Version : Why is this code not working?

07-26-2009, 06:32 AM
This code is a little complex, and my friend coded it for me. I'm a fairly average coder, so I can't figure out what the problem is. Here's the code:

document.write('<div id="dnwtop_100_showimage" style="z-index: 300; position:absolute;width:380px;left:600;t… border="1” bordercolor="474747" width="380" bgcolor="000000" cellspacing="0" cellpadding="0"><tr><td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0" height="36"><tr></tr><tr><td width="100%" background="votebg.jpg" style="padding:10px; border: solid 000000 2px; border-top:0px; font-family:Verdana; font-size:12px; color:000000;"><IGNORE!><i><BR><center><… src="ad.gif" border=1” bordercolor="474747"><br><br><font color="white">Vote for Privates to support us and get us #1!<br>Please Vote Every 12 Hours! </b></i><br><br><div align="center"><a href="http://google.com" target="_blank" onClick="hidebox()"><img src="agree.png" border="0"></a> <a href="#" onClick="hidebox();return false"><img src="disagree.png" border="0"></a> </div><!-- END CONTENT HERE-----></td></tr></table></td></tr></…

I want to replace the first <a> to </a> with:

<a href="http://www.fkn0wned.com/forum/index.php?" onClick="window.open('http://www.fkn0wned.com/forum/'); window.focus();" onMouseOut="MM_swapImgRestore()" input onclick="checkForm()" onMouseOver="MM_swapImage('agree','','agree_02.png',1)"><img src="agree.png" alt="Enter Fkn0wned.com" name="agree" width="112" height="24" border="0" id="enter" onClick="hidebox();return false/></a>

Also, I'd like to do the same with the second <a> to </a> with a fairly similar code.
The thing is, the table doesn't pop up anymore when I do! Even if i just type enter in between any of the tabs the whole thing disappears. Why is this happening? I've tried so many things, I don't know what else to do. Thanks if you can help. =)