Точно, не вопрос, ПОДСКАЗАЛ)))
"изучаем про атрибуты
alt
title
litebox -> http://designresourcebox.com/litebox-jquery-plugin/"
Огромная просьба, не засоряй мне тему. Или пиши по делу. Я к тебе (лично) не напрашивался за советом:) Спасибо за понимание.
Знаю php... удавлюсь, но не подскажу))) Ток галиматье буду писать. На это время есть.
Вставил, выводит alt с таким содержанием $title,
мне же нужно выводить названия фотки не всплывающей подсказкой, а
нормальным title и само название фотки, а не то, что я впишу в $title
<?
foreach (scandir('images/') as $v)
{
if ($v == '.' || $v == '..') continue;
echo '<img src="images/'.$v.'" alt="$title" title="$title" /><br />';
}
?>
Т.е 'alt="$title" title="$title"' - вот это нуна вставить, куда?
Я в php неуч!
preg_match("/<table class=\"yr-table yr-table-overview2 yr-popup-area\" summary=\"\">(.*)<\/table>/Uis", $text, $out); echo $out[0];
<script type="text/javascript"> $(document).ready(function(){ $('table.yr-table-longterm').find("tr").each(function(){ $(this).find("td:eq(8), th:eq(8)").remove(); $(this).find("td:eq(7), th:eq(7)").remove(); }); }); </script>
Спасибо огромное! Реально помогли;)
Ясно, короче геморроич получается.---------- Добавлено 07.05.2012 в 19:05 ----------
Короче,
<table summary="" class="yr-table yr-table-overview2 yr-popup-area">
<caption>
<strong>Today, </strong>Monday 07/05/2012</caption>
<colgroup width="60"></colgroup>
<colgroup width="50"></colgroup>
<colgroup width="80"></colgroup>
<colgroup></colgroup>
<thead>
<tr>
<th scope="col">Time</th>
<th scope="col">Forecast</th>
<th scope="col">
<abbr title="Temperature">Temp.</abbr>
</th>
<th scope="col">Precipitation</th>
<th scope="col">Wind</th>
</tr>
</thead>
<tbody>
<td> 22:00–01:00</td>
<td title="Partly cloudy. For the period: 22:00–01:00">
<img src="http://symbol.yr.no/grafikk/sym/b38/03d.png" alt="Partly cloudy. For the period: 22:00–01:00">
</td>
<td title="Temperature: 16°. Feels like 16°. For the period: 22:00" class="temperature plus">16°</td>
<td title="Precipitation: 0 mm. For the period: 22:00–01:00. ">0 mm</td>
<td title="Light breeze, 2 m/s from south-southwest. For the period: 22:00" class="txt-left">
<img alt="Light breeze, 2 m/s from south-southwest" class="wind" src="http://fil.nrk.no/yr/grafikk/vindpiler/32/vindpil.0025.210.png">Light breeze, 2 m/s from south-southwest</td>
</tbody>
</table>
и еще:
есть таблица на http://www.yr.no/place/Russia/Moscow/Moscow/long.html - которая первая yr-table yr-table-longterm yr-popup-area, нуна сделать вывод этой таблицы не на 9 колонок, а на 7. Много возни будет? Мне кажется, что проще будет сделать для блока overflow: hidden и все тут. Как думаете?
Всю таблицу нужно тянуть.
Добавил $out[0] и нифига(
$text = file_get_contents("http://www.yr.no/place/Russia/Moscow/Moscow/");
$data = array();
preg_match("/<table class=\"yr-table yr-table-overview2 yr-popup-area\">(.*)<\/table>/Uis", $text, $out);
print "$out[1]";
Вот так я хочу потянуть таблицу, но ничего не выводится(
Спасибо! Помогло.---------- Добавлено 07.05.2012 в 15:15 ----------
Может еще подскажите, как через этот скрипт выводить таблицу?