Any elements you would want to have a border you’d need to add a class, like “.sqaureborder”, to. Use jQuery to find those classes, and append this set of divs;
topleft, topcenter, topright, leftcenter, rightcenter, bottomleft, bottomcenter, bottomright
You would then position these divs absolutely, giving them specific dimensions and background images. So yeah, its possible without CSS3, but a pain. I made a script like this some time ago….