I must admit that I didn't quite understand your question. But if you want 
to know how to replace the "Pause/Play" button with a "Replay" button, the 
code you gave might work, if you change your html a bit. Instead of:

<input type="button" value="Play" onclick="toggleAnimation(dd)" 
id="togglepause" />

You would need to have something like

<div id="togglepause"><input type="button" value="Play" 
onclick="toggleAnimation(dd)" id="togglebutton" /></div>

Now the innerHTML of the togglepause object represents the button for the 
user, thus your code lines will replace the old button with the new one. But 
remember to edit the toggleAnimation() method acordingly as you replace the 
("togglepause").value attribute in there. Now it would be 
("togglebutton").value!


-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to