In my current project, I'm working on my new portfolio site. I'm using the jQuery scrollTo plugin to scroll the page, but to make sure it didn't go too fast in certain places I passed it a speed for each type of link. To keep my markup looking clean, I aliased the speeds as variables within the code. The code looked like this:
var slow = 4500;
var normal = 2500;
var fast = 1700;
and then the links looked kind of like this:
<a href="#contact-me" rel="slow">contact me</a>
Thanks for the help!