Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    New to the CF scene
    Join Date
    Jul 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Why is this code not working?

    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. =)
    Last edited by Soybonev; 07-26-2009 at 09:14 PM.


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •