| Новости | FAQ | Авторы | Документация | В действии | Библиотека |
| Инструменты | Полезные ссылки | Хостинги | Скачать | Примеры | Форум |
Baurjan 09.10.2002 10:30
Спасибо за советы!@topleft[]
$cururi[$request:uri]
$topleft[^table::load[/template/topleft.cfg]]
^topleft.menu{
^if($cururi eq "$topleft.uri" || in "$topleft.uri"){
$topleft_image[^image::measure[$topleft.file]]
<td bgcolor=white>^topleft_image.html[$.border[0]$.alt[$topleft.alt]]</td>
}
}или вот так: @topleft[]
$topleft[^table::load[/template/topleft.cfg]]
^topleft.menu{
^if(^topleft.locate[uri;$cururi]){
$topleft_image[^image::measure[$topleft.file]]
<td bgcolor=white>^topleft_image.html[$.border[0]$.alt[$topleft.alt]]</td>
}{
^if(in "$topleft.uri"){
<td bgcolor=white>^topleft_image.html[$.border[0]$.alt[$topleft.alt]]</td>
}
}
}Напоминаю таблицу topleft.cfg: id file uri alt 1 /images/home.gif / Home 2 /images/about.gif /about/ About me 3 /images/portfolio.gif /portfolio/ PortfolioТак вот, когда я набираю в броузере domain.ru/about/, то мне выводится сначала , а потом . В обоих случаях я получаю один и тот же результат. Как избавиться от , т.е. чтобы он искал в таблице ту картинку, которая мне нужна по полю uri и вставлял именно ее.