Register

Javascript event example with Sitepal

General Tips & Tricks
Site Admin
User avatar
Posts: 1072
Joined: Fri May 26, 2006 3:15 pm
Location: San Jose, CA

Javascript event example with Sitepal

Postby James » Fri Oct 09, 2009 11:02 am

Here is a sample I created using the http://www.sitepal.com/ API that calls different voices using the OnClick>Javascript tied
to a button.

Here is sample Javascript code I used:

Code: Select all
sayText(window.document.sitepal_tts_test.viewletGetVariable("CURRENT_SLIDE_NOTES"),11,1,4);


http://www.viewletcentral.com/vc/viewlet/395510724/

Sitepal/Oddcast has some of the best streaming Flash avatars. For this to work I adding some code to the HTML frame that loaded the
Avatar as a 1px by 1 px movie so it was invisible to the user. This allows me to communicate with it using the javascript API.

James

Return to FAQs - ViewletBuilder 6.x

Who is online

Users browsing this forum: No registered users and 1 guest