|
// BrowserSpeak
//
// by Mark Gladding
// Copyright 2009 Tumbywood Software
// http://www.text2go.com
//
// You are free to reuse this code in any commercial or non-commercial work.
//
// A bookmarklet to send a resumespeaking command to the BrowserSpeak application.
var server = "localhost:60024"; // Change the port number for your app to something unique.
_resumeSpeaking();
void 0; // Return from bookmarklet, ensuring no result is displayed.
function _resumeSpeaking()
{
var image = new Image(1,1);
image.onerror = function() { _showerror(); };
image.src = _formatCommand("resumespeaking");
}
function _formatCommand(command)
{
return "http://" + server + "/" + command + "/dummy.gif" + "?timestamp=" + new Date().getTime();
}
function _showerror()
{
// Display the most likely reason for an error
alert("BrowserSpeak is not running. You must start BrowserSpeak first.");
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.