WebsiteBaker 2.13.9 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
$(".roundedCorners").each(function() { $(this).wrap('<div class="rounded" style="background:url(' + $(this).attr('src') + ') no-repeat center center;" />'); //width: ' + $(this).width() + 'px; height: ' + $(this).height() + 'px; if ( $(this).width() != "" ) { $(this).parent().css("width", $(this).width() + "px" ); } if ( $(this).height() != "" ) { $(this).parent().css("height", $(this).height() + "px" ); } $(this).hide(); }); $('.rounded').ccorner({ tl: { radius: 10 }, tr: { radius: 10 }, bl: { radius: 10 }, br: { radius: 10 }, antiAlias: true, autoPad: true, });
$(".roundedCorners2").each(function() { $(this).wrap('<div class="rounded2" style="background:url(' + $(this).attr('src') + ') no-repeat center center;" />'); //width: ' + $(this).width() + 'px; height: ' + $(this).height() + 'px; if ( $(this).width() != "" ) { $(this).parent().css("width", $(this).width() + "px" ); } if ( $(this).height() != "" ) { $(this).parent().css("height", $(this).height() + "px" ); } $(this).hide(); }); $('.rounded2').ccorner({ tl: { radius: 20 }, tr: { radius: 20 }, bl: { radius: 20 }, br: { radius: 20 }, antiAlias: true, autoPad: true, });
<!-- position: head --> <script type="text/javascript" src="{WB_URL}/modules/jqueryadmin/plugins/CurvyCorners/jquery.curvycorners.min.js"></script><!-- position: head --> <script type="text/javascript"> $(document).ready(function() { $(".roundedCorners").each(function() { $(this).wrap('<div class="rounded" style="background:url(' + $(this).attr('src') + ') no-repeat center center;" />'); //width: ' + $(this).width() + 'px; height: ' + $(this).height() + 'px; if ( $(this).width() != "" ) { $(this).parent().css("width", $(this).width() + "px" ); } if ( $(this).height() != "" ) { $(this).parent().css("height", $(this).height() + "px" ); } $(this).hide(); }); $('.rounded').ccorner({ tl: { radius: 10 }, tr: { radius: 10 }, bl: { radius: 10 }, br: { radius: 10 }, antiAlias: true, autoPad: true, }); $(".roundedCorners2").each(function() { $(this).wrap('<div class="rounded2" style="background:url(' + $(this).attr('src') + ') no-repeat center center;" />'); //width: ' + $(this).width() + 'px; height: ' + $(this).height() + 'px; if ( $(this).width() != "" ) { $(this).parent().css("width", $(this).width() + "px" ); } if ( $(this).height() != "" ) { $(this).parent().css("height", $(this).height() + "px" ); } $(this).hide(); }); $('.rounded2').ccorner({ tl: { radius: 20 }, tr: { radius: 20 }, bl: { radius: 20 }, br: { radius: 20 }, antiAlias: true, autoPad: true, }); }); </script>// ----- insert your custom code here -----
});