:\ думал, 4то зная ето - полу4ится. нет

если будешь настолько добрим, то посмотришь?

вот ява скрипт:
head
Код:
<script language="JavaScript">
function kinyit(sec)
{
thisSec = eval('e' + sec);
if (thisSec != null){
if (thisSec.length){
if (thisSec[0].style.display != 'none'){
for (var i=0;i<thisSec.length;i++) {thisSec[i].style.display = 'none'}
}
else{
for (var i=0;i<thisSec.length;i++) {thisSec[i].style.display = 'inline'}
}
}
else{
if (thisSec.style.display != 'none') {thisSec.style.display = 'none'}
else{thisSec.style.display = 'inline'}
}
}
}
</script>
body
Код:
<a href="javascript:ywzc();kinyit(1)">Asdfg</a><br>
<table border="0">
<tr id="e1" style="display:none">
<td>
<p align="center"> asd<br>asd<br>asd<br>asdswgsrh</p>
</td>
</tr>
</table>
так вот. у меня 4ерез етот script выполнена 4асть новостей... к сайту я сделал РСС и у меня била такая идея, 4то линк в рсс бил вроде такого:
http://asd.ws/nеws.php?id=1
и тогда он откривает "е1". и т.д. я попытался следуйшьим образом:
Код:
<script language="JavaScript">
var id="<?php echo $_GET['id'];?>";
function kinyit(sec)
{
thisSec = eval('e' + sec);
if (thisSec != null){
if (thisSec.length){
if (thisSec[0].style.display != 'none'){
for (var i=0;i<thisSec.length;i++) {thisSec[i].style.display = 'none'}
}
else{
for (var i=0;i<thisSec.length;i++) {thisSec[i].style.display = 'inline'}
}
}
else{
if (thisSec.style.display != 'none') {thisSec.style.display = 'none'}
else{thisSec.style.display = 'inline'}
}
}
}
return kinyit(id);
</script>
но как-то не о4ень

по яве - я никак :\ просто предполозсил. если будут затруднения, то тогда не надо, т.к. я нашeл, не the best, но выход из полоzsния
был бы полностью рад, если обяснил бы

p.s.: gallery script:
www.hungarianstreets.ws/gallery.php?gal=menu 
EXELLENT!