Using jQuery, I’m initially hiding an element on DOM ready and showing/
hiding it onclick. The element contains an mp3 audio file/controller
that auto-plays as soon as the element is shown:
$(document).ready(function() {
$('#controller').hide();
$('a#movie').click(function() {
$('#controller').toggle();
return false;
});
});
Everything is peachy.
What I would like to happen is that when the mp3 is finished at 01:07
a js function would fire that hides the element again.
For kicks I embedded a standard href/url track into the mp3 that
simply reloaded the page. It works fine but there’s no sense in
reloading an entire page for one element.
Next I tried embedding the js to hide just the element:
$(document).ready(function() {
$('#controller').hide();
});
Here’s the final embedded track:
{QTtext}{font:Geneva}{plain}{size:12}{textColor: 65535, 65535, 65535}
{backColor: 0, 0, 0}{justify:center}{timeScale:1000}{width:160}{height:
48}{timeStamps:absolute}{language:0}{textEncoding:0}
[00:00:00.000]
{textBox: 0, 0, 50, 160}[00:01:070.00]
[00:00:58.000]
{textBox: 0, 0, 50, 160}A<$(document).ready(function() {
[00:00:58.000]
{textBox: 0, 0, 50, 160} $('#controller').hide();
[00:00:58.000]
{textBox: 0, 0, 50, 160} });> T<_self>
[00:01:07.000]
But instead of hiding the element it’s looking for a page.
I’m using this Apple tut <http://www.apple.com/quicktime/tutorials/hreftracks.html
Ideas?
Todd
dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options