\n');
}
//-->
function Pink_Record_Image_DoFSCommand(command, args) {
//alert("FSCommand: " + " " + command + " " + args);
if (command == "change_bg_color") {
}
}
//////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////
var sendReq = getXmlHttpRequestObject();
var receiveReq = getXmlHttpRequestObject();
var lastMessage = 0;
var mTimer;
//Function for initializating the page.
function startChat() {
//Set the focus to the Message Box.
document.getElementById('txt_message').focus();
//Start Recieving Messages.
getChatText();
}
//Gets the browser specific XmlHttpRequest Object
function getXmlHttpRequestObject() {
if (window.XMLHttpRequest) {
return new XMLHttpRequest();
} else if(window.ActiveXObject) {
return new ActiveXObject("Microsoft.XMLHTTP");
} else {
document.getElementById('p_status').innerHTML = 'Status: Cound not create XmlHttpRequest Object. Consider upgrading your browser.';
}
}
//Gets the current messages from the server
function getChatText() {
if (receiveReq.readyState == 4 || receiveReq.readyState == 0) {
receiveReq.open("GET", 'getChat.php?chat=1&last=' + lastMessage, true);
receiveReq.onreadystatechange = handleReceiveChat;
receiveReq.send(null);
}
}
//Add a message to the chat server.
function sendChatText() {
if(document.getElementById('txt_message').value == '') {
//alert("You have not entered a message");
return;
}
if (sendReq.readyState == 4 || sendReq.readyState == 0) {
sendReq.open("POST", 'getChat.php?chat=1&last=' + lastMessage, true);
sendReq.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
sendReq.onreadystatechange = handleSendChat;
var param = 'message=' + document.getElementById('txt_message').value;
param += '';
param += '&name=Visitor:';
param += '&chat=1';
param += '';
sendReq.send(param);
document.getElementById('txt_message').value = '';
}
}
//When our message has been sent, update our page.
function handleSendChat() {
//Clear out the existing timer so we don't have
//multiple timer instances running.
clearInterval(mTimer);
getChatText();
}
//Function for handling the return of chat text
function handleReceiveChat() {
if (receiveReq.readyState == 4) {
var chat_div = document.getElementById('div_chat');
var xmldoc = receiveReq.responseXML;
var message_nodes = xmldoc.getElementsByTagName("message");
var n_messages = message_nodes.length
for (i = 0; i < n_messages; i++) {
var user_node = message_nodes[i].getElementsByTagName("user");
var text_node = message_nodes[i].getElementsByTagName("text");
var time_node = message_nodes[i].getElementsByTagName("time");
chat_div.innerHTML += user_node[0].firstChild.nodeValue + ' ';
chat_div.innerHTML += '
';
chat_div.innerHTML += text_node[0].firstChild.nodeValue + '
';
chat_div.scrollTop = chat_div.scrollHeight;
lastMessage = (message_nodes[i].getAttribute('id'));
}
mTimer = setTimeout('getChatText();',2000); //Refresh our chat in 2 seconds
}
}
//This functions handles when the user presses enter. Instead of submitting the form, we
//send a new message to the server and return false.
function blockSubmit() {
sendChatText();
return false;
}
//This cleans out the database so we can start a new chat session.
function resetChat() {
if (sendReq.readyState == 4 || sendReq.readyState == 0) {
sendReq.open("POST", 'getChat.php?chat=1&last=' + lastMessage, true);
sendReq.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
sendReq.onreadystatechange = handleResetChat;
var param = 'action=reset';
sendReq.send(param);
document.getElementById('txt_message').value = '';
}
}
//This function handles the response after the page has been refreshed.
function handleResetChat() {
document.getElementById('div_chat').innerHTML = '';
getChatText();
}
![]() |
|
![]() |
( Keywords: Seattle Web Design Seattle Web Development . Seattle CDROM )
Seattle Web Design | Seattle Web Development | Seattle CDROM
Design
Welcome to my web site.
I am a new media designer and developer. In other words I build and market
web sites, CDROMs, Streaming Media, and .net applications. The Internet
is highly competitive. Many companies and designers would tell you that
online success is fast and simple. The truth is that it requires time,
technology and resources to create a profitable web site. I have three
goals for every client site:
- fulfill client expectations
- create an interesting and dynamic image for the client
- create a site that draws customers (one that can be easily found in
search engines)
A successful web site is easy to use, elegant in design and listed at
the top of search engines. I developed my skills through 8 years of work
with several of the top names in the industry. I worked as a Microsoft
contractor in both the Windows Media Group and the .net Framework Group.
I ran a small streaming media development comp any called OverDrive Media.
I am lucky to have worked and gained experience with so many Fortune 500
companies. I have a broad list of skills including graphic design, web
design, CDROM development, streaming media design, technical writing,
technical marketing and business development.
Seattle Web Development:
I am an expert in HTML, DHTML, JavaScript, JScript, VBScript, VB.net and
PHP. I have created sites for top names in the Entertainment, Digital
Media, Tech and Training Industries. I provide both front end and back
end development along with DataBase integration and Marketing Placement.
I contracted for two
years in the Windows Media Group at Microsoft and in the .net framework
group.
Seattle Web Design: The
web is a fusion of technology and art. A technically advanced web sites
can not attract customer unless it easy to use and well designed. I have
a degree in Graphic Design from Indiana University and 8 years of design
experience.
Seattle CDROM Development:
The CDROM is a great tool for
Marketing and Distribution of Applications. I have produced and developed
six CDROMs over the last 5 years, including the Windows 2000 Training
CD, Encoding.com Marketing CD, and a techncial training CD for WatchIT.