+1
Answered
Overlaid avatar that says something different each time its loaded
My goal is to pockmark my site with a little '?' button that when clicked opens up my avatar in her overlaid format - but I'd like her to be able to say a different audio for each button. I've tried it using the sayAudio command, but since I'm not a programmer, I'm certain my syntax is off or something when I'm trying to call both the overlay and the sayAudio command simultaneously. If anybody knows how to accomplish this, I'd appreciate the help.
Customer support service by UserEcho
why not setup a different Scene for each one of the "?" buttons?
Your SitePal account supports unlimited Scenes - seems like the simplest solution.
Hope this helps
Gil
You would want to open your Scene initially in Min mode.
Then when user clicks "?" call overlayOpen - and sayText (or sayAudio) right after.
I don't have a relevant example handy - I'll see if I can find.
Gil
Also, I do not want it minimized. I only want the avatar to appear when a button is clicked, and then disappear when the audio is finished.
When I have 2 or more instances of an avatar needing to be overlayed on a page, the overlay javascript command controls both instances identically and only 1 audio file is spoken for both instances. So, does anybody know how to assign an ID or something to a particular avatar embed code so that the javascript overlay command affects only the overlay it is intended to?
we're looking to put together a working example for you.
will advise,
Gil
Please look at the example below. Please view the source code and look for the comments for how the desired behavior should be implemented
http://www.workboy.com/akhil/qm.html
Please feel free to send an email to- support@sitepal.com for any issues you are having.
Regards,
Akhil
Having multiple Scenes or Multiple api calls on a same page would cause JavaScript conflict.
Yes, the window closes by a timeout using the below function on the Embed page.
$(document).ready(function(){
var t=setTimeout("closeMe(1)",7000);
});
the '7000' in this instance is 7 seconds, you can set the time individually for each scene. to what you wish to have.
Please let me know if you have any questions.
Regards,
Akhil
Regards,
Akhil
I just checked the code again. We are using document.ready function, so the timer wont load until the scene is loaded- or the document within the frame is ready, and .swf does not buffer, so on a slow connection initiation will be slow, but the audio, wont cutoff.
$(document).ready(function(){
I will test and get back to you.
Regards,
Akhil
Thanks!
I have added a new parameter, that makes the background transparent.
Also, on the third scene, i have disabled closing of the scene by clicking outside the player.
Please clear cache and reload the page.
-Akhil
On another note, I've been tinkering with other ways to accomplish the goal I have. Lets say I start with a minimized avatar floating on the top left of the browser. And suppose I have small buttons on each page. Can those buttons be set to activate or 'maximize' the minimized avatar and invoke a sayText?
Jquery uses Javascript,
So my guess is that its blocking external JS files,which are used on the page. But I would like to see the calls that were made. thanks for your patience.
Ok I'll send an email when I get back from lunch.