Expanding collapsed frame after frame refreshes

wxdqz

New Member
I am working on a page with frames where the left navigational frame can be collapsed/expanded. The only problem is that if the navigational frame is collapsed and refreshes while collapsed, it fails to expand after the navigation reloads. I have an img file visible in the collapsed frame after refresh, can a double click function be assigned to this img to return the frame back to the full expansion size of 230?

Main frame js:

<script language="JavaScript1.2">
defaultconf=''
function expandf(){
if (document.all){
if (document.body.cols!="30,*")
document.body.cols="30,*"
else
document.body.cols=defaultconf
}
}
</script>

Navigational frame js:

<SCRIPT language="JavaScript1.2">
if (document.all)
window.parent.defaultconf=window.parent.document.body.cols
function expando(){
window.parent.expandf()
}
document.ondblclick=expando
</SCRIPT>

Thanks!

Star
 
Back
Top