src/chxj_chtml20.c
/**
 * It is a hanmarqueeer who processes the MARQUEE tag.
 *
 * @param pdoc  [i/o] The pointer to the CHTML structure at the output
 *                     destination is specified.
 * @param node   [i]   The MARQUEE tag node is specified.
 * @return The conversion result is returned.
 */
It is a hanmarqueeer who processes the MARQUEE tag.
@param pdoc  [i/o] The pointer to the CHTML structure at the output
destination is specified.
@param node   [i]   The MARQUEE tag node is specified.
@return The conversion result is returned.
It is a hanmarqueeer who processes the MARQUEE tag . @param pdoc [ i / o ] The pointer to the CHTML structure at the output destination is specified . @param node [ i ] The MARQUEE tag node is specified . @return The conversion result is returned .
static char *
s_chtml20_start_marquee_tag(void *pdoc, Node *node)
{
  chtml20_t *chtml20 = GET_CHTML20(pdoc);
  Doc       *doc = chtml20->doc;
  Attr      *attr;
  W_L("<marquee");
  for (attr = qs_get_attr(doc,node);
       attr;
       attr = qs_get_next_attr(doc,attr)) {
    char *name   = qs_get_attr_name(doc,attr);
    char *value  = qs_get_attr_value(doc,attr);
    if (STRCASEEQ('d','D',"direction", name)) {
      if (value && (STRCASEEQ('l','L',"left",value) || STRCASEEQ('r','R',"right",value))) {
        W_L(" direction=\"");
        W_V(value);
        W_L("\"");
      }
    }
    else if (STRCASEEQ('b','B',"behavior",name)) {
      if (value && (STRCASEEQ('s','S',"scroll",value) || STRCASEEQ('s','S',"slide",value) || STRCASEEQ('a','A',"alternate",value))) {
        W_L(" behavior=\""); 
        W_V(value);
        W_L("\"");
      }
    }
    else if (STRCASEEQ('l','L',"loop",name)) {
      if (value && *value) {
        W_L(" loop=\"");
        W_V(value);
        W_L("\"");
      }
    }
  }
  W_L(">");
  return chtml20->out;
}
static char * s_chtml20_start_marquee_tag ( void * pdoc , Node * node ) { chtml20_t * chtml20 = GET_CHTML20 ( pdoc ) ; Doc * doc = chtml20 -> doc ; Attr * attr ; W_L ( " " ) ; for ( attr = qs_get_attr ( doc , node ) ; attr ; attr = qs_get_next_attr ( doc , attr ) ) { char * name = qs_get_attr_name ( doc , attr ) ; char * value = qs_get_attr_value ( doc , attr ) ; if ( STRCASEEQ ( ' ' , ' ' , " " , name ) ) { if ( value && ( STRCASEEQ ( ' ' , ' ' , " " , value ) || STRCASEEQ ( ' ' , ' ' , " " , value ) ) ) { W_L ( " \" " ) ; W_V ( value ) ; W_L ( " \" " ) ; } } else if ( STRCASEEQ ( ' ' , ' ' , " " , name ) ) { if ( value && ( STRCASEEQ ( ' ' , ' ' , " " , value ) || STRCASEEQ ( ' ' , ' ' , " " , value ) || STRCASEEQ ( ' ' , ' ' , " " , value ) ) ) { W_L ( " \" " ) ; W_V ( value ) ; W_L ( " \" " ) ; } } else if ( STRCASEEQ ( ' ' , ' ' , " " , name ) ) { if ( value && * value ) { W_L ( " \" " ) ; W_V ( value ) ; W_L ( " \" " ) ; } } } W_L ( " " ) ; return chtml20 -> out ; }
It is a hanmarqueeer who processes the MARQUEE tag.
It is a hanmarqueeer who processes the MARQUEE tag .
/*--------------------------------------------------------------------------*/ /* Get Attributes                                                           */ /*--------------------------------------------------------------------------*/