29
« en: 24 de Octubre de 2007, 21:37:44 pm »
Hola miren encontre este codigo en este foro:
El crear.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Generador de Userbars</title>
<style type="text/css">
<!--
body,td,th {
color: #FFFFFF;
}
body {
background-color: #666666;
}
-->
</style>
</head>
<body>
<table width="441" height="143" border="1" cellpadding="0" cellspacing="0" bordercolor="#000000">
<tr>
<td height="141"><form action="generar.php" method="get" target="Resultado">
<table width="315" border="0" align="center">
<tr>
<td width="96" height="25">Nombre</td>
<td width="209"><input name="Nombre" type="text" id="Nombre" style="font-family:Arial, Verdana, Helvetica;border:1px solid #333333;background-color:transparent;font-size:8pt;color:#ffffff;" size="40" />
<span style="margin-top: 0pt; margin-bottom: 0pt;">
<input name="S" id="i0011" type="submit" value="Crear" style="font-family:Arial, Verdana, Helvetica;border:1px solid #333333;background-color:transparent;font-size:8pt;color:#ffffff;"/>
</span></td>
</tr>
<tr>
<td colspan="2"><iframe src="default.php" name="Resultado" width="400" marginwidth="0" height="60" marginheight="1" scrolling="No" frameborder="no" id="Resultado" noresize="" padding="0"> </iframe></td>
</tr>
</table>
</form></td>
</tr>
</table>
</body>
</html>
Y el generar.php
<?php
header("Content-type: image/gif");
$datos=$_POST;
$Cadena = $datos['Nombre'];
$X = $datos['X'];
$Y = $datos['Y'];
$imagen = imagecreatefrompng("Nombre de una imagen png");
$ColorFondo=imagecolorallocate ($imagen, 0, 0, 0);
$ColorLetra=imagecolorallocate ($imagen, 255, 0, 0);
$TamanoLetra="16";
$Angulo="0";
$TipoLetra="visitor2.ttf";
imagettftext ($imagen, $TamanoLetra, $Angulo, "10", "10", $ColorLetra, $TipoLetra, $Cadena);
imagepng ($imagen);
imagedestroy($imagen);
?>
Y me pregunto como agregarle un menu despegable en el que segun la categoria que elijas te sale una userbar o otra.
Bueno expero haberme explicado bien xD
Nota: e visto que ay programas que generan sola la userbar (Era para informar xD)
Saludos