dc_jt Posted July 4, 2007 Share Posted July 4, 2007 hi im using the following ticker which used to have an a link on it but i want to remove it, therefore i have just changed the location to #. However, I want to remove the link altogether. I tried removing var theSiteLinks = new Array(); and print('theSiteLinks['.$i.'] = "'.htmlentities('#').'";'."\n"); but then the ticker wouldnt work. any suggestions? thanks <?php require_once($_SERVER['DOCUMENT_ROOT'].'/config.inc.php'); require_once(LOCAL_CLASSES.'/Tables/RCLTblTicker.class.php'); $oTblTicker = new RCLTblTicker(); //$db = new RCLDB; $query = $oTblTicker->GetTicker(); // $result = mysql_query("SELECT * FROM news WHERE live='1' ORDER BY date_added DESC LIMIT 4",$db); $num_rows = mysql_num_rows($query); if($num_rows > 0) { ?> <div id="ticker_area"> <div class="ticker_area_label">LATEST NEWS</div> <div class="ticker_text"> <a id="tickerAnchor" href="#" target="_top"></a> <script language="JavaScript" type="text/javascript" src="tickerEngine.js"></script> <script language="JavaScript" type="text/javascript"> <!-- var theCharacterTimeout = 50; var theStoryTimeout = 5000; var theWidgetOne = "_"; var theWidgetTwo = "-"; var theWidgetNone = ""; var theLeadString = ""; var theSummaries = new Array(); var theSiteLinks = new Array(); var theSiteWindows = new Array(); var theItemCount = <?=$num_rows?>; <?php $i = 0; while($oquery = mysql_fetch_object($query)) { print('theSummaries['.$i.'] = "'.$oquery->title.'";'."\n"); print('theSiteLinks['.$i.'] = "'.htmlentities('#').'";'."\n"); print('theSiteWindows['.$i.'] = '.($line['new_window'] == 1 ? "true" : "false").";\n"); $i++; } ?> startTicker(); //--> </script> <?php } ?></div> </div> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.