Ver Mensaje Individual
  #4 (permalink)  
Antiguo 23/11/2009, 14:22
Avatar de lukas4
lukas4
 
Fecha de Ingreso: octubre-2008
Ubicación: frente al pc
Mensajes: 496
Antigüedad: 15 años, 6 meses
Puntos: 12
Respuesta: Imprimir el fondo de esta linea de tiempo

de hecho, la informacion se saca de un XML, y en el XML viene el color de cada barrita.

Ejemplo:
Código XML:
Ver original
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <data>
  3.     <event start="May 28 2006 09:00:00 GMT" end="Jun 15 2006 09:00:00 GMT" isDuration="true" title="Writing Timeline documentation"  trackMum="7" textColor="#000000">
  4.  
  5.         A few days to write some documentation for <a href="http://simile.mit.edu/timeline/">Timeline</a>.
  6.        
  7.     </event>
  8.    
  9.     <event start="Jun 15 2006 00:00:00 GMT" end="Jun 26 2006 00:00:00 GMT" isDuration="true" title="Friend's wedding" trackNum="1" color="FFFFF">
  10.  
  11.         I'm not sure precisely when my friend's wedding is.
  12.        
  13.     </event>
  14.    
  15.     <event start="Jun 26 2006 00:00:00 GMT" end="Aug 01 2006 00:00:00 GMT" isDuration="true" title="Trip to Beijing" link="http://travel.yahoo.com/" trackNum="2" color="#eb0b0b">
  16.         Woohoo!
  17.     </event>
  18.     <event start="Aug 01 2006 00:00:00 GMT" end="Aug 03 2006 00:00:00 GMT" isDuration="true" title="titulo 4 bien grandototototote" trackNum="3" color="#0b11ef">
  19.         evento 4
  20.     </event>
  21.     <event start="Aug 03 2006 00:00:00 GMT" end="Aug 06 2006 00:00:00 GMT" isDuration="true" title="titulo 5 bien grandototototote" trackNum="4" color="#0bef4c">
  22.         evento 5
  23.     </event>
  24. </data>
el color se asigna en el tag de color.

Última edición por lukas4; 23/11/2009 a las 14:36