I was wondering if there is a way to create repeating characters such as periods or dashes to repeat after a word. This would create a look that is popular on menus.
Example
Hamburger……………….$3.00 Fries………………………$1.50 Steak and Eggs…………$6.50
@cczerniaauthorJan 08.2008 — #Thanks for the reply but I can't seem to get .pad to work. I tested in both IE and Firefox. In Firefox I get "message.pad is not a function"
@scragarJan 08.2008 — #sorry, forgot to post the function ? [code=php]String.prototype.pad = function(l, s, t){ return s || (s = " "), (l -= this.length) > 0 ? (s = new Array(Math.ceil(l / s.length) + 1).join(s)).substr(0, t = !t ? l : t == 1 ? 0 : Math.ceil(l / 2)) + this + s.substr(0, l - t) : this; };[/code]