Results 1 to 3 of 3
  1. #1
    Newbie
    Join Date
    January 18th, 2005
    Posts
    27
    Sheesh, i have the worst luck with document.write i mean i thought it was easy anyway here is the code why is this not being shown in the table???


    <script language="javascript">
    <!--
    pickCell =('<table width="128" height="90" bgcolor="red" BORDER=0 CELLSPACING=1 CELLPADDING=1>');
    pickCell +=('<td bgcolor="#E4E4E4" style="cursor:hand" width="33%" align="center" valign="top"><scr');
    pickCell +=('ipt language="javascript" SRC="http://www.aquariusinc.com/ad_125125_2.js"></');
    pickCell +=('script></font></td>');
    pickCell +=('</td></tr></table>');

    document.write(pickCell);
    //-->
    </script>


    Thanks

    Search the web with LookPortal

  2. #2
    Full Member c4's Avatar
    Join Date
    January 18th, 2005
    Posts
    488
    You have problems because you are calling Javascript (http://www.aquariusinc.com/ad_125125_2.js) from within Javascript code. So browser first displays the first Javascript code (the table) and the second one after (http://www.aquariusinc.com/ad_125125_2.js).

    Use plain HTML to create the table, not Javascript:

    <table width="128" height="90" bgcolor="red" BORDER=0 CELLSPACING=1 CELLPADDING=1>
    <tr>
    <td bgcolor="#E4E4E4" style="cursor:hand" width="33%" align="center" valign="top">
    <script language="javascript" SRC="http://www.aquariusinc.com/ad_125125_2.js"></script>
    </td>
    </tr>
    </table>



    YOURsoft affiliate software
    -=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    A good parasite is a dead parasite. Screw it up and you're screwed!
    Save your affiliate program, save your earnings; Fight ParasiteWareâ„¢!
    -=-=-=-=-=-=-=-=-=-=-=-=-=-=-

  3. #3
    Newbie
    Join Date
    January 18th, 2005
    Posts
    27
    Ok i see, but that gave me an idea instead of writing a script i could write an <iframe> Thanks

    Search the web with LookPortal

  4. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Let's Just Write This One Off........
    By Thomas A. Rice in forum Midnight Cafe'
    Replies: 7
    Last Post: April 21st, 2005, 06:24 PM
  2. Cant write to file?
    By kili in forum WebMerge (Fourthworld.com)
    Replies: 2
    Last Post: December 23rd, 2004, 03:20 AM
  3. write for my ezine
    By Heyder in forum Midnight Cafe'
    Replies: 3
    Last Post: February 26th, 2002, 04:22 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
  •