Hi I'm new here and I was hoping someone could help me. I have a horizontal scroller and I'm trying to create a hyperlink so that whereever you click on the scroller you will be taken to a particular external web page.
Here is the current code that works with the exception of the hyperlink:
function writeJS(){
var str='';
str+='<marquee onmouseover="this.scrollAmount=3" onmouseout="this.scrollAmount=6" scrollamount="1"><?php
$news = $this->db->query("select * from psn_news order by news_id desc limit 0,5");
foreach($news->result() as $row)
{
echo $row->news_title." | ";
}
?><\/marquee>';
document.write(str);
}
writeJS();
//-->
</script></td>
Can anyone possibly tell me how to allow hyperlinks in this scroller?
Thanks, Pat


Reply With Quote
Bookmarks