Ver Mensaje Individual
  #1 (permalink)  
Antiguo 14/05/2010, 13:47
esaenz22
(Desactivado)
 
Fecha de Ingreso: abril-2008
Mensajes: 787
Antigüedad: 17 años
Puntos: 7
Pregunta problema con el highslide youtube

buenas. implemente el highslide en un proyecto. en el proyecto he implementado la galeria y el popup para el video de youtube. de la galeria del highslide me funciona, pero para ver el video youtube no me funciona.

me muestra el siguiente error.

Código QUOTE:
Ver original
  1. hs.htmlExpand is not a function.

este es mi codigo.

Código HTML:
Ver original
  1. <!--
  2.     1 ) Reference to the files containing the JavaScript and CSS.
  3.     These files must be located on your server.
  4. -->
  5.  
  6. <script type="text/javascript" src="highslide/highslide-with-gallery.js"></script>
  7. <script type="text/javascript" src="highslide/highslide-with-html.js"></script>
  8. <script type="text/javascript" src="js/swfobject.js"></script>
  9. <link rel="stylesheet" type="text/css" href="highslide/highslide.css">
  10. <!--[if lt IE 7]>
  11. <link rel="stylesheet" type="text/css" href="highslide/highslide-ie6.css" />
  12. <![endif]-->
  13.  
  14.  
  15. <!--
  16.    2) Optionally override the settings defined at the top
  17.    of the highslide.js file. The parameter hs.graphicsDir is important!
  18. -->
  19.  
  20. <script type="text/javascript">
  21. hs.graphicsDir = 'highslide/graphics/';
  22. hs.align = 'center';
  23. hs.transitions = ['expand', 'crossfade'];
  24. hs.fadeInOut = true;
  25. hs.dimmingOpacity = 0.8;
  26. hs.outlineType = 'rounded-white';
  27. hs.outlineWhileAnimating = true;
  28. hs.allowSizeReduction = false;
  29. // always use this with flash, else the movie will be stopped on close:
  30. hs.preserveContent = false;
  31. hs.wrapperClassName = 'draggable-header no-footer';
  32. hs.captionEval = 'this.thumb.alt';
  33. hs.marginBottom = 105; // make room for the thumbstrip and the controls
  34. hs.numberPosition = 'caption';
  35.  
  36. // create a shorthand function so we don't need to put all this in the opener's onclick
  37. function openYouTube(opener) {
  38.     var returnValue;
  39.    
  40.     // Safari Mobile doesn't have Flash, so we just let the device use the built-in
  41.     // YouTube viewer.
  42.     if (/(iPhone|iPod|iPad)/.test(navigator.userAgent)) returnValue = true;
  43.  
  44.     else returnValue = hs.htmlExpand(opener, {
  45.         objectType: 'swf',
  46.         objectWidth: 480,
  47.         objectHeight: 385,
  48.         width: 480,
  49.         swfOptions: {
  50.             params: {
  51.                 allowfullscreen: 'true'
  52.             }
  53.         },
  54.         maincontentText: 'You need to upgrade your Flash player'
  55.     });
  56.    
  57.     return returnValue;
  58. }  
  59.  
  60. // Add the slideshow providing the controlbar and the thumbstrip
  61. hs.addSlideshow({
  62.     //slideshowGroup: 'group1',
  63.     interval: 5000,
  64.     repeat: false,
  65.     useControls: true,
  66.     overlayOptions: {
  67.         className: 'text-controls',
  68.         position: 'bottom center',
  69.         relativeTo: 'viewport',
  70.         offsetY: -60
  71.     },
  72.     thumbstrip: {
  73.         position: 'bottom center',
  74.         mode: 'horizontal',
  75.         relativeTo: 'viewport'
  76.     }
  77. });

Última edición por esaenz22; 14/05/2010 a las 14:00 Razón: correccion.