<?php
	function marquee () {
    $query1 = "select body from news";
	$result1 = @mysql_query($query1);
	$num_rows = mysql_num_rows($result1);

	while($temp_data = @mysql_fetch_array($result1))
	{
		$body = nl2br($temp_data[body]);
		if ($num) echo ",";
		echo "\"$body\"";
		$num = 1;
	}//end while
	}
?>

//still trying to get <?php marquee(); ?> to show up in the array parentheses

var imgsa = new Array("monkeys","puppies")
var alta = new Array()
var currentAda = 0
var imgCta = 2
function cyclea() {
  if (currentAda == imgCta) {
    currentAda = 0
  }
  document.getElementById('adLinka').innerHTML = imgsa[currentAda]
  currentAda++
}
  window.setInterval("cyclea()",5000)