<script type="text/javascript" src="http://code.jquery.com/jquery-1.4.2.min.js"></script>
<script type="text/javascript">
$(function(){
$('*[class^=cc1_]').html("new text");
});
</script>
постараюсь подсказать, если опишите подробнее что поменять.
перепродать на другом форуме :)
if (getCookie('angle_precision05') == '0.5') document.write("<INPUT checked type=checkbox onclick=\"delCookie('angle_precision05');\">");
else document.write("<INPUT type=checkbox onclick=\"setCookie('angle_precision05', '0.5', 'permanent')\" >");
data2 можно использовать в любом месте документа и не покидая succes: function(){ ... }
<script>
var data2;
$.ajax({
url: '/ajax/t.json',
dataType: 'json',
success: function(data) { data2=data.DATA;alert(data2);},
error: function(XMLHttpRequest, textStatus, errorThrown){alert(XMLHttpRequest);alert(textStatus);alert(errorThrown);}
<script> var kol=['string 1','string 2','string 3','string 4']; var rand=Math.floor(Math.random()*kol.length); </script>
<script>document.write(kol[rand]);</script>
ralph, источники статистики?
примерно так:
<html><head><title>Table</title><script src="http://code.jquery.com/jquery-1.4.2.min.js" type="text/javascript"></script><script type="text/javascript">$(function(){ var table = $('table'); table.find('tfoot :button').click(function(){ table.find('tbody tr:has(input:not(:checked))').hide(); });});</script></head><body><table cellpadding="5"><thead><tr> <th>Номер</th> <th>Наименование</th> <th>Цена</th> <th>Количество</th> <th> </th></tr></thead><tfoot><tr> <th> </th> <th> </th> <th> </th> <th> </th> <th><input type="button" value=" OK "></th></tr></tfoot><tbody><tr> <td>1</td> <td>Наименование</td> <td>Цена</td> <td>10</td> <td><input type="checkbox"></td></tr><tr> <td>2</td> <td>Наименование</td> <td>Цена</td> <td>20</td> <td><input type="checkbox"></td></tr><tr> <td>3</td> <td>Наименование</td> <td>Цена</td> <td>30</td> <td><input type="checkbox"></td></tr><tr> <td>4</td> <td>Наименование</td> <td>Цена</td> <td>40</td> <td><input type="checkbox"></td></tr></tbody></table></body></html>
немного поправил...
<?php $file_counter="counter.txt"; // Читаем текущее значение счётчика if(!$counter=@file_get_contents($file_counter)) { $counter=0; } // Увеличиваем счётчик на единицу $counter++; // Сохраняем обновленное значение счётчика @file_put_contents($file_counter, $counter); // Выводим значение счётчика на печать echo "Сайт посетили ".$counter." раз" ; ?>