Ver Mensaje Individual
  #1 (permalink)  
Antiguo 23/12/2004, 07:52
marko249
 
Fecha de Ingreso: septiembre-2004
Mensajes: 179
Antigüedad: 19 años, 7 meses
Puntos: 0
Exclamación mostrar textos de php en javascritp

HOLA A TODOS

tengo un problema con un pagina la cual realiza animacioines en de los textos pero no se como poder mostrar una consulta de una base de datos en php, el siguiente es el codigo de la pagina

<html>
<head>
<style type="text/css">
<!--
body,td,th {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9px;
color: #000000;
}
a:link {
text-decoration: none;
color: #000000;
}
a:visited {
text-decoration: none;
color: #000000;
}
a:hover {
text-decoration: underline;
color: #006699;
}
a:active {
text-decoration: none;
}
body {
background-image: url();
background-color: #dfefff;
}
.style1 {
font-size: 12px;
font-weight: bold;
}
-->
</style>
</head>

<body bgcolor="dfefff">
<div id="datacontainer" style="position:absolute;left:1px;top:10px;width:1 00%" onMouseover="scrollspeed=0" onMouseout="scrollspeed=cache">
<!-- ADD YOUR SCROLLER CONTENT INSIDE HERE -->
<?php
$cinco="dos";
echo $cinco;
?>

// aqui es donde tengo que mostrar la parte de php
<p>Saboteadores atacaron el martes un entronque de oleoductos que cruzan el
río Tigris en el norte de Irak, provocando una reacción en cadena en las plantas
de electricidad que dejó a oscuras a todo el país, dijeron las autoridades.</p>
<p>Teresa Heinz Kerry, esposa del contendiente demócrata a la presidencia, John
Kerry, afirmó ayer que la presente Administración republicana ha establecido
un patrón de malas decisiones y desatención a los asuntos que más afectan
a la comunidad latina, sin importar las consecuencias o a quiénes afectan.</p>
<p> <!-- END SCROLLER CONTENT --> </p>
</div>

<script type="text/javascript">

/***********************************************
* IFRAME Scroller script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

//Specify speed of scroll. Larger=faster (ie: 5)
var scrollspeed=cache=2

//Specify intial delay before scroller starts scrolling (in miliseconds):
var initialdelay=500

function initializeScroller(){
dataobj=document.all? document.all.datacontainer : document.getElementById("datacontainer")
dataobj.style.top="5px"
setTimeout("getdataheight()", initialdelay)
}

function getdataheight(){
thelength=dataobj.offsetHeight
if (thelength==0)
setTimeout("getdataheight()",10)
else
scrollDiv()
}

function scrollDiv(){
dataobj.style.top=parseInt(dataobj.style.top)-scrollspeed+"px"
if (parseInt(dataobj.style.top)<thelength*(-1))
dataobj.style.top="5px"
setTimeout("scrollDiv()",40)
}

if (window.addEventListener)
window.addEventListener("load", initializeScroller, false)
else if (window.attachEvent)
window.attachEvent("onload", initializeScroller)
else
window.onload=initializeScroller

</script>

</body>
</html>


les agrdezco su ayuda