Hi i wonder if there is a way to let the visitor to choose wether he wants to expand all at once?
I have this code and in my real code i have many expand and collapse links, how do i do to let the visitor see everything?
(I hope i explained myself properly, my english is not the best ? )
[CODE]<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01//EN”
“http://www.w3.org/TR/html4/strict.dtd”>
<html lang=”en”>
<head>
<title>More Or Less</title>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″>
<script type=”text/javascript”>
//<![CDATA[
<!–
function MoreOrLess(objID) {
var obj=document.getElementById(objID);
obj.className=(obj.className==’more’)? “less” : “more”;
}
//–>
//]]>
</script>
<style type=”text/css”>
<!–
.moreorless {color:#9cf; text-decoration:underline; cursor:help;}
/* can be display:inline */
.more {display:block; border:1px solid blue; background:#9cf;}
.less {display:none;}
–>
</style>
</head>
<body>
<p>The standard chunk of <span onclick=”MoreOrLess(‘span1’);” class=”moreorless”>Lorem Ipsum</span><span id=”span1″ class=”less”>Lorem Ipsum is simply dummy text of the printing and typesetting industry. <a href=”http://www.lipsum.com/”>website</a></span> used since the 1500s is reproduced below for those interested.</p>
</body>
</html>