I am calling the following var roundedCornersOnLoad = function () { MochiKit.Visual.roundClass(null, "round"); MochiKit.Visual.roundClass(null, "roundbottom", {corners: "bottom"}); MochiKit.Visual.roundClass(null, "roundtop", {corners: "top"});
MochiKit.Visual.roundClass(null, "borderround", {corners: "all",border:true,blend:true}); MochiKit.Visual.roundClass(null, "borderroundbottom", {border: true, blend: true, corners: "bottom"}); MochiKit.Visual.roundClass(null, "borderroundtop", {border: true, blend: true, corners: "top"}); }; MochiKit.DOM.addLoadEvent(roundedCornersOnLoad); Which works great. I'm then fading, replacing html, making it appear again and then using the code below to round the corner of the new html I just inserted into the document. [snip] MochiKit.Visual.roundClass(null, "round", {corners: "all",blend:true}); MochiKit.Visual.roundClass(null, "roundbottom", {corners: "bottom", blend: true}); MochiKit.Visual.roundClass(null, "roundtop", {corners: "top", blend:true}); MochiKit.Visual.roundClass(null, "borderround", {corners: "all",border:true,blend:true}); MochiKit.Visual.roundClass(null, "borderroundbottom", {border: true, blend: true, corners: "bottom"}); MochiKit.Visual.roundClass(null, "borderroundtop", {border: true, blend: true, corners: "top"}); MochiKit.Visual.appear(area); [/snip] It works but there is no blending of the background color. Its just white. Do these classes just work on window load? Is there a solution to this white background problem? Is it because I am calling the function twice? I get this in windows xp, FF v2. IE v6 Just seems to break altogether when adding the roundClass second time around. Anyway, any help would be appreciated. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MochiKit" group. To post to this group, send email to mochikit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit?hl=en -~----------~----~----~----~------~----~------~--~---