Tags: html

Sort by: Date / Title /

  1. 3 months ago by eltupper
    1. DirectoryIndex first_index.html second_index.html third_index.html
    2. #if "first_index.html" does not found apache tries to find the next index ("second_index.html"), if the index lists ends apache
    3. # gives the 404 error.
    4. # sorry for my bad english, it's not my natal languaje
    5.  
    6. #si "first_index.html" no es encontrado muestra el proximo en la lista ("third_index.html"), si la lista se acaba da error 404
  2. 5 months ago by jacinmontava
    El parametro wmode puesto como transparent hara que los divs siempre esten por encima del objeto flash.
    1. <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="500" height="200" title="slip">
    2. <param name="movie" value="RUTA_ARCHIVO">
    3. <param name="quality" value="high">
    4. <param name="wmode" value="transparent"> <!-- este es el parametro que hara que los div's esten por encima del objeto flash -->
    5. <embed src="RUTA_ARCHIVO" width="500" height="200" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>
    6. </object>
  3. 5 months ago by eltupper and saved by 1 other
    it works in IE 5, 6, 7, and 8. for more info: http://code.google.com/p/ie7-js/ funciona en IE 5, 6, 7 y 8 para mas informacion: http://code.google.com/p/ie7-js/
    1. /*
    2. original: http://code.google.com/p/ie7-js/
    3. */
    4.     <!--[if lt IE 8]>
    5.     <script src="http://ie7-js.googlecode.com/svn/version/2.0(beta2)/IE8.js" type="text/javascript"></script>
    6.     <![endif]-->
    7. </head>
  4. 5 months ago by jacinmontava
    Teneis mas informacion en la pagina del autor del codigo. http://www.emezeta.com/articulos/youtube-estandar-con-xhtml-valido
    1. <object data="http://www.youtube.com/v/O0G7iKj6PS0" type="application/x-shockwave-flash" width="425" height="350"> <param name="quality" value="high" /> <param name="movie" value="http://www.youtube.com/v/O0G7iKj6PS0" /> <img border="0" src="/img/video.png" alt="Video (Objeto multimedia)" /> </object>
  5. 6 months ago by regoremor
    En el desarrollo de un sitio se crean carpetas reales o carpetas ficticias aplicando las URL Amigables, esto provoca que cuando se vinculan imágenes o enlaces internos hay que ir caminos atrás y luego caminos alante... Una solución a este problema es mediante la etiqueta <base> que especifica una URL base para todos los enlaces en una página.
    1. <!--La etiqueta <base> se coloca entre las estas etiquetas <head></head> -->
    2.  
    3. <!--<base href="http://www.dominio.com/" />-->
    4.  
    5. <base href="<?php echo 'http://'. $_SERVER['HTTP_HOST'].'/';?>" />
    6.  
    7. <!--Los enlaces se harían a partir de la raíz del sitio-->
    8.  
    9. <link href="/css/style.css" media="screen" rel="stylesheet" type="text/css" />
    10.  
    11. <img src="/imagenes/imagen.jpg" alt="texto alternativo" />
    12.  
    13. <a href="/paginas/enlace/" title="texto alternativo">Enlace</a>
  6. 6 months ago by yasakani
    Sencilla, pero util funcion para mostrar u ocultar una capa dentro de una pagina web con javascript. Hay que tener un poco de conocimientos de DOM y CSS.
    1. // MOSTRAR - OCULTAR
    2.        
    3. function mostrarOcultar(id) {
    4.         divID = document.getElementById(id);
    5.         if(divID.style.display == "")
    6.                 divID.style.display = "none";
    7.         else
    8.                 divID.style.display = "";
    9. }
    10.  
    11. // Enlace y Capa
    12.  
    13. <a href="#" onclick="mostrarOcultar('capa'); return false;">Mostrar-Ocultar</a>
    14. <div id="capa" style="display: none;">Contenido de la Capa.</div>
  7. 7 months ago by linuski
    testé sur FireFox2.0
    1. Supposons que vous ayez dans votre page html la déclaration suivante :
    2.  
    3. <object id='SvgView' data='/static/pictures/default.svg' type='image/svg+xml' width='1025' height='643'>
    4. </object>
    5.  
    6.  
    7. Du côté javascript, on a une fonction qui effectue le remplacement :
    8.  
    9. function displaySVG(fileName)
    10. {
    11.     var svgView  = document.getElementById("SvgView");
    12.     if (svgView)
    13.     {
    14.         // Récupère l'adresse complète de l'ancienne image
    15.         var  str = svgView.data.toString();
    16.         // Cherche le nom du fichier situé aprés l'adresse du serveur :
    17.         // on suppose que le format de str est du type  'http://192.168.122.56/pictures/truc/default.svg'
    18.         var  pos = str.indexOf('/', 7);
    19.         // Extraction de l'adresse du serveur
    20.         var  url = str.substring(0, pos);
    21.         // Remplace l'ancienne adresse par la nouvelle
    22.         Dom.replaceObjectData("SvgView", url + fileName);
    23.     }
    24. }
  8. sponsorised links
  9. 7 months ago by spawnrider
    Il reste encore des améliorations à faire...
    1. function html2txt($document){
    2.         $search = array('@<script[^>]*?>.*?</script>@si', // Strip out javascript
    3.         '@<style[^>]*?>.*?</style>@siU', // Strip style tags properly
    4.         '@<[?]php[^>].*?[?]>@si', //scripts php
    5.         '@<[?][^>].*?[?]>@si', //scripts php
    6.         '@<[\/\!]*?[^<>]*?>@si', // Strip out HTML tags
    7.         '@<![\s\S]*?--[ \t\n\r]*>@', // Strip multi-line comments including CDATA
    8.         );
    9.         $text = preg_replace($search, '', $document);
    10.         return $text;
    11. }
  10. 7 months ago by moifort and saved by 3 others
    Pour telecharger la piece "pngfix.js" aller sur le site: http://catinon.info/blog/2006/01/24/3-le-point-sur-les-png-transparent-sous-ie6.
    1. /* A ajouter entre les balise <head> */
    2. <!--[if lt IE 7]>
    3. <script defer type="text/javascript" src="pngfix.js"></script>
    4. <![endif]-->
  11. 7 months ago by xillon
    1. <span style="cursor: crosshair;">Viseur</span>
    2. <span style="cursor: pointer;">Main</span>
    3. <span style="cursor: wait;">Attente</span>
    4. <span style="cursor: help;">Point d'interrogation</span>
    5. <span style="cursor: text;">Texte</span>
    6. <span style="cursor: move;">Objet déplaçable</span>
    7. <span style="cursor: n-resize">Changer la taille vers le haut</span>
    8. <span style="cursor: s-resize">Changer la taille vers le bas</span>
    9. <span style="cursor: e-resize">Changer la taille vers la droite</span>
    10. <span style="cursor: w-resize">Changer la taille vers la gauche</span>
    11. <span style="cursor: ne-resize">Changer la taille haut+droite</span>
    12. <span style="cursor: nw-resize">Changer la taille haut+gauche</span>
    13. <span style="cursor: se-resize">Changer la taille bas+droite</span>
    14. <span style="cursor: nw-resize">Changer la taille bas+gauche</span>
    15. <span style="cursor: auto">Automatique (le navigateur décide)</span>
    16. <span style="cursor: default">Curseur par défaut</span>

First / Previous / Next / Last / Page 1 of 2 (12 posteets)