Christian Heilmann





Like those shiny reflections on web pages? Here’s a little bit of code to play with. It’s called the script.aculo.us Reflector.
[…]
It’s not really meant for production use yet, as it will probably introduce performance issues and other nasty things,
but it’s always refreshingly nice to see what a few lines of Prototype and script.aculo.us code can do.
We all want cool effects right? I remember when applets came onto the scene, you would see the reflection animations (that would take 30 mins to download over your 28.8 modem).
Not Thomas Fuchs has put together a script.aculo.us Reflector that runs on top of Prototype/Scriptaculous (or course).













var locales = {
'en-us': {
'askQuestion':'Ask a Question',
'homePageAnswerLink':'Answer a question now',
'homePageQuestionLink':'Ask a question now',
'constrainLinkLength': 40,
'constrainLinkLengthDetail': 300,
},
'en-uk': {
// same settings
}
}
function doI18N(){
lang = yhost.PluginLocale;
for(i in locales[lang]){
elm = document.getElementById(i);
if(elm){
elm.innerHTML=locales[lang][i];
}
}
}