MyBB Community Forums

Full Version: Jquery: Problem with fix and fluid width
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

i use code below in my forum

jQuery.noConflict();
jQuery(function($) {
    $(".clickedbuttons").hide();
    $(".buttons").click(function() {
        document.getElementById('wrapsize').style.width = "1000px";
        $(this).hide();
        $(".clickedbuttons").show();
        $.cookie("width","fixed", {expires: 365});
        return false;
    });
    $(".clickedbuttons").click(function() {
        document.getElementById('wrapsize').style.width = "85%";
        $(this).hide();
        $(".buttons").show();
        $.cookie("width","fluid", {expires: 365});
        return false;
    });
    if($.cookie("width") == "fixed") {
        $(".buttons").hide();
        $(".clickedbuttons").show();
        document.getElementById('wrapsize').style.width = "1000px";
    };
});

Code above work... But in all page of my forum create resize efect in fixed width mode.

In fluid width mode not has problem.

if someone can help me solve this problem I appreciate.

Thanks...
Link to the forum?
Where do you use this code and what are you trying to attempt?
(2013-10-06, 11:55 AM)LucasC Wrote: [ -> ]Link to the forum?
Where do you use this code and what are you trying to attempt?

click in "www" button the side of the PM button...

in "div id="wrapsize""

[Image: 7506.png] (click in this to change fix width mode)