You may have noticed those scrolling headlines in blocks of some sites. Perhaps you abhor them, because they distract you from reading the context, or because the scrolling effect is not supported by all browsers. But if you are fascinated by this effect and wondering how to achieve it in your own PHP-Nuke RSS blocks, here's how:
In mainfile.php, find the code for the headlines() function:
function headlines($bid, $cenbox=0) |
There, near the end, replace the lines
if ($cenbox == 0) { themesidebox($title, $content); } else { themecenterbox($title, $content); } |
with the lines
if ($cenbox == 0) { $content = "<marquee scrollamount=\"2\" direction=\"up\" loop=\"true\">$content</marquee>"; themesidebox($title, $content); } else { $content = "<marquee scrollamount=\"2\" direction=\"up\" loop=\"true\">$content</marquee>"; themecenterbox($title, $content); } |
Enclosing the old $content variable in the marquee code and assigning it to the $content variable again before the call to the themesidebox or themecenterbox functions, gives the desired scrolling effect for our RSS headlines.