Re: custom (fixed) width

  •  04-29-2005, 10:16 AM

    Re: custom (fixed) width

    Hi, you might want to try this:
     
    1. find the /cutesoft_client/cutechat/skins/layout.js file and open it
    2. find the //MIDDLE comment
    Looks like this:

    //MIDDLE

    var tdmdl_l=trmdl.insertCell(-1);

    var tdmdl_r=trmdl.insertCell(-1);

    var ft_ml=BuildFrameTable("#ffffff");

    tdmdl_l.appendChild(ft_ml);

    ft_ml.containerElement.appendChild(chat_layout_message);

    var ft_mr=BuildFrameTable("#ffffff");

    tdmdl_r.appendChild(ft_mr);

    ft_mr.style.width='';tdmdl_l.style.width="100%";

    ft_mr.containerElement.appendChild(chat_layout_online);



    REPLACE IT WITH Below script:

    //MIDDLE

    var tdmdl_l=trmdl.insertCell(-1);

    var tdmdl_r=trmdl.insertCell(-1);

    var ft_ml=BuildFrameTable("#ffffff");

    tdmdl_l.appendChild(ft_ml);

    ft_ml.containerElement.appendChild(chat_layout_message);

    var ft_mr=BuildFrameTable("#ffffff");

    tdmdl_r.style.width="180px";

    tdmdl_r.appendChild(ft_mr);

    ft_mr.style.width='';

    if(document.all)

    {

    tdmdl_l.style.width=document.body.clientWidth-190+"px";

    }

    else

    {

    tdmdl_l.style.width=window.innerWidth-190+"px";

    }

    ft_mr.containerElement.appendChild(chat_layout_online);
     
    If this didn't work, let me know and I will take another look into what I did to fix the sizeproblem. I have made a lot of changes, but I think basicly this is what needs to be done.
     
    Brgds
View Complete Thread