Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Adding Yellow Fade
This discussion has been closed.
Comments
Took me 13 seconds to get this to work. Nice job guys. See Mark, I told you extensions would make this baby really shine!
what's the trick for a single flash?
var StartFadeAt = 28;
to
var StartFadeAt = 14;
Or use this one I prepared earlier :P
http://server.skoap.com/YellowFade.js
All I did was add the YellowFade.js to everything, anything it does beyond that is just based on what's anchor is being called. Apparently when you hit the anchor for a new post after making one (ie: #Comment_4, a
DIV
with an ID applied to it) it works peachy. But when you go to a thread it uses #Item_4 to reference a named anchor, an inline element with no text or background space to highlight.If you really want to try to rewrite the linking/XHTML structure of every page to make it always work you're welcome to do so.
Key Features
Good luck modifying all of Mark's code to add the "fade" class to the elements you want this code to work on. Another approach, and one I recommend, is to adapt the Javascript so that it accepts an array of CSS classes to apply the fade to, and then select from the element/class pairs that already exist.
Am I right in thing that if I want to change the colour i edit the part that starts:
var FadeSteps = new Array();
FadeSteps[1] = "ff";
which then carries on to 28?
I still haven't installed 0.9.3 to test it on, it was originally written for 0.9.2 but it should (fingers crossed) work fine as long as 0.9.3 didn't change how you add another JS file to the page template.