Помогите поправить html

Тема в разделе "Мегафлуд", создана пользователем sergey_prusov, 13 июл 2009.

Статус темы:
Закрыта.
  1. sergey_prusov

    sergey_prusov

    Регистр.:
    31 окт 2008
    Сообщения:
    205
    Симпатии:
    3
    Помогите пожалуйста поправить данную страницу. Суть проблемы в том что когда я нажимаю на ссылку "Контекстная реклама" появляются коды(видно в коде) но как будет выглядеть блок контекстной и сам код их не видно((( ни в ослике ни в мазиле..... помогите пожалуйста решить данную проблему:thenks:



    HTML:
    <table width="100%" cellpadding="0" cellspacing="0" border="0" style="background:URL(/images/block_bg.gif) repeat-x top left;">
    	<tr>
    		<td width="7" style="background:URL(/images/block_left.gif) repeat-y bottom left;" valign="top"><img src="/images/left_block_up.gif" width="7" height="34" alt="" /></td>
    
    		<td valign="top" style="padding-top: 3px;">
    <center><b>:</b> <a href="javascript: void(0);" onclick='if (main1.style.display == "block") { main1.style.display = "none"; } else { main1.style.display = "block"; }'>PopUp-реклама</a> <b>:</b><b>:</b> <a href="javascript: void(0);" onclick='if (main2.style.display == "block") { main2.style.display = "none"; } else { main2.style.display = "block"; }'>BodyClick-реклама</a> <b>:</b><b>:</b> <a href="javascript: void(0);" onclick='if (main3.style.display == "block") { main3.style.display = "none"; } else { main3.style.display = "block"; }'>Растяжка</a> <b>:</b><b>:</b> <a href="javascript: void(0);" onclick='if (main5.style.display == "block") { main5.style.display = "none"; } else { main5.style.display = "block"; }'>Плавающий блок</a> <b>:</b><b>:</b> <a href="javascript: void(0);" onclick='if (main6.style.display == "block") { main6.style.display = "none"; } else { main6.style.display = "block"; }'>Контекстная-реклама</a> <b>:</b></center><hr size="1" /><DIV id="main1" style="display:none"><table width="100%" style="margin-top: 25px;">
    
    	<tr>
    		<td style="padding-left: 20px; background:URL(/images/line_title.gif) no-repeat bottom left;"><b style="color: #999999; background-color: #ffffff; padding-left: 3px; padding-right: 3px;">Код для PopUp + Баннер</b></td>
    	</tr>
    	<tr>
    		<td>
    		<p>Скопируйте код с формы и вставьте на страницах Вашего сайта между тегами &lt;HEAD&gt;&lt;/HEAD&gt;:</p>
    
    		<p><input type="text" name="code" style="width: 100%" value='<script language="JavaScript" charset="windows-1251" src="http://сайт/js.php?id=<?php print intval($_GET[id]); ?>"></script>' /></p></td>
    	</tr>
    </table>
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    <hr size="1"></DIV><DIV id="main2" style="display:none"><table width="100%" style="margin-top: 25px;">
    	<tr>
    		<td style="padding-left: 20px; background:URL(/images/line_title.gif) no-repeat bottom left;"><b style="color: #999999; background-color: #ffffff; padding-left: 3px; padding-right: 3px;">Код для BodyClick</b></td>
    	</tr>
    	<tr>
    		<td>
    
    		<p>Скопируйте код с формы и вставьте на страницах Вашего сайта между тегами &lt;HEAD&gt;&lt;/HEAD&gt;:</p>
    		<p><input type="text" name="code" style="width: 100%" value='<script language="JavaScript" charset="windows-1251" src="http://сайт/js.php?id=<?php print intval($_GET[id]); ?>"></script>' /></p></td>
    	</tr>
    </table>
    <hr size="1"></DIV><DIV id="main3" style="display:none"><table width="100%" style="margin-top: 25px;">
    	<tr>
    		<td style="padding-left: 20px; background:URL(/images/line_title.gif) no-repeat bottom left;"><b style="color: #999999; background-color: #ffffff; padding-left: 3px; padding-right: 3px;">Код для Растяжки</b></td>
    
    	</tr>
    	<tr>
    		<td>
    		<p>Скопируйте код с формы и вставьте на страницах Вашего сайта между тегами &lt;HEAD&gt;&lt;/HEAD&gt;:</p>
    		<p><input type="text" name="code" style="width: 100%" value='<script language="JavaScript" charset="windows-1251" src="http://сайт/js.php?id=<?php print intval($_GET[id]); ?>"></script>' /></p></td>
    	</tr>
    </table>
    
    <hr size="1"></DIV><DIV id="main5" style="display:none"><table width="100%" style="margin-top: 25px;">
    	<tr>
    		<td style="padding-left: 20px; background:URL(/images/line_title.gif) no-repeat bottom left;"><b style="color: #999999; background-color: #ffffff; padding-left: 3px; padding-right: 3px;">Код для плавающего блока ссылок</b></td>
    	</tr>
    	<tr>
    		<td>
    		<p>Скопируйте код и вставьте на страницах Вашего сайта между тегами &lt;HEAD&gt;&lt;/HEAD&gt; (<b>cp1251</b>):</p>
    
    		<p><input type="text" name="code" style="width: 100%" value='<script language="JavaScript" src="http://сайт/js.php?id=<?php print intval($_GET[id]); ?>"></script>' /></p></td>
    	</tr>
    </table>
    <hr size="1">
    <table width="100%">
    	<tr>
    		<td>
    		<p>Скопируйте код с формы и вставьте на страницах Вашего сайта между тегами &lt;HEAD&gt;&lt;/HEAD&gt; (<b>UTF-8</b>):</p>
    
    		<p><input type="text" name="code" style="width: 100%" value='<script language="JavaScript" src="http://сайт/js.php?id=<?php print intval($_GET[id]); ?>"></script>' /></p></td>
    	</tr>
    </table>
    <hr size="1"></DIV><DIV id="main6" style="display:none"><script type="text/javascript">
    
    
    
    <script type="text/javascript">
    function gebi(id){
    	return document.getElementById(id)
    }
    
    function color(link)
    {
       var x = event.screenX - 150;
       var y = event.screenY + 130;
       var sFeatures = 'dialogLeft:'+x+'px;dialogTop:'+y+'px;dialogHeight:163px;dialogWidth:232px;help:no;status:no;unadorned:yes';
       window.showModelessDialog(link, window, sFeatures);
    }
    
    
    
    
    
    
    function cvetvibr(kuda, otkuda){
    	var tdid=kuda;
    	tdo=document.getElementById(tdid);
    	tdo.innerHTML='<table border=0 cellspacing=1 cellpadding=0 bgcolor=#000000 style="cursor: hand;"><tr><td bgcolor=#000000 onclick=Set("000000","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#000000 onclick=Set("000000","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#000000 onclick=Set("000000","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#000000 onclick=Set("000000","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#003300 onclick=Set("003300","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#006600 onclick=Set("006600","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#009900 onclick=Set("009900","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#00CC00 onclick=Set("00CC00","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#00FF00 onclick=Set("00FF00","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#330000 onclick=Set("330000","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#333300 onclick=Set("333300","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#336600 onclick=Set("336600","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#339900 onclick=Set("339900","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#33CC00 onclick=Set("33CC00","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#33FF00 onclick=Set("33FF00","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#660000 onclick=Set("660000","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#663300 onclick=Set("663300","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#666600 onclick=Set("666600","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#669900 onclick=Set("669900","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#66CC00 onclick=Set("66CC00","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#66FF00 onclick=Set("66FF00","'+otkuda+'","'+tdid+'") height=10 width=10></td></tr><tr><td bgcolor=#000000 onclick=Set("000000","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#333333 onclick=Set("333333","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#000000 onclick=Set("000000","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#000033 onclick=Set("000033","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#003333 onclick=Set("003333","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#006633 onclick=Set("006633","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#009933 onclick=Set("009933","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#00CC33 onclick=Set("00CC33","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#00FF33 onclick=Set("00FF33","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#330033 onclick=Set("330033","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#333333 onclick=Set("333333","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#336633 onclick=Set("336633","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#339933 onclick=Set("339933","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#33CC33 onclick=Set("33CC33","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#33FF33 onclick=Set("33FF33","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#660033 onclick=Set("660033","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#663333 onclick=Set("663333","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#666633 onclick=Set("666633","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#669933 onclick=Set("669933","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#66CC33 onclick=Set("66CC33","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#66FF33 onclick=Set("66FF33","'+otkuda+'","'+tdid+'") height=10 width=10></td></tr><tr><td bgcolor=#000000 onclick=Set("000000","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#666666 onclick=Set("666666","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#000000 onclick=Set("000000","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#000066 onclick=Set("000066","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#003366 onclick=Set("003366","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#006666 onclick=Set("006666","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#009966 onclick=Set("009966","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#00CC66 onclick=Set("00CC66","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#00FF66 onclick=Set("00FF66","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#330066 onclick=Set("330066","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#333366 onclick=Set("333366","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#336666 onclick=Set("336666","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#339966 onclick=Set("339966","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#33CC66 onclick=Set("33CC66","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#33FF66 onclick=Set("33FF66","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#660066 onclick=Set("660066","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#663366 onclick=Set("663366","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#666666 onclick=Set("666666","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#669966 onclick=Set("669966","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#66CC66 onclick=Set("66CC66","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#66FF66 onclick=Set("66FF66","'+otkuda+'","'+tdid+'") height=10 width=10></td></tr><tr><td bgcolor=#000000 onclick=Set("000000","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#999999 onclick=Set("999999","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#000000 onclick=Set("000000","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#000099 onclick=Set("000099","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#003399 onclick=Set("003399","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#006699 onclick=Set("006699","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#009999 onclick=Set("009999","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#00CC99 onclick=Set("00CC99","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#00FF99 onclick=Set("00FF99","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#330099 onclick=Set("330099","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#333399 onclick=Set("333399","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#336699 onclick=Set("336699","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#339999 onclick=Set("339999","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#33CC99 onclick=Set("33CC99","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#33FF99 onclick=Set("33FF99","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#660099 onclick=Set("660099","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#663399 onclick=Set("663399","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#666699 onclick=Set("666699","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#669999 onclick=Set("669999","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#66CC99 onclick=Set("66CC99","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#66FF99 onclick=Set("66FF99","'+otkuda+'","'+tdid+'") height=10 width=10></td></tr><tr><td bgcolor=#000000 onclick=Set("000000","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#CCCCCC onclick=Set("CCCCCC","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#000000 onclick=Set("000000","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#0000CC onclick=Set("0000CC","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#0033CC onclick=Set("0033CC","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#0066CC onclick=Set("0066CC","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#0099CC onclick=Set("0099CC","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#00CCCC onclick=Set("00CCCC","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#00FFCC onclick=Set("00FFCC","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#3300CC onclick=Set("3300CC","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#3333CC onclick=Set("3333CC","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#3366CC onclick=Set("3366CC","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#3399CC onclick=Set("3399CC","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#33CCCC onclick=Set("33CCCC","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#33FFCC onclick=Set("33FFCC","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#6600CC onclick=Set("6600CC","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#6633CC onclick=Set("6633CC","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#6666CC onclick=Set("6666CC","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#6699CC onclick=Set("6699CC","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#66CCCC onclick=Set("66CCCC","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#66FFCC onclick=Set("66FFCC","'+otkuda+'","'+tdid+'") height=10 width=10></td></tr><tr><td bgcolor=#000000 onclick=Set("000000","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#FFFFFF onclick=Set("FFFFFF","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#000000 onclick=Set("000000","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#0000FF onclick=Set("0000FF","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#0033FF onclick=Set("0033FF","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#0066FF onclick=Set("0066FF","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#0099FF onclick=Set("0099FF","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#00CCFF onclick=Set("00CCFF","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#00FFFF onclick=Set("00FFFF","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#3300FF onclick=Set("3300FF","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#3333FF onclick=Set("3333FF","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#3366FF onclick=Set("3366FF","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#3399FF onclick=Set("3399FF","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#33CCFF onclick=Set("33CCFF","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#33FFFF onclick=Set("33FFFF","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#6600FF onclick=Set("6600FF","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#6633FF onclick=Set("6633FF","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#6666FF onclick=Set("6666FF","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#6699FF onclick=Set("6699FF","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#66CCFF onclick=Set("66CCFF","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#66FFFF onclick=Set("66FFFF","'+otkuda+'","'+tdid+'") height=10 width=10></td></tr><tr><td bgcolor=#000000 onclick=Set("000000","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#FF0000 onclick=Set("FF0000","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#000000 onclick=Set("000000","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#990000 onclick=Set("990000","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#993300 onclick=Set("993300","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#996600 onclick=Set("996600","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#999900 onclick=Set("999900","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#99CC00 onclick=Set("99CC00","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#99FF00 onclick=Set("99FF00","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#CC0000 onclick=Set("CC0000","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#CC3300 onclick=Set("CC3300","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#CC6600 onclick=Set("CC6600","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#CC9900 onclick=Set("CC9900","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#CCCC00 onclick=Set("CCCC00","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#CCFF00 onclick=Set("CCFF00","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#FF0000 onclick=Set("FF0000","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#FF3300 onclick=Set("FF3300","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#FF6600 onclick=Set("FF6600","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#FF9900 onclick=Set("FF9900","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#FFCC00 onclick=Set("FFCC00","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#FFFF00 onclick=Set("FFFF00","'+otkuda+'","'+tdid+'") height=10 width=10></td></tr><tr><td bgcolor=#000000 onclick=Set("000000","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#00FF00 onclick=Set("00FF00","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#000000 onclick=Set("000000","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#990033 onclick=Set("990033","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#993333 onclick=Set("993333","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#996633 onclick=Set("996633","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#999933 onclick=Set("999933","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#99CC33 onclick=Set("99CC33","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#99FF33 onclick=Set("99FF33","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#CC0033 onclick=Set("CC0033","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#CC3333 onclick=Set("CC3333","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#CC6633 onclick=Set("CC6633","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#CC9933 onclick=Set("CC9933","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#CCCC33 onclick=Set("CCCC33","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#CCFF33 onclick=Set("CCFF33","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#FF0033 onclick=Set("FF0033","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#FF3333 onclick=Set("FF3333","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#FF6633 onclick=Set("FF6633","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#FF9933 onclick=Set("FF9933","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#FFCC33 onclick=Set("FFCC33","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#FFFF33 onclick=Set("FFFF33","'+otkuda+'","'+tdid+'") height=10 width=10></td></tr><tr><td bgcolor=#000000 onclick=Set("000000","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#0000FF onclick=Set("0000FF","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#000000 onclick=Set("000000","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#990066 onclick=Set("990066","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#993366 onclick=Set("993366","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#996666 onclick=Set("996666","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#999966 onclick=Set("999966","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#99CC66 onclick=Set("99CC66","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#99FF66 onclick=Set("99FF66","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#CC0066 onclick=Set("CC0066","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#CC3366 onclick=Set("CC3366","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#CC6666 onclick=Set("CC6666","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#CC9966 onclick=Set("CC9966","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#CCCC66 onclick=Set("CCCC66","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#CCFF66 onclick=Set("CCFF66","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#FF0066 onclick=Set("FF0066","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#FF3366 onclick=Set("FF3366","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#FF6666 onclick=Set("FF6666","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#FF9966 onclick=Set("FF9966","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#FFCC66 onclick=Set("FFCC66","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#FFFF66 onclick=Set("FFFF66","'+otkuda+'","'+tdid+'") height=10 width=10></td></tr><tr><td bgcolor=#000000 onclick=Set("000000","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#FFFF00 onclick=Set("FFFF00","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#000000 onclick=Set("000000","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#990099 onclick=Set("990099","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#993399 onclick=Set("993399","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#996699 onclick=Set("996699","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#999999 onclick=Set("999999","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#99CC99 onclick=Set("99CC99","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#99FF99 onclick=Set("99FF99","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#CC0099 onclick=Set("CC0099","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#CC3399 onclick=Set("CC3399","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#CC6699 onclick=Set("CC6699","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#CC9999 onclick=Set("CC9999","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#CCCC99 onclick=Set("CCCC99","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#CCFF99 onclick=Set("CCFF99","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#FF0099 onclick=Set("FF0099","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#FF3399 onclick=Set("FF3399","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#FF6699 onclick=Set("FF6699","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#FF9999 onclick=Set("FF9999","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#FFCC99 onclick=Set("FFCC99","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#FFFF99 onclick=Set("FFFF99","'+otkuda+'","'+tdid+'") height=10 width=10></td></tr><tr><td bgcolor=#000000 onclick=Set("000000","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#00FFFF onclick=Set("00FFFF","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#000000 onclick=Set("000000","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#9900CC onclick=Set("9900CC","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#9933CC onclick=Set("9933CC","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#9966CC onclick=Set("9966CC","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#9999CC onclick=Set("9999CC","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#99CCCC onclick=Set("99CCCC","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#99FFCC onclick=Set("99FFCC","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#CC00CC onclick=Set("CC00CC","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#CC33CC onclick=Set("CC33CC","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#CC66CC onclick=Set("CC66CC","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#CC99CC onclick=Set("CC99CC","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#CCCCCC onclick=Set("CCCCCC","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#CCFFCC onclick=Set("CCFFCC","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#FF00CC onclick=Set("FF00CC","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#FF33CC onclick=Set("FF33CC","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#FF66CC onclick=Set("FF66CC","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#FF99CC onclick=Set("FF99CC","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#FFCCCC onclick=Set("FFCCCC","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#FFFFCC onclick=Set("FFFFCC","'+otkuda+'","'+tdid+'") height=10 width=10></td></tr><tr><td bgcolor=#000000 onclick=Set("000000","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#FF00FF onclick=Set("FF00FF","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#000000 onclick=Set("000000","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#9900FF onclick=Set("9900FF","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#9933FF onclick=Set("9933FF","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#9966FF onclick=Set("9966FF","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#9999FF onclick=Set("9999FF","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#99CCFF onclick=Set("99CCFF","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#99FFFF onclick=Set("99FFFF","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#CC00FF onclick=Set("CC00FF","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#CC33FF onclick=Set("CC33FF","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#CC66FF onclick=Set("CC66FF","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#CC99FF onclick=Set("CC99FF","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#CCCCFF onclick=Set("CCCCFF","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#CCFFFF onclick=Set("CCFFFF","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#FF00FF onclick=Set("FF00FF","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#FF33FF onclick=Set("FF33FF","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#FF66FF onclick=Set("FF66FF","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#FF99FF onclick=Set("FF99FF","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#FFCCFF onclick=Set("FFCCFF","'+otkuda+'","'+tdid+'") height=10 width=10></td><td bgcolor=#FFFFFF onclick=Set("FFFFFF","'+otkuda+'","'+tdid+'") height=10 width=10></td></tr></table>';
    	return false;
    }
    
    function Set(chto,otkuda,kuda){
    document.getElementById(otkuda).value=chto;
    document.getElementById(kuda).innerHTML='';
    checkForm();
    
    	return false;
    }
    
    function gebi(id){
    	return document.getElementById(id)
    }
    
    
    
    
    
    
    
    
    
    
    
    var t1 = '';
    var t2 = '';
    var td1 = '<tr><td style="padding: 3 3 3 3px;">';
    var td2 = '</td></tr>';
    var pos = 1;
    
    function td(par) {
    
    	if(par == 1) {
    		t1 = '<tr>';
    		t2 = '</tr>';
    		td1 = '<td style="padding: 3 3 3 3px;">';
    		td2 = '</td>';
    		pos = 2;
    	} else {
    		t1 = '';
    		t2 = '';
    		td1 = '<tr><td style="padding: 3 3 3 3px;">';
    		td2 = '</td></tr>';
    		pos = 1;
    	}
    
    }
    
    
    
    
    
    var codirovka = "js2";
    
    function Co(par) {
    
    	if(par == 1) {
    		codirovka = "utfjs2";
    	} else {
    		codirovka = "js2";
    	}
    
    }
    
    
    
    
    
    
    
    function redrawdiv() {
    	urllinik	= 'http://сайт';
    	thelink		= 'Наши поезда, самые поездатые, поезда в мире! Убедитесь...';
    	namelink	= 'Продам поезд';
    
    	linkcode = '<font style="font-size: '+gebi("Form").ptlink.value+'pt;" color="#'+gebi("Form").linkcolor.value+'"><u><b>'+namelink+'</b></u></font><br />'+
    	'<font style="font-size: '+gebi("Form").pttext.value+'pt;" color="#'+gebi("Form").textcolor.value+'">'+thelink+'</font><br />'+
    	'<font style="font-size: '+gebi("Form").ptdomen.value+'pt;" color="#'+gebi("Form").domencolor.value+'"><u>'+urllinik+'</u></font>';
    
    	res = '';
    
    	for (i=1; i <= gebi("Form").count.value; i++) {
    		res = res + top.td1 + linkcode + top.td2;
    	}
    
    	res = '<table width="'+gebi("Form").width.value+'" cellpadding="0" cellspacing="0" border="0">'+
    	'<tr>'+
    	'<td>'+
    	'<a style="text-decoration: none;" href="http://сайт/" target="_blank"><b>Реклама: <font color="#999999">http://сайт/</font></b></a>'+
    	'<table bgcolor="#'+gebi("Form").foncolor.value+'" style="border: 1px solid #'+gebi("Form").bordercolor.value+';" width="100%" cellpadding="0" cellspacing="0" border="0">'+top.t1+''+res+''+top.t2+'</table>'+
    	'</td>'+
    	'</table>';
    
    	gebi("fnt").innerHTML = res;
    }
    
    function checkForm() {
    
    redrawdiv();
    
    CodeForm['code'].value = "<!-- http://сайт/ -->\n"+
    "<sc"+"ript type=\"text/javascript\">\n"+
    "pclinksformat		 = "+pos+"; // Формат блока \n"+
    "pclinkslinkcolor	 = '"+gebi("Form").linkcolor.value+"'; // Цвет ссылки \n"+
    "pclinkstextcolor	 = '"+gebi("Form").textcolor.value+"'; // Цвет текста \n"+
    "pclinksdomencolor	 = '"+gebi("Form").domencolor.value+"'; // Цвет домена \n"+
    "pclinksbordercolor	 = '"+gebi("Form").bordercolor.value+"'; // Цвет рамки \n"+
    "pclinksfoncolor	 = '"+gebi("Form").foncolor.value+"'; // Цвет фона \n"+
    "pclinkswidth		 = "+gebi("Form").width.value+"; // Ширина \n"+
    "pclinkscount		 = "+gebi("Form").count.value+"; // Кол-во объявлений  \n"+
    "pclinksptlink		 = "+gebi("Form").ptlink.value+"; // Размер ссылки \n"+
    "pclinkspttext		 = "+gebi("Form").pttext.value+"; // Размер текста \n"+
    "pclinksptdomen		 = "+gebi("Form").ptdomen.value+"; // Размер домена \n\n"+
    "document.write('<sc'+'ript type=\"text/javascript\" src=\"http://сайт/"+codirovka+".php?id=<?php print intval($_GET[id]); ?>&c='+pclinkscount+'\"></sc'+'ript>');\n"+
    "</sc"+"ript>";	
    }	
    </script>
    
    
    
    
    
    
    
    
    
    
    
    <table width="100%" style="margin-top: 25px;">
    	<tr>
    		<td style="padding-left: 20px; background:URL(/images/line_title.gif) no-repeat bottom left;"><b style="color: #999999; background-color: #ffffff; padding-left: 3px; padding-right: 3px;">Это будет выглядить так:</b></td>
    	</tr>
    	<tr>
    		<td><div id="fnt"></div></td>
    	</tr>
    </table>
    
    <form method="post" action="" name="Form" id="Form">
    <table width="100%" style="margin-top: 25px;">
    	<tr>
    		<td style="padding-left: 20px; background:URL(/images/line_title.gif) no-repeat bottom left;"><b style="color: #999999; background-color: #ffffff; padding-left: 3px; padding-right: 3px;">Настройки:</b></td>
    	</tr>
    </table>
    <table width="100%" style="margin-top: 10px;" border=0>
    	<tr>
    		<td>
    		Формат блока:<br />
    
    			<input class="check" type="radio" id="format1" name="format" value=2 onclick="td(2); document.getElementById('width').value = 200; document.getElementById('count').value = 5; checkForm();" checked>&nbsp;<b>Вертикальный</b>;<br>
                            <input class="check" type="radio" id="format2" name="format" value=1 onclick="td(1); document.getElementById('width').value = 500; document.getElementById('count').value = 3; checkForm();">&nbsp;<b>Горизонтальный</b>
    		</td>
    		<td>
    		Кодировка сайта:<br />
    			<input class="check" type="radio" id="codir" name="codir" value=2 onclick="Co(2); checkForm();" checked>&nbsp;<b>cp1251</b>;<br>
                            <input class="check" type="radio" id="codir" name="codir" value=1 onclick="Co(1); checkForm();">&nbsp;<b>UTF-8</b>
    
    		</td>
    	</tr>
    
    	<tr>
    		<td>
    		<input type="text" id="linkcolor" size="7" onKeyUp="return checkForm();" value="3366FF" /><img style="cursor: hand;" onclick="color('linkcolor.php');" src="/images/color_ico.gif" width="17" height="17" border="0" alt="Выбрать цвет" /> - Цвет ссылки объявлений
    		</td>
    		<td>
    		<input type="text" id="width" size="7" value="200" onKeyUp="return checkForm();" /> - Ширина блока
    		</td>
    	</tr>
    	<tr>
    		<td>
    		<input type="text" id="textcolor" size="7" value="000000" onKeyUp="return checkForm();" /><img style="cursor: hand;" onclick="color('textcolor.php');" src="/images/color_ico.gif" width="17" height="17" border="0" alt="Выбрать цвет" /> - Цвет текста объявления
    		</td>
    		<td>
    		<input type="text" id="count" size="7" onKeyUp="return checkForm();" value="5" /> - Кол-во объявлений
    		</td>
    	</tr>
    	<tr>
    		<td>
    		<input type="text" id="domencolor" size="7" onKeyUp="return checkForm();" value="009900" /><img style="cursor: hand;" onclick="color('domencolor.php');" src="/images/color_ico.gif" width="17" height="17" border="0" alt="Выбрать цвет" /> - Цвет домена объявления
    		</td>
    		<td>
    		<input type="text" id="ptlink" size="7" onKeyUp="return checkForm();" value="10" /> pt размер шрифта ссылки объявлений
    		</td>
    	</tr>
    	<tr>
    		<td>
    		<input type="text" id="foncolor" size="7" onKeyUp="return checkForm();" value="FFFFFF" /><img style="cursor: hand;" onclick="color('foncolor.php');" src="/images/color_ico.gif" width="17" height="17" border="0" alt="Выбрать цвет" /> - Цвет фона блока объявлений
    		</td>
    		<td>
    		<input type="text" id="pttext" size="7" onKeyUp="return checkForm();" value="8" /> pt размер текста объявления
    		</td>
    	</tr>
    	<tr>
    		<td>
    		<input type="text" id="bordercolor" size="7" onKeyUp="return checkForm();" value="CCCCCC" /><img style="cursor: hand;" onclick="color('bordercolor.php');" src="/images/color_ico.gif" width="17" height="17" border="0" alt="Выбрать цвет" /> - Цвет рамки блока объявлений
    		</td>
    		<td>
    		<input type="text" id="ptdomen" size="7" onKeyUp="return checkForm();" value="9" /> pt размер домена объявления
    		</td>
    	</tr>
    </table>
    </form>
    
    <table width="100%" style="margin-top: 25px;">
    	<tr>
    		<td style="padding-left: 20px; background:URL(/images/line_title.gif) no-repeat bottom left;"><b style="color: #999999; background-color: #ffffff; padding-left: 3px; padding-right: 3px;">Скопируйте код с формы и вставьте на Вашем сайте:</b></td>
    	</tr>
    	<tr>
    		<td><form method="post" action="" name="CodeForm" id="CodeForm">
    			<textarea id="code" name="code" style="width: 100%; height: 300px;"></textarea>
    		</form></td>
    	</tr>
    </table>
    <script type="text/javascript">
    	checkForm();
    </script>
    
    
    
    
    </DIV>		</td>
    		<td valign="top" width="12" style="background:URL(/images/block_right.gif) repeat-y bottom left;"><img src="/images/right_block_up.gif" width="12" height="123" alt="" /></td>
    	</tr>
    	<tr height="10">
    
    		<td><img src="/images/left_block_down.gif" width="7" height="8" alt="" /></td>
    		<td style="background:URL(/images/block_down.gif) repeat-x bottom left;"></td>
    		<td><img src="/images/right_block_down.gif" width="12" height="10" alt="" /></td>
    	</tr>
    </table>
    	</td>
    </td>
    </tr>
    



    и еще проблема не нажимается ссылка выбора цвета в мазиле((( помогите и с этим.

    Добавлено через 50 секунд


    ---------- Post added at 14:53 ---------- Previous post was at 12:57 ----------

    Гуру где Вы? Помогите...:thenks::thenks::thenks: уж очень надо:ah:
     
Статус темы:
Закрыта.