I have tried to implement this kind of feature some time ago, but could not get it to work on every browser. It did not work on MSIE …
I could try again, but it will take some time. A week maybe.
The javascript-file is regenerated every time a new link is added to your blogroll or if an existing link is modified.
perhaps two js-files one that are rendered on update and one static with preSort() and postSort() functions that are called before and after sort.
That would be just great!
Thanks!
/Fredde
I made the modification to the plugin by myself hope that is okay! Put up a little howto here:
http://blog.fredde.se/?p=4907
You can see the english text a bit down on the post.
Thanks!
/Fredde
Thank you!
I’ll have a look at it and maybe add some of your code to the next version.
Of course I would mention you as a contributor in that case.
I’d think a better way to handle this is to use CSS classes rather than swapping “display: none;” and “display: block” directly on elements.
So for instance, if you have a class .feedreading_hideit which contains “display: none;” and the inverse in .feedreading_showit (“display: block;”). I realize it accomplishes the same thing, but it’s flexible via jQuery with addClass/removeClass like so:
Give #feedreading_blogroll_ the .feedreading_hideit by default, then at the end of feedreading_limit_display() place the following:
$(‘.feedreading_bookmark’).removeClass(‘feedreading_hideit’).addClass(‘feedreading_showit’);
Relatively simple solution. Extending this technique further, for myself I added a -more- button (since I’m displaying only 6 bookmarks) as well.
Im using script.aculo.us for the fade in effect and it needs a display:none on the element to work otherwise it is nicer to change class. 🙂
/Fredde