TimFA
12-20-2007, 06:09 PM
I made a script that simply onMouseOver started timers to make a message, with a second to erase it. Problem is it can be activated multiple times and cause issues. I tried many different configurations with same result. I tried the if and else commands to check a hidden field, and the clearTimeout(t) but it wouldn't clear, I tried that on the onMouseOut portion so that when it goes out it clears and then starts up the going in process if the first part had worked I would've had more problems, but it was worth a shot. I know the script is clunky and not very well made, I'm sure with math I could use the message and generate a variable set for each letter or something and have it tack it on, but I suck at JavaScript. Anyways here it is:
function startOpen()
{
t=setTimeout("makeTxt('slogan_holder','(())')",10)
t=setTimeout("makeTxt('slogan_holder','((F))')",60)
t=setTimeout("makeTxt('slogan_holder','((Fsdf))')",110)
t=setTimeout("makeTxt('slogan_holder','((Fsdfs))')",160)
t=setTimeout("makeTxt('slogan_holder','((Fsdf)')",210)
t=setTimeout("makeTxt('slogan_holder','((Fsdf)')",260)
t=setTimeout("makeTxt('slogan_holder','(d')",310)
t=setTimeout("makeTxt('slogan_holder','w.e')",360)
t=setTimeout("makeTxt('slogan_holder','')",410)
t=setTimeout("makeTxt('slogan_holder','(')",460)
t=setTimeout("makeTxt('slogan_holder','()')",510)
t=setTimeout("makeTxt('slogan_holder','(()')",560)
t=setTimeout("makeTxt('slogan_holder','((m))')",610)
t=setTimeout("makeTxt('slogan_holder','((mm))')",660)
t=setTimeout("makeTxt('slogan_holder','((mmm))')",710)
t=setTimeout("makeTxt('slogan_holder','((mmmm))')",760)
t=setTimeout("makeTxt('slogan_holder','((mmmmm))')",810)
t=setTimeout("makeTxt('slogan_holder','((mmmmmm))')",860)
t=setTimeout("makeTxt('slogan_holder','((mmmmmmm))')",910)
t=setTimeout("makeTxt('slogan_holder','((mmmmmmmm))')",960)
t=setTimeout("makeTxt('slogan_holder','((mmmmmmmmm))')",1010)
t=setTimeout("makeTxt('slogan_holder','((mmmmmmmmmm))')",1060)
t=setTimeout("makeTxt('slogan_holder','((mmmmmmmmmmm))')",1110)
t=setTimeout("makeTxt('slogan_holder','((mmmmmmmmmmmm))')",1160)
t=setTimeout("makeTxt('slogan_holder','((mmmmmmmmmmmmm))')",1210)
t=setTimeout("makeTxt('slogan_holder','((mmmmmmmmmmmmmm))')",1260)
t=setTimeout("makeTxt('slogan_holder','((mmmmmmmmmmmmmmm))')",1310)
t=setTimeout("makeTxt('slogan_holder','((mmmmmmmmmmmmmmmm.))')",1360)
}
And the close is the opposite, note that makeTxt is separate. And that clearly that is not what I want written out...
Thanks for the help guys,
Tim
function startOpen()
{
t=setTimeout("makeTxt('slogan_holder','(())')",10)
t=setTimeout("makeTxt('slogan_holder','((F))')",60)
t=setTimeout("makeTxt('slogan_holder','((Fsdf))')",110)
t=setTimeout("makeTxt('slogan_holder','((Fsdfs))')",160)
t=setTimeout("makeTxt('slogan_holder','((Fsdf)')",210)
t=setTimeout("makeTxt('slogan_holder','((Fsdf)')",260)
t=setTimeout("makeTxt('slogan_holder','(d')",310)
t=setTimeout("makeTxt('slogan_holder','w.e')",360)
t=setTimeout("makeTxt('slogan_holder','')",410)
t=setTimeout("makeTxt('slogan_holder','(')",460)
t=setTimeout("makeTxt('slogan_holder','()')",510)
t=setTimeout("makeTxt('slogan_holder','(()')",560)
t=setTimeout("makeTxt('slogan_holder','((m))')",610)
t=setTimeout("makeTxt('slogan_holder','((mm))')",660)
t=setTimeout("makeTxt('slogan_holder','((mmm))')",710)
t=setTimeout("makeTxt('slogan_holder','((mmmm))')",760)
t=setTimeout("makeTxt('slogan_holder','((mmmmm))')",810)
t=setTimeout("makeTxt('slogan_holder','((mmmmmm))')",860)
t=setTimeout("makeTxt('slogan_holder','((mmmmmmm))')",910)
t=setTimeout("makeTxt('slogan_holder','((mmmmmmmm))')",960)
t=setTimeout("makeTxt('slogan_holder','((mmmmmmmmm))')",1010)
t=setTimeout("makeTxt('slogan_holder','((mmmmmmmmmm))')",1060)
t=setTimeout("makeTxt('slogan_holder','((mmmmmmmmmmm))')",1110)
t=setTimeout("makeTxt('slogan_holder','((mmmmmmmmmmmm))')",1160)
t=setTimeout("makeTxt('slogan_holder','((mmmmmmmmmmmmm))')",1210)
t=setTimeout("makeTxt('slogan_holder','((mmmmmmmmmmmmmm))')",1260)
t=setTimeout("makeTxt('slogan_holder','((mmmmmmmmmmmmmmm))')",1310)
t=setTimeout("makeTxt('slogan_holder','((mmmmmmmmmmmmmmmm.))')",1360)
}
And the close is the opposite, note that makeTxt is separate. And that clearly that is not what I want written out...
Thanks for the help guys,
Tim