Posted By

chiesalo on 02/10/10


Tagged

FAV


Versions (?)

sIFR 2.0 (Scalable Inman Flash Replacement)


 / Published in: JavaScript
 

URL: http://www.mikeindustries.com/blog/sifr

  1. *** HTML | Head ***
  2. <script type="text/javascript" language="javascript" src="js/sifr.js"></script>
  3.  
  4. *** HTML | Body ***
  5. <h2>Nombre de la sección / Section name</h2>
  6. <h3>Nombre de la subsección / Subsection name</h3>
  7.  
  8. *** HTML | Antes de cerrar Body / Before closing Body ***
  9. <script type="text/javascript">
  10. //<![CDATA[
  11. if(typeof sIFR == "function"){
  12. // This is the preferred "named argument" syntax
  13. sIFR.replaceElement(named({sSelector:"body h2", sFlashSrc:"titulosSeccion.swf", sColor:"#9c2828", sLinkColor:"#000000", sBgColor:"#FFFFFF", sHoverColor:"#CCCCCC", sWmode:"transparent"}));
  14. sIFR.replaceElement(named({sSelector:"body h3", sFlashSrc:"titulosSeccion.swf", sColor:"#060000", sLinkColor:"#000000", sBgColor:"#FFFFFF", sHoverColor:"#CCCCCC", sWmode:"transparent"}));
  15. }
  16. //]]>
  17. </script>

Report this snippet  

You need to login to post a comment.