You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 537 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
How to get scrolling headlines in blocks

17.4. How to get scrolling headlines in blocks

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.


PHP-Nuke HOWTO brought to you by Chris Karakas

Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.201 Seconds - 194 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::