I have been given the following script to collapse the left navigation frame. Does anyone know how to modify it so I can click on a button (expand & collapse, rather than double click on the frame?
I've seen it done but I'm not sure were.
<script language="JavaScript1.2">
/*
Collapsible Left Frame Script-
© Dynamic Drive (
defaultconf=''
function expandf(){
if (document.all){
if (document.body.cols!="10,*"
document.body.cols="10,*"
else
document.body.cols=defaultconf
}
}
</script>
<script language="JavaScript1.2">
/*
Collapsible Left Frame Script-
© Dynamic Drive (*/
if (document.all)
window.parent.defaultconf=window.parent.document.body.cols
function expando(){
window.parent.expandf()
}
document.ondblclick=expando
</script>
Thanks
Neil Munn
neilmunn@ukonline.co.uk
I've seen it done but I'm not sure were.
<script language="JavaScript1.2">
/*
Collapsible Left Frame Script-
© Dynamic Drive (
defaultconf=''
function expandf(){
if (document.all){
if (document.body.cols!="10,*"
document.body.cols="10,*"
else
document.body.cols=defaultconf
}
}
</script>
<script language="JavaScript1.2">
/*
Collapsible Left Frame Script-
© Dynamic Drive (*/
if (document.all)
window.parent.defaultconf=window.parent.document.body.cols
function expando(){
window.parent.expandf()
}
document.ondblclick=expando
</script>
Thanks
Neil Munn
neilmunn@ukonline.co.uk