diederikvanveen
Technical User
hi, have some issues regarding an image switch. I want 2 images to change depending on the state of my application. I have play en pause image, they should either on active/inactive. This is the code i have, but however results in an error. any hel would be much appriciated.
and for image itself:
Code:
<script type="text/javascript">
function PlayPauseFunc(imgref)
{
if (imgref.nameProp=='images_template/slideshow_pause.gif')
{
var res = document.VirtoolsATL.DoCommand('Pause');
imgref.nameProp='images_template/slideshow_play.gif';
} else
{
var res = document.VirtoolsATL.DoCommand('Play');
imgref.nameProp='images_template/slideshow_pause.gif';
}
}
and for image itself:
Code:
<img src="images_template/slideshow_pause.gif" onclick="PlayPauseFunc(this)">