Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

pedrovoltaire

Timeline em pagina .php

Recommended Posts

Pessoal, em primeiro lugar obrigado pela atenção.

É o seguinte, criei uma popup em que gostaria de movimenta-la pela página;um movimento simples com timeline. Já usei timeline várias vezes com popup.Porém nesta página em php, nem mesmo o código indicando que foi criado uma timeline aparece.

Será que é porque a pagina é em php?

Não sei.

Se alguem puder me ajudar agradeço.

Valeu.

 

seque o código:

<?if(getenv("REQUEST_METHOD") == "POST"){	foreach($_POST as $campo => $valor){		$$campo = trim(strip_tags($valor));	}	if(isset($form) AND $form == "consultas"){		$destino2 = $destino == "asa" ? "estevao_lucas@mjsoftware.com.br" : "estevao_lucas@mjsoftware.com.br";		$assunto = "Marcação de Consulta";				if(empty($email)){			$alert = "<script>					 alert('Por favor, preencha o campo E-mail');				</script>";			exit;		}else{			$nome = ucwords(strtolower($nome));			$mensagem =" <html><head><title>Marcação de Consulta</title><style type=text/css><!--td {font-family: Verdana, Arial, Helvetica, sans-serif;	font-size: 12px;font-style: normal;	text-decoration: none; }--></style></head><body topmargin=0 marginheight=0 marginwidth=0 leftmargin=0><table width=70%  border=0 cellspacing=0 cellpadding=3 align=center>	<tr>	  <td colspan=2 align=center><h3>Marcação de Consulta</h3></td>	</tr>	<tr>	  <td width=88><b>Nome:</b></td>	  <td width=300>$nome</td>	</tr>	<tr>	  <td width=88><b>Telefone:</b></td>	  <td width=300>$fone</td>	</tr>	<tr>	  <td width=88><b>Tipo de Exame:</b></td>	  <td width=300>$exame</td>	</tr>	<tr>	  <td><b>Email:</b></td>	  <td>$email</td>	</tr>	<tr></table>";			$headers = "From: $nome <$email>\n";			$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";			$mail = mail($destino2,$assunto,$mensagem,$headers);			if($mail){				$alert = "<script>					 alert('Seu email foi enviado com sucesso! Obrigado')					 </script>";			}else{				$alert = "<script>					 alert('O nosso Servidor não consequiu enviaro seu e-mail.\n Por favor, tente mais tarde novamente.')					 </script> ";			}		}	}		if(isset($form) AND $form == "contato"){		$destino2 =  "estevao_lucas@mjsoftware.com.br";		$assunto = "Contato On-Line";				$msg = nl2br($msg);		if(empty($email)){			$alert = "<script>					 alert('Por favor, preencha o campo E-mail');				</script>";			exit;		}else{			$nome = ucwords(strtolower($nome));			$mensagem =" <html><head><title>Contato On-Line</title><style type=text/css><!--td {font-family: Verdana, Arial, Helvetica, sans-serif;	font-size: 12px;font-style: normal;	text-decoration: none; }--></style></head><body topmargin=0 marginheight=0 marginwidth=0 leftmargin=0><table width=70%  border=0 cellspacing=0 cellpadding=3 align=center>	<tr>	  <td colspan=2 align=center><h3>Contato On-Line</h3></td>	</tr>	<tr>	  <td><b>Nome:</b></td>	  <td>$nome</td>	</tr>	<tr>	  <td><b>E-mail:</b></td>	  <td>$email</td>	</tr>	<tr>	  <td><b>Telefone:</b></td>	  <td>$fone</td>	</tr>	<tr>	  <td><b>Assunto:</b></td>	  <td>$assunto</td>	</tr>	<tr>	  <td valign=top><b>Mensagem:</b></td>	  <td>$msg</td>	</tr>	<tr></table>";			$headers = "From: $nome <$email>\n";			$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";			$mail = mail($destino2,$assunto,$mensagem,$headers);			if($mail){				$alert = "<script>					 alert('Seu email foi enviado com sucesso! Obrigado');					 </script>";			}else{				$alert = "<script>					 alert('O nosso Servidor não consequiu enviaro seu e-mail.Por favor, tente mais tarde novamente.');					 </script>";			}		}	}}if(isset($_GET["pag"]) AND is_file("textos/".$_GET["pag"].".php")){	include "textos/".$_GET["pag"].".php";}else{	include "textos/index.php";}?><!DOCTYPE htmlPUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head>	<title>Clínica Brasil | <?=strip_tags($titulo)?></title>	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />	<link rel="shortcut icon" href="imagens/icon.ico" type="image/x-icon"/>	<meta name="language" content="pt-br" />	<meta name="Copyright" content="Todos os direitos reservados à Clínica Brasil" />	<meta name="roboots" content="all" />	<style type="text/css">	@import url('estilo.css');#Layer1 {	position:absolute;	left:806px;	top:259px;	width:161px;	height:135px;	z-index:101;}	</style>	<? if(isset($alert)) { echo $alert; }?><script type="text/JavaScript"><!--function MM_timelineGoto(tmLnName, fNew, numGotos) { //v2.0  //Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004 Macromedia, Inc. All rights reserved.  var i,j,tmLn,props,keyFrm,sprite,numKeyFr,firstKeyFr,lastKeyFr,propNum,theObj;  if (document.MM_Time == null) MM_initTimelines(); //if *very* 1st time  tmLn = document.MM_Time[tmLnName];  if (numGotos != null)	if (tmLn.gotoCount == null) tmLn.gotoCount = 1;	else if (tmLn.gotoCount++ >= numGotos) {tmLn.gotoCount=0; return}  jmpFwd = (fNew > tmLn.curFrame);  for (i = 0; i < tmLn.length; i++) {	sprite = (jmpFwd)? tmLn[i] : tmLn[(tmLn.length-1)-i]; //count bkwds if jumping back	if (sprite.charAt(0) == "s") {	  numKeyFr = sprite.keyFrames.length;	  firstKeyFr = sprite.keyFrames[0];	  lastKeyFr = sprite.keyFrames[numKeyFr - 1];	  if ((jmpFwd && fNew<firstKeyFr) || (!jmpFwd && lastKeyFr<fNew)) continue; //skip if untouchd	  for (keyFrm=1; keyFrm<numKeyFr && fNew>=sprite.keyFrames[keyFrm]; keyFrm++);	  for (j=0; j<sprite.values.length; j++) {		props = sprite.values[j];		if (numKeyFr == props.length) propNum = keyFrm-1 //keyframes only		else propNum = Math.min(Math.max(0,fNew-firstKeyFr),props.length-1); //or keep in legal range		if (sprite.obj != null) {		  if (props.prop2 == null) sprite.obj[props.prop] = props[propNum];		  else		sprite.obj[props.prop2][props.prop] = props[propNum];	  } }	} else if (sprite.charAt(0)=='b' && fNew == sprite.frame) eval(sprite.value);  }  tmLn.curFrame = fNew;  if (tmLn.ID == 0) eval('MM_timelinePlay(tmLnName)');}function MM_initTimelines() { //v4.0	//MM_initTimelines() Copyright 1997 Macromedia, Inc. All rights reserved.	var ns = navigator.appName == "Netscape";	var ns4 = (ns && parseInt(navigator.appVersion) == 4);	var ns5 = (ns && parseInt(navigator.appVersion) > 4);	var macIE5 = (navigator.platform ? (navigator.platform == "MacPPC") : false) && (navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4);	document.MM_Time = new Array(1);	document.MM_Time[0] = new Array(2);	document.MM_Time["Timeline1"] = document.MM_Time[0];	document.MM_Time[0].MM_Name = "Timeline1";	document.MM_Time[0].fps = 15;	document.MM_Time[0][0] = new String("sprite");	document.MM_Time[0][0].slot = 1;	if (ns4)		document.MM_Time[0][0].obj = document["Layer1"];	else if (ns5)		document.MM_Time[0][0].obj = document.getElementById("Layer1");	else		document.MM_Time[0][0].obj = document.all ? document.all["Layer1"] : null;	document.MM_Time[0][0].keyFrames = new Array(1, 30, 60);	document.MM_Time[0][0].values = new Array(2);	if (ns5 || macIE5)		document.MM_Time[0][0].values[0] = new Array("549px", "558px", "567px", "576px", "584px", "593px", "602px", "611px", "620px", "629px", "638px", "646px", "655px", "664px", "673px", "682px", "691px", "700px", "709px", "717px", "726px", "735px", "744px", "753px", "762px", "771px", "779px", "788px", "797px", "806px", "797px", "789px", "780px", "772px", "763px", "755px", "746px", "737px", "729px", "720px", "712px", "703px", "695px", "686px", "678px", "669px", "660px", "652px", "643px", "635px", "626px", "618px", "609px", "600px", "592px", "583px", "575px", "566px", "558px", "549px");	else		document.MM_Time[0][0].values[0] = new Array(549,558,567,576,584,593,602,611,620,629,638,646,655,664,673,682,691,700,709,717,726,735,744,753,762,771,779,788,797,806,797,789,780,772,763,755,746,737,729,720,712,703,695,686,678,669,660,652,643,635,626,618,609,600,592,583,575,566,558,549);	document.MM_Time[0][0].values[0].prop = "left";	if (ns5 || macIE5)		document.MM_Time[0][0].values[1] = new Array("259px", "259px", "259px", "259px", "259px", "259px", "259px", "259px", "259px", "259px", "259px", "259px", "259px", "259px", "259px", "259px", "259px", "259px", "259px", "259px", "259px", "259px", "259px", "259px", "259px", "259px", "259px", "259px", "259px", "259px", "259px", "259px", "259px", "259px", "259px", "259px", "259px", "259px", "259px", "259px", "259px", "259px", "259px", "259px", "259px", "259px", "259px", "259px", "259px", "259px", "259px", "259px", "259px", "259px", "259px", "259px", "259px", "259px", "259px", "259px");	else		document.MM_Time[0][0].values[1] = new Array(259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259);	document.MM_Time[0][0].values[1].prop = "top";	if (!ns4) {		document.MM_Time[0][0].values[0].prop2 = "style";		document.MM_Time[0][0].values[1].prop2 = "style";	}	document.MM_Time[0][1] = new String("behavior");	document.MM_Time[0][1].frame = 61;	document.MM_Time[0][1].value = "[b]MM_timelineGoto('Timeline1','1')";[/b]	document.MM_Time[0].lastFrame = 61;	for (i=0; i<document.MM_Time.length; i++) {		document.MM_Time[i].ID = null;		document.MM_Time[i].curFrame = 0;		document.MM_Time[i].delay = 1000/document.MM_Time[i].fps;	}}//--></script></head><body><script>function Esconde(){document.getElementById('Layer1').style.visibility="hidden";}</SCRIPT><div id="Layer1" style="left: 549px">  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="210" height="150">	<param name="movie" value="popup.swf" />	<param name="quality" value="high" />	<param name="wmode" value="transparent">	<embed src="popup.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="210" height="150"></embed>  </object></div><div id="site">	<div id="topo">		<h1><a href="index.html" title="Clínica Brasil | Inicial">Clinica Brasil</a></h1>		<ul id="menu">			<li id="equipe"><a href="equipe.html">Equipe</a></li>			<li id="nossosservicos"><a href="servicos.html">Nossos Serviços</a></li>			<li id="contato"><a href="contato.html">Contato</a></li>			<li id="links"><a href="links.html">Links</a></li>		</ul>	</div>	<div id="endereco">		<h5>Plano Piloto</h5>		<p>		<!-- (61) 224.3428 -->			Endereço: SDS Boulevard, Bl. "J" <br />			Ed. Boulevard Shopping, Sobreloja 20.		</p>		<h5>Ceilândia</h5>		<p>		<!-- (61) 3372.1870 -->			Endereço: QNM 17, Conj. B, Lote 3,<br />			Salas 101/104, Ceilândia Centro.		</p>	</div>	<div id="conteudo">		<div id="destaque">		 <!--<img id="principal" src="imagens/destaque.jpg" width="482" height="280">-->		<object id="principal" type="application/x-shockwave-flash" data="imagens/destaque.jpg" width="480" height="280">			<param name="movie" value="imagens/destaque.jpg" />			<img src="imagens/destaque.jpg" width="480" height="280" alt="" />			</object>		</div>		<div id="texto">			<h2><?=$titulo;?></h2>			<?=$texto;?>		</div>			<div id="submenu">		  <div class="quadro" id="oftamologia">				<h3><a href="obtencao.html">Obtenção da CNH</a></h3>			  <a href="obtencao.html" class="efeito"><img src="imagens/index.jpg" alt="Obtenção da CNH" width="108" height="67"/></a>			</div>		  <div class="quadro" id="psicologia">				<h3><a href="renovacao.html">Renovação da CNH</a></h3>				<a href="renovacao.html" class="efeito"><img src="imagens/mini_psicologia.jpg" alt="Renovação da CNH"/></a>			</div>			<div class="quadro" id="clinica">				<h3><a href="troca.html">Troca/Adição</a></h3>				<a href="troca.html" class="efeito"><img src="imagens/mini_clinica.jpg" alt="Troca/Adição da CNH"/></a>			</div>		</div>		</div>	<!--<address id="rodape" class="geral">	© Copyright 2006. Todos os direitos reservados.<br/><span> Desenvolvido por <a href="#">MJ Tecnologia</a></span>	</address>--></div></body></html>

pelo jeito essa está com o código da timeline, porém mesmo assim não funciona.

Compartilhar este post


Link para o post
Compartilhar em outros sites

Cara, o fato da página ser em PHP ou em qualquer outra linguagem não influencia, uma vez que o resultado final no browser será o HTML mesmo.Você pode fazer o seguinte:Crie uma página simples sem nada. E adiciona somente o behavior da timeline e teste. Se funcionar insira depois o restante do código (php)Assim ficará fácil para você "debugar"Um abraço.

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.