1 del >
¿”; $directory = “testimages/”; si is_dir del && (de los file_exists ($directory) ($directory)){ $handle = opendir ($directory); ¡mientras que (($file = readdir ($handle))! == falso) { ¡si (! is_dir ($file)){ $ext = substr ($file, -3); si (== “jpg” de $ext || == “GIF” de $ext || == “png” de $ext) { $xml. = “”; $xml. = “”. $file. “”; $xml. = “image caption”; $xml. = “”; } } } } $xml. = “”; eco $xml; código " claro " de >html/jquery del class= de
type= " texto/Javascript " del " Javascript " del language= del id= " testxml " del el class= >this de
¡función (texto) {si (texto del typeof! ¡texto del && del “objeto” del ==! = falta de información) this.empty de vuelta () .append ((este [0] && este [0] .ownerDocument || documento) .createTextNode (texto)); el var enría = ""; jQuery.each (texto || ¡esto, función () {jQuery.each (this.childNodes, función () {si (this.nodeType! ¡= 8) enría += this.nodeType! ¿= 1? this.nodeValue: jQuery.fn.text ([esto]); }); }); volver enrían; ¡} función (texto) {si (texto del typeof! ¡texto del && del “objeto” del ==! = anular) this.empty de vuelta () .append ((este [0] && este [0] .ownerDocument || documento) .createTextNode (texto)); class= > de
1:
nombre de fichero del var = $ (éste) .find (“nombre de fichero”) .text ();