<script language='JavaScript'>function swap_content(span) {displayType=(****.getElementById(span).style.display=='none') ? 'block':'none';****.getElementById(span).style.display=displayType;}</script>
Something
<span id="0007" style="display: none">
something inside :/
</span>
this one displays when it's hidden(none) and vica versa.
I need 2 functions.
1st opens
2nd closes
(seperate)
why doesn't it work in firefox?
Display / Hide
moethod
when you use below will not display
****.getElementById(span).style.display=='none'
whan you use it you can see your span tag
****.getElementById(span).style.display==''
an use input **** properties or span, send that your function
ok
****.getElementById(span).style.display=='none'
whan you use it you can see your span tag
****.getElementById(span).style.display==''
an use input **** properties or span, send that your function
ok
-
- Posts: 504
- Joined: Sat May 07, 2005 8:03 am
- Contact:
what was his function?Lisk wrote:<script language='JavaScript'>function swap_content(span) {displayType=(****.getElementById(span).style.display=='none') ? 'block':'none';****.getElementById(span).style.display=displayType;}</script>Something<span id="0007" style="display: none">something inside :/</span>this one displays when it's hidden(none) and vica versa.I need 2 functions. 1st opens2nd closes (seperate)why doesn't it work in firefox?