>>  Site Map >>  Forums >>  Themes

Forum module - topics in forum:



Themes - Theme discussion only, Have a theme you made wanna share it. you can post a link to it here or ask questions on making themes and theme issues.



Scrolling Footer

I am thinking it is a simple matter of Copy/Pasting the code, if I knew the code and where to paste it....... Sad

I would like to add the scrolling elements to both sides of my footer...I think it would need to be added in this section of the theme.php

Code: :
/************************************************************/
/* Function themefooter()                                   */
/*                                                          */
/* Control the footer for your site.                        */
/************************************************************/


function themefooter() {
    echo "<br>";
    if (defined('INDEX_FILE')) {
   echo "</td><td><img src=\"themes/GunPowder/images/pixel.gif\" width=\"15\" height=\"1\" border=\"0\" alt=\"\"></td><td valign=\"top\" width=\"155\">\n";
   blocks("right");



    }
    echo "</td><td><img src=\"themes/GunPowder/images/pixel.gif\" width=\"10\" height=\"1\" border=0 alt=\"\">\n"
   ."</td></tr></table>\n"
        ."<table width=\"99%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" align=\"center\"><tr valign=\"top\">\n"
        ."<td height=\"17\">&nbsp;</td>\n"
        ."</tr></table>\n"
        ."<br>"
        ."<table width=\"97%\" cellpadding=\"0\" cellspacing=\"0\" border=\"1\" bgcolor=\"\" align=\"center\"><tr valign=\"top\">\n"
        ."</tr><tr align=\"center\">\n"
        ."<td width=\"100%\" colspan=\"3\">\n";
    footmsg();
    echo "</td>\n"
        ."</tr>\n"
        ."</table>\n"
        ."</tr></table>\n";
}

/************************************************************/


Is this correct? I would like to at least Scroll Top Links on one side.....Anything else that would scroll and could be easily added is a plus....

Thanks.






Mike,
Here is an example of the code Jae_9 uses. This is for downloads (Not NSN GR Downloads):
Code: :
$maxshow = 10;   // Number of downloads to display in the block.
$a = 1;
$result = sql_query("select lid, title, hits from ".$prefix."_downloads_downloads order by date DESC limit 0,$maxshow", $dbi);
while(list($lid, $title, $hits) = sql_fetch_row($result, $dbi)) {
    $title2 = ereg_replace("_", " ", "<b>$title</b>");
    $show .= "&nbsp;$a: <a href=\"modules.php?name=Downloads&amp;d_op=viewdownloaddetails&amp;lid=$lid&amp;title=$title\">$title2</a><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b><font color=\"#FFFFFF\">$hits</b><font color=\"#FFFFEE\"> times<br>";
        $showdownloads = " <A name= \"scrollingCodedownloads\"></A><MARQUEE behavior= \"scroll\" align= \"center\" direction= \"up\" height=\"114\" scrollamount= \"2\" scrolldelay= \"90\" onmouseover='this.stop()' onmouseout='this.start()'><table width=\"100%\"><tr>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<td></td></tr>$show</table></marquee>";
   
   
    $a++;
}

And Links:
Code: :
$maxshow = 10;   // Number of web links to display in the block.
$a = 1;
$result = sql_query("select lid, title, hits from ".$prefix."_links_links order by date DESC limit 0,$maxshow", $dbi);
while(list($lid, $title, $hits) = sql_fetch_row($result, $dbi)) {
    $title2 = ereg_replace("_", " ", "<b>$title</b>");
    $show2 .= "&nbsp;$a: <a href=\"modules.php?name=Web_Links&amp;l_op=viewlinkdetails&amp;lid=$lid&amp;ttitle=$title\">$title2</a><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b><font color=\"#FFFFFF\">$hits</b><font color=\"#FFFFEE\"> times<br>";
        $showlinks = " <A name= \"scrollingCodeweblinks\"></A><MARQUEE behavior= \"scroll\" align= \"center\" direction= \"up\" height=\"114\" scrollamount= \"2\" scrolldelay= \"90\" onmouseover='this.stop()' onmouseout='this.start()'><table width=\"100%\"><tr>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<td></td></tr>$show2</table>";
   
   
    $a++;
}







Hmmmm....I'm studying it NC......I'm not sure how to place it in the tables of the original script?

I see I might have to change alignments in the original from center to left/right.....

Not sure what the pixel gif in my original is all about.....a spacer maybe.?

More researching on my end.....tables aren't my forte....much like wood working, ya get one leg too short, you end up with a very small dance floor......

Thanks again for the input!

It gives me something to work with.....




Attention! You are currently viewing sitemap page!
We strongly suggest to look at original content

Search from web

Valid HTML 4.01 Valid CSS