Ver Mensaje Individual
  #3 (permalink)  
Antiguo 04/10/2008, 16:35
Zptweb
 
Fecha de Ingreso: mayo-2007
Mensajes: 68
Antigüedad: 17 años
Puntos: 0
Respuesta: Problema con llamada php

Este es el código en general:

Código:
<?Php
include ('http://www.addictools.com/header3.php');

?>
<div onclick="expandcontent('sc1')" style="z-index: 4;font-family: Arial;font-size: 14px;font-weight: bold;text-align: center;background-image: url(http://www.addictools.com/images/fav.gif);background-repeat: no-repeat; left: 0px; top: 0px;cursor: hand; cursor:pointer;position: absolute;margin-top: 60px;width: 100px; height: 29px;"><div id="non" onclick="refdiv()" style="margin-top: 4px;">Quick links</div></div>
<div  style="font-family: Arial;font-size: 13px;left: 0px; top: 0px;position: absolute;margin-top: 86px;width: 150px;border-color: #3da40a;
border-style: solid;
border-width: 1px;background-color: #efefef;" id="sc1"><?php
if( isset( $_COOKIE['ako'] ) ) {
        echo "<div style=\"margin-top: 5px;\"><img src=\"http://utility-tools.addictools.com/cog.png\" title=\"This favorite is a utility tool\" alt=\"This favorite is a utility tool\" />   <a href=\"http://scrollbar-creator.addictools.com/\"><span style=\"color: blue;\">$_COOKIE[ako]</span></a> <a href=\"#\" onclick=\"sco()\"><img style=\"margin-left: 9px;\" src=\"http://www.addictools.com/images/close.png\" title=\"Delete\" alt=\"Delete\" /></a></div>";
        } else {
       echo "";
       }
      if( isset( $_COOKIE['pop'] ) ) {
        echo " <a href=\"http://popups-creator.addictools.com\"><div style=\"margin-top: 5px;margin-bottom: 5px;\"><img src=\"http://utility-tools.addictools.com/cog.png\" title=\"This favorite is a utility tool\" alt=\"This favorite is a utility tool\" />  $_COOKIE[pop]</a> <a href=\"#\" onclick=\"Delete_Cookie('pop', '/', 'addictools.com')
 alert('The favorite called Popups creator has been removed');\"><img style=\"margin-left: 17px;\" src=\"http://www.addictools.com/images/close.png\" title=\"Delete\" alt=\"Delete\" /></a></div>";
        } else {
       echo "";
       }
          if( isset( $_COOKIE['byte'] ) ) {
        echo "<div style=\"margin-top: 5px;margin-bottom: 5px;\"><img src=\"http://utility-tools.addictools.com/cog.png\" title=\"This favorite is a utility tool\" alt=\"This favorite is a utility tool\" />   <a href=\"http://byte-converter.addictools.com\">$_COOKIE[byte]</a> <a href=\"#\" onclick=\"Delete_Cookie('byte', '/', 'addictools.com')
 alert('The favorite called Byte converter has been removed');\"><img style=\"margin-left: 21px;\" src=\"http://www.addictools.com/images/close.png\" title=\"Delete\" alt=\"Delete\" /></a></div>";
        } else {
       echo "";
       }
          if( isset( $_COOKIE['byte'] ) OR  isset( $_COOKIE['pop'] ) OR isset( $_COOKIE['ako'] )) {

        echo "<a href=\"#\" onclick=\"deleteall()\"><div style=\"background-color: #f88285; cursor: hand; cursor:pointer;text-align: center;margin-top: 10px;margin-bottom: 5px;\"><b>Delete all</b></div></a>";
        }
   if( !isset( $_COOKIE['byte'] ) &&  !isset( $_COOKIE['pop'] ) && !isset( $_COOKIE['ako'] )) {
   
   echo "<div style=\"margin-top: 5px;margin-bottom: 5px;text-align: center;\">You don't have any quick link. <a title=\"Help\" href=\"#\" onclick=\"alert('The Quick links is a cool feature where you can archive your useful links, without having to go to other pages, quickly. To save one, you just need to go to the tool you want, and click on the button [Add to quick links], the link is saved to the Quick Links menu, and you can see this link wherever you are! ');\"><img src=\"http://www.addictools.com/images/help.png\" title=\"Help\" alt=\"Help\" /></a></div>";
}        
?></div>
</div><div  style="margin-left: auto; margin-right: auto;width: 900px;height:1200px;background-image: url(http://www.addictools.com/images/toolize.gif);"><div id="amenu">
	<ul id="globalnav">			
				<li id="design"><a href="http://design-tools.addictools.com/"></a></li>
				<li id="utility"><a href="http://utility-tools.addictools.com/"></a></li>
				<li id="msn"><a href="http://msn-tools.addictools.com/"></a></li>
								<li id="web"><a href="http://webmastertools.addictools.com/"></a></li>
				<li id="home"><a href="http://www.addictools.com/"></a></li>
 <li id="add"><a href="http://www.addictools.com" title="Addictools"></a></li>
	</ul></div><meta name="title" content="Scrollbar creator - Addictools" />
	<meta name="description" content="Scrollbar creator, create your own scrollbars for your website" />
	<meta name="copyright" content="Addictools" />
	<meta name="robots" content="all" />
	<meta name="expires" content="never" />
	<meta name="distribution" content="global" />
	<meta name="keywords" content="scrollbar creator, scrollbars creator, creator scrollbars, webmaster tools, web tools, nick generator, seo, tool," />
	<meta name="revisit-after" content="1 day" />
	<meta name="resource-type" content="Document" />
	<meta http-equiv="pragma" content="cache" />
	<meta name="robots" content="all | index | follow" /><title>Scrollbar creator - Addictools</title><h3 class="addictools2"><a href="http://www.addictools.com">Addictools</a> » <a href="http://utility-tools.addictools.com/">Utility tools</a> » <a href="http://scrollbar-creator.addictools.com/">Scrollbar creator</a></h3>
<table border="0" cellpadding="0" cellspacing="0" width="98%" align="center">
                          <tr>
<center><td align="center"><div style="text-align: center;"><script src="http://www.addictools.com/scripts/cookie.js" type="text/javascript"></script>
<object><h1>Scrollbar creator</h1></object> <?php
if( isset( $_COOKIE['ako'] ) ) {

echo "";

} else {
echo "<a href=\"#\" onclick=\"primerizo()\" title=\"Add to quick links\"><div><div style=\"margin-left: auto; margin-right: auto;padding-top: 4px;font-family: Arial; font-size: 13px;background-image: url(http://www.addictools.com/images/ql.png);background-repeat: no-repeat; text-align: center; width: 170px; height: 30px;\">Add to quick links</div></a>";
}

?><!-- Style Sheet --><!-- Common JS Calls --> <script language = "javascript"><!--var ie = document.all ? 1 : 0var ns = document.layers ? 1 : 0if(ie){document.write('<style type="text/css">')document.write('.textfield {font-size:10pt; font-family:verdana; color:#808080; font-weight:bold;}\n')document.write('.hexfield {font-size:10pt; font-family:verdana; color:#808080; font-weight:bold;}\n')document.write('.buttons {border-style: solid; background-color: #808080; border-color: #000000; border-width: 1; color: #FFFFFF; font-size: 10pt; font-family: verdana; font-weight: bold;}\n')document.write('</style>')}//-->
</script><div align="center"><script language="JavaScript" src='iescroll.js'></script></div>                          </tr>

                            </td>
</table>
<br /></a>
</td></tr></table></div></div></body><?php
include('http://www.addictools.com/footer.php');?></html>
Codigo de las cookies:

Código:
<?php
if( isset( $_COOKIE['ako'] ) ) {
        echo "<div style=\"margin-top: 5px;\"><img src=\"http://utility-tools.addictools.com/cog.png\" title=\"This favorite is a utility tool\" alt=\"This favorite is a utility tool\" />   <a href=\"http://scrollbar-creator.addictools.com/\"><span style=\"color: blue;\">$_COOKIE[ako]</span></a> <a href=\"#\" onclick=\"sco()\"><img style=\"margin-left: 9px;\" src=\"http://www.addictools.com/images/close.png\" title=\"Delete\" alt=\"Delete\" /></a></div>";
        } else {
       echo "";
       }
      if( isset( $_COOKIE['pop'] ) ) {
        echo " <a href=\"http://popups-creator.addictools.com\"><div style=\"margin-top: 5px;margin-bottom: 5px;\"><img src=\"http://utility-tools.addictools.com/cog.png\" title=\"This favorite is a utility tool\" alt=\"This favorite is a utility tool\" />  $_COOKIE[pop]</a> <a href=\"#\" onclick=\"Delete_Cookie('pop', '/', 'addictools.com')
 alert('The favorite called Popups creator has been removed');\"><img style=\"margin-left: 17px;\" src=\"http://www.addictools.com/images/close.png\" title=\"Delete\" alt=\"Delete\" /></a></div>";
        } else {
       echo "";
       }
          if( isset( $_COOKIE['byte'] ) ) {
        echo "<div style=\"margin-top: 5px;margin-bottom: 5px;\"><img src=\"http://utility-tools.addictools.com/cog.png\" title=\"This favorite is a utility tool\" alt=\"This favorite is a utility tool\" />   <a href=\"http://byte-converter.addictools.com\">$_COOKIE[byte]</a> <a href=\"#\" onclick=\"Delete_Cookie('byte', '/', 'addictools.com')
 alert('The favorite called Byte converter has been removed');\"><img style=\"margin-left: 21px;\" src=\"http://www.addictools.com/images/close.png\" title=\"Delete\" alt=\"Delete\" /></a></div>";
        } else {
       echo "";
       }
          if( isset( $_COOKIE['byte'] ) OR  isset( $_COOKIE['pop'] ) OR isset( $_COOKIE['ako'] )) {

        echo "<a href=\"#\" onclick=\"deleteall()\"><div style=\"background-color: #f88285; cursor: hand; cursor:pointer;text-align: center;margin-top: 10px;margin-bottom: 5px;\"><b>Delete all</b></div></a>";
        }
   if( !isset( $_COOKIE['byte'] ) &&  !isset( $_COOKIE['pop'] ) && !isset( $_COOKIE['ako'] )) {
   
   echo "<div style=\"margin-top: 5px;margin-bottom: 5px;text-align: center;\">You don't have any quick link. <a title=\"Help\" href=\"#\" onclick=\"alert('The Quick links is a cool feature where you can archive your useful links, without having to go to other pages, quickly. To save one, you just need to go to the tool you want, and click on the button [Add to quick links], the link is saved to the Quick Links menu, and you can see this link wherever you are! ');\"><img src=\"http://www.addictools.com/images/help.png\" title=\"Help\" alt=\"Help\" /></a></div>";
}        
?>

El archivo cookie.js (un poco sucio, tengo que limpiarlo):
http://www.addictools.com/scripts/cookie.js
Saludos.