Hola a todos
Tengo el siguiente problema:
estoy haciendo una web que el ejemplo es este:
http://www.fococomunicacion.com.ar/clientes/estudiosintaxis/demo/
Este efecto se hace con los siguientes javascipt
Código:
<script type="text/javascript" src="js/jquery-1.3.1.min.js"></script>
<script type="text/javascript" src="js/jquery.scrollTo.js"></script>
<script>
$(document).ready(function() {
$('area.panel').click(function () {
$('area.panel').removeClass('selected');
$(this).addClass('selected');
current = $(this);
$('#wrapper').scrollTo($(this).attr('href'), 800);
return false;
});
$(window).resize(function () {
resizePanel();
});
});
function resizePanel() {
width = $(window).width();
height = $(window).height();
mask_height = height * $('.item').length;
$('#debug').html(width + ' ' + height + ' ' + mask_height);
// $('#wrapper, .item').css({width: width, height: height});
// $('#mask').css({width: width, height: mask_height});
$('#wrapper').scrollTo($('area.selected').attr('href'), 0);
}
</script>
Pero el tema es el siguiente: necesito hacer unas galerias y algunas cosas en varias de las placas en flash ... he hecho botones iguales que ne el html ... y funciona bien, pero no se anima.
Un boton en HTML lo tengo asi:
<area shape="rect" coords="118,207,541,263" href="#item1" class="panel">
y en el flash asi:
home_btn.onRelease = function(){ getURL("#item1");}
Por lo que entiendo el problema esta en que no tengo el "class="panel"" en el flash .......
Entonces: que tendria que cambiar en el javascript para poder hacerlo funcionar?!?!
Muchisimas gracias a todos!!!