Hi ,
thank you! But there is a little problem. The JS makes this change in class:
class="play"
to
class="play pause"
and
class="play"
So I did this:
Code:
<script type="text/javascript">
$(document).ready(function() {
$(".play").toggle(
function()
{
$(this).removeClass("play");
$(this).addClass("pause");
},
function()
{
$(this).removeClass("pause");
$(this).addClass("play");
}
);
});
</script>
and CSS
Code:
<style type="text/css">
.play {
width: 30px;
height: 25px;
background: url("Dias/pause.gif") 0 0 no-repeat;
}
.pause {
background:url("Dias/play.gif") 0 0 no-repeat;
}
</style>
Now it changes the way it should. But the JS-Link doesn't work anymore. I can do this:
Code:
<div class="play"><a href="javascript:mygallery.navigate('playpause')">test</a></div>
or this
Code:
<a href="javascript:mygallery.navigate('playpause')"><div class="play">test</div></a>
May be the script above should be changed from class to id (getElementById)?
Bookmarks