<script language='JavaScript'>
function expand_content(span)
{
displayType=(****.getElementById(span).style.display=='none') ? 'block':'none';
****.getElementById(span).style.display=displayType;
}
</script>
0001 -expand-
<span id="0001" style="display: none">expanded, wow!
</span>
This is what I use, but is there anything... smaller/faster w/e?
Expand script
ya it works, if you ever want to test a script just use photobuckets html test
http://photobucket.com/practice.php
http://photobucket.com/practice.php
-
- Posts: 504
- Joined: Sat May 07, 2005 8:03 am
- Contact:
Re: Expand script
well i don't know any other way that is fasterLisk wrote:<script language='JavaScript'>
function expand_content(span)
{
displayType=(****.getElementById(span).style.display=='none') ? 'block':'none']0001 -expand- [/url]
<span id="0001" style="display: none">expanded, wow!
</span>
This is what I use, but is there anything... smaller/faster w/e?
but probably you can shorten your script