Jump to content

how do i get rid of the underline on this ticker


dc_jt

Recommended Posts

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>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.