Is there any "easy" way to make the code in mod_simpleboard5.php to scroll up or down automatic? If the user point the mouse over one, it will stop.
Here is tha code.
PHP Code:
<?php
//Site Statistics//
// $Id: mod_simplboard5.php,v 1.2 2003/09/01 08:02:54 rcastley Exp $
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
$content ="";
$database->setQuery("SELECT a. * , b.id as category, b.name as catname, b.published as published"
. "\n FROM #__sb_messages AS a, "
. "\n #__sb_categories AS b WHERE a.catid = b.id"
. "\n AND a.hold = 0 AND b.published = 1"
. "\n ORDER BY a.time DESC "
. "\n LIMIT 5 ");
$meslist = $database->loadObjectList();
foreach ($meslist as $mes){
$database->setQuery("SELECT message"
. "\n FROM #__sb_messages_text"
. "\n WHERE mesid = $mes->id"
. "\n LIMIT 1 ");
$mesbody = $database->loadResult();
$mesbody = strip_tags($mesbody);
$content.="<img border=\"0\" src=\"".$mosConfig_live_site."/images/M_images/arrow.png\"> <a href=\"index.php?option=com_simpleboard&func=view&catid=".$mes->catid."&id=".$mes->id."#".$mes->id."\" title=\"$mesbody\">".stripslashes($mes->subject)."</a> [".$mes->name."; ".date("j-n-Y, H:m:s",$mes->time)."]<br/>";
}
$content.="<br/>";
$content.="Vis siste emner for <a href=\"index.php?option=com_simpleboard&func=latest&do=show&sel=4\">4 timer siden</a> - <a href=\"index.php?option=com_simpleboard&func=latest&do=show&sel=24\">24 timer siden</a>";
?>