I have tried all sorts of workarounds with this code and am probably just missing something small but have put in a lot of time trying to figure it out and am just at a loss. This code makes use of a js scroller that uses css. The information in the scroller is being pulled from a database which as of now, creates a link to the page it references. I want the page information itself to remain but DON'T want it to link anywhere. Please help!
Here's the code:
<style type="text/css">
<!--
.scroll {font-family: helvetica,arial;font-size: 8pt;color: ffffff}
a.scroll {text-decoration: none; color: ffffff;}
a:link.scroll {text-decoration: none; color: ffffff;}
a:visited.scroll {text-decoration: none; color: ffffff;}
a:hover.scroll {text-decoration: underline; color: ffffa0;}
//-->
</style>
<script language="JavaScript1.2" src="/includes/scroller/ajlib.js"></script>
<script language="JavaScript1.2" src="/includes/scroller/ajscroller.js"></script>
<BODY onload="LoadAJScroller()" onresize=" LoadAJScroller()">
<script language="JavaScript1.2">
aj_scroller = new AJScroller(120, 150, 50, 1, 1, false);
<?
$sql = "
SELECT r.ID, s.ScrollerText
FROM Reference r, Scroller s
WHERE r.Scroller = 1
AND r.ID = s.RefID
ORDER BY r.ID
";
$titleArr = Query_Select($sql, $link);
for( $i = 0, $titleCount = sizeof($titleArr); $i < $titleCount; $i++ ) {
$text = nl2br($titleArr[$i]['ScrollerText']);
$text = str_replace("\r", " ", $text);
$text = str_replace("\n", " ", $text);
echo "AddAJScrollerItem('<br /><br />".
"\"/detail/detail.php3?ID=".
$titleArr[$i]['ID'].
"\" class=\"scroll\">".$text."');\n";
}
if ($titleCount == 1) {
echo "AddAJScrollerItem(' ');\n";
}
?>
</script>