WebSite X5Help Center

 
Daniel G.
Daniel G.
User

WebAnimator JavaScript functions  pl

Autor: Daniel G.
Visited 901, Followers 1, Udostępniony 0  

Witam,

chciałbym umieścić plik graficzny, który po najechaniu myszką trochę się powiększy a po kliknięciu wejdzie w nowy link.

Robiąc zwykłą stronę html skrypt działa ale nie wiem jak można go umieścić w JavaScript functions

<script type="text/javascript">
var indexes = new Array();
function zoomIn(item) {
if(!indexes[item.attr('src')]) {
item.stop();
item.animate({
width: item.width() * 2 + 'px',
height: item.height() * 2 + 'px'
}, 1000, function() {
indexes[item.attr('src')] = true;
});
}
}
function zoomOut(item) {
if(indexes[item.attr('src')]) {
item.stop();
item.animate({
width: item.width() * 0.5 + 'px',
height: item.height() * 0.5 + 'px'
}, 1000, function() {
indexes[item.attr('src')] = false;
});
}
}
</script>

Posted on the
1 ODPOWIEDZI
Promise SA
Promise SA
Icm Partner

Witaj Daniel,

Zachęcam do zadawania pytań związanych z WebAnimator na dedykowanym forum: http://forum.webanimator.com/

Pozdrawiam

Czytaj więcej
Posted on the from Promise SA