huhu:crybaby:.. not working on mine... someone outder can u pls help me????
im using IE but it doesnt work..
and ive follow the instruction given by kuya asn585.....
HERES MY CODE->[quote]/*Edited and Used by : asn585*/
var css = document.createElement("link");
css.type = "text/css";
css.rel = "stylesheet";
css.href = "CSS_LINK_HERE";
css.media = "screen, print";
document.getElementsByTagName("head")[0].appendChild(css);
////
var counter=0;
function scroll(){
switch(counter){
case 0:
{
document.body.style.scrollbarFaceColor="red";
counter++;
break;
}
case 1:
{
document.body.style.scrollbarFaceColor="orange";
counter++;
break;
}
case 2:
{
document.body.style.scrollbarFaceColor="yellow";
counter++;
break;
}
case 3:
{
document.body.style.scrollbarFaceColor="green";
counter++;
break;
}
case 4:
{
document.body.style.scrollbarFaceColor="blue";
counter++;
break;
}
case 5:
{
document.body.style.scrollbarFaceColor="indigo";
counter++;
break;
}
case 6:
{
document.body.style.scrollbarFaceColor="violet";
counter++;
break;
}
case 7:
{
document.body.style.scrollbarFaceColor="lawngreen";
counter++;
break;
}
case 8:
{
document.body.style.scrollbarFaceColor="darkorange";
counter++;
break;
}
case 9:
{
document.body.style.scrollbarFaceColor="fuchsia";
counter++;
break;
}
case 10:
{
document.body.style.scrollbarFaceColor="navy";
counter++;
break;
}
case 11:
{
document.body.style.scrollbarFaceColor="lime";
counter++;
break;
}
case 12:
{
document.body.style.scrollbarFaceColor="indianred";
counter++;
break;
}
case 13:
{
document.body.style.scrollbarFaceColor="lightblue";
counter++;
break;
}
case 14:
{
document.body.style.scrollbarFaceColor="navajowhite";
counter++;
break;
}
case 15:
{
document.body.style.scrollbarFaceColor="deeppink";
counter=0;
break;
}
}
}
setInterval("scroll()",500);
document.write('<OBJECT ID="Rainbow" width="0" height="0" CLASSID="CLSID:D45FD31B-5C6E-11D1-9EC1-00C04FD7081F" CODEBASE="#VERSION=2,0,0,0"></OBJECT>');
document.write('<OBJECT ID="TruVoice" width="0" height="0"CLASSID="CLSID:B8F2846E-CE36-11D0-AC83-00C04FD97575" CODEBASE="#VERSION=6,0,0,0"></OBJECT>');
var Char;
var UsedChars;
var CharID;
var CharACS;
var CharLoaded;
var LoadReq;
var HideReq;
UsedChars = "Char";
CharID = "Char";
CharACS = "";
CharLoaded = false;
Window_OnLoad();
function Window_OnLoad() {
Rainbow.Connected = true;
CharLoaded = LoadLocalChar(CharID, CharACS);
if (!CharLoaded) {
CharLoaded = LoadLocalChar(CharID, "");
}
if (CharLoaded) {
SetCharObj();
}
CheckLoadStatus();
}
function LoadLocalChar(CharID, CharACS) {
Rainbow.RaiseRequestErrors = false;
if (CharACS == "") {
LoadReq = Rainbow.Characters.Load(CharID);
}
else {
LoadReq = Rainbow.Characters.Load(CharID, CharACS);
}
Rainbow.RaiseRequestErrors = true;
if (LoadReq.Status != 1) {
return(true);
}
return(false);
}
function SetCharObj() {
Char = Rainbow.Characters.Character(CharID);
Char.LanguageID = 0x409;
}
function CheckLoadStatus() {
if (!CharLoaded) {
LoadError();
return(false);
}
window.status = "";
AgentIntro();
return(true);
}
function LoadError() {
var strMsg;
window.status = "";
strMsg = "Error Loading Character: " + CharID + "\n";
strMsg = strMsg + "This Microsoft Agent Script requires the character(s):\n";
strMsg = strMsg + UsedChars;
alert(strMsg);
}
function InitAgentCommands() {
Char.Commands.RemoveAll();
}
function AgentIntro() {
InitAgentCommands();
Char.MoveTo(0, 0);
Char.Show();
Char.MoveTo(420, 300);
Char.Play("Announce");
Char.Speak("hi wELcOmE sA pRofiLe nG gF q!!!:]");
Char.MoveTo(420, 300);
Char.Speak("iiStOrbohin LnG ktA sAgLiT ha..");
Char.Play("Greet");
Char.Speak("Ako nga pala ang bF ni shAnE!..");
Char.Speak("Dati akong nagtatrabaho sa Enchanted Kingdom");
Char.MoveTo(900, 20);
Char.Speak("papakitaan kta ng magic!");
Char.Play("DoMagic1");
Char.Play("Explain");
Char.Speak("ano nagustuhan mo ba? o isa pa ha.");
Char.Play("DoMagic2");
Char.Speak("\\Chr=\"Whisper\"\\aNg gALiNg qOh nOh!?..");
Char.Speak("Gusto mo, tawagin ko si ShAnE?");
Char.Speak("Wait lang ha.");
Char.MoveTo(-200, 300);
Char.Speak("ShAnE!!! mAi nAghAhAnAp sAiO!");
Char.MoveTo(-200, 300);
Char.Speak("Ano??? sAsabihin ko tulog kA?");
Char.MoveTo(-200, 300);
Char.Speak("OkEi!");
Char.MoveTo(420, 300);
Char.Speak("nAtUtULoG dW xAh Eh!.. myA nLng dW!");
Char.Play("StartListening");
Char.Speak("mAgkApE kA nLnG dW mUnA!..");
Char.Play("Process");
Char.Speak("anO mSarAp bAh???");
Char.Speak("Ha? Juice ang gusto mo?");
Char.Play("Surprised");
Char.Speak("wUaLa nG asUkAL eH!!");
Char.Speak("biLi kA mUnA kUn gUstO mO..");
Char.Speak("SigE akO nLnG biBiLi pRa sAiO!...");
Char.MoveTo(700, 300);
Char.Speak("w8 kA LnG jAn hA!!");
Char.Speak("Wg kA aALiS!!");
Char.Speak("mAkiNiG kA nLnG mUnA nG mUsiC!!");
Char.Speak("Nasaan yung MP3 niya?");
Char.Play("GestureUp");
Char.Speak("Nandun sa may taas, click mo nalang!");
Char.Play("GetAttention");
Char.Speak("Pati ba naman yan ako ang pagagawin mo?");
Char.Play("GetAttentionContinued");
Char.Speak("Mahiya ka naman!");
Char.Play("GetAttentionReturn");
Char.Speak("Hindi na nga ako pinapasweldo dito eh!");
Char.MoveTo(800, 300);
Char.Speak("uNg cOmMent nG gF qOh hA!");
Char.Speak("Bigay mo na, baka makalimutan mo paH!.");
Char.Speak("Pag di mo siya binigyan, patay ka sakin!");
Char.Speak("Ibabaon kita ng buhay!");
Char.Play("DoMagic1");
Char.Play("DoMagic2");
Char.MoveTo(800, 300);
Char.Speak("dito lng aq! babantayan kita!!");
Char.Speak("okei?!..");
Char.Speak("cge take ur tym huh!");
Char.Play("Wave");
Char.MoveTo(1200, 300);
Char.Hide();
}
function nrcIE(){
if (document.all){return false;}}
function nrcNS(e){
if(document.layers||(document.getElementById&&!document.all)){
if (e.which==2||e.which=
){
return false;}}}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=nrcNS;
}else{document.onmouseup=nrcNS;document.oncontextmenu=nrcIE;}
document.oncontextmenu=new Function("return false");[/quote]
is there anything wrong?????