A webfejlesztés netovábbja. :)
-
#207 Sziasztok!!!
Van nekem egy scriptem és Mozzilla Firefox-ba nem működik, IE alatt pedig szépen fut.
Script:
BODY RÉSZE:
<a href="javascript:kinyit(1)"><font size="1" face="Verdana">Részletek</font></a><font size="1" face="Verdana"><br></font></p>
<table cellpadding="5" cellspacing="0" width="160" border="0">
<tr id="e1" style="display:none">
<td width="320" bgcolor="#CCCCCC" style="border-width:1px; border-color:rgb(153,153,153); border-style:solid;">
<p align="center"> <font size="2" face="Tahoma">Ide írhatsz
valamit<br> Ide írhatsz valamit<br> Ide írhatsz valamit<br> Ide
írhatsz valamit<br> Ide írhatsz valamit<br> Ide írhatsz
valamit<br>Ide írhatsz valamit</font></p>
</td>
</tr>
</table>
HEAD RÉSZE:
<script language="JavaScript" src="reszletek2.js"></script>
reszletek2.js:
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'}
}
}
}
Nincs valami megoldás hogy firefoxba működjön??? Fontos lenne mert ez a script nagyon illene az oldalhoz!!!
Köszi előre is a helpet!