Помогите плз с колонками на javascript

Discussion in 'PHP' started by sNt, 1 May 2009.

  1. sNt

    sNt Elder - Старейшина

    Joined:
    30 Jul 2008
    Messages:
    117
    Likes Received:
    11
    Reputations:
    1
    Надо, чтобы были две колонки, совершенно разные, т.е. Mail.Ru и Yandex.ru, а у меня выходи черт знает что:

    PHP:
    <?php    
    $mail
    =file_get_contents("stats/mail.txt");
    $yandex=file_get_contents("stats/yandex.txt");


    //Mail.Ru
        
    echo "\t<table border=0 class='tablelist' align='left'>\n";
        echo 
    "<tr class='sub'><td width='255' align='left' class='st1'>";
        echo 
    "<div onclick=\"if (document.getElementById('mail_list').style.display=='block') {document.getElementById('mail_list').style.display='none'; document.getElementById('img_MV').src=m1.src;} else {document.getElementById('mail_list').style.display='block'; document.getElementById('img_MV').src=m11.src;}\" style='cursor: hand;'>";
        echo 
    "<b>Mail.Ru</b></div></td><td class='st1' align='center' width='55'></td></tr>";    
        
        echo 
    "<tr><td colspan='2'><div style='display:none;' id='mail_list'>";

        echo 
    "\t<table border=0 class='tablelist' align='center'>\n";
        echo 
    "\t\t<tr>\n\t\t\t<td width='95' align='center'></td>\n";
        echo 
    "\t\t\t<td width='55' align='center'><small><b>$mail</b></small></td>\n\t\t</tr>\r\n";
        
    //Yandex.ru    
            
    echo "\t<table border=0 class='tablelist' align='left'>\n";
        echo 
    "<tr class='sub'><td width='255' align='left' class='st1s'>";
        echo 
    "<div onclick=\"if (document.getElementById('mail_list').style.display=='block') {document.getElementById('ya_list').style.display='none'; document.getElementById('img_MV').src=m1.src;} else {document.getElementById('mail_list').style.display='block'; document.getElementById('img_MV').src=m11.src;}\" style='cursor: hand;'>";
        echo 
    "<b>Yandex.Ru</b></div></td><td class='st1' align='center' width='55'></td></tr>";    
        
        echo 
    "<tr><td colspan='2'><div style='display:none;' id='mail_list'>";

        echo 
    "\t<table border=0 class='tablelist' align='center'>\n";
        echo 
    "\t\t<tr>\n\t\t\t<td width='95' align='center'></td>\n";
        echo 
    "\t\t\t<td width='55' align='center'><small><b>$yandex</b></small></td>\n\t\t</tr>\r\n";
        
        
    ?>
    Помогите, пожалуйста :( В яве ваще ноль