As some of you know, using the clear screen function causes the online player to undo any CSS rules.
To try and get around that I thought about using a 0 opacity.
What I want to do is have my title image fade-in, wait for a key press, then move the player to the first room after first hiding the title image with opacity.
Here's what I have so far (forget the first two lines of JS - they're for something else):
JS.eval ("getCSSRule('a.cmdlink').style.color='#000000'")
JS.setCommandBarStyle (GetCurrentTextFormat("") + ";border:" + game.defaultbackground)
OutputTextNoBr (game.css)
OutputTextNoBr ("<img src=\"" + GetFileURL("aftermath_title.jpg") + "\" id=\"titleimage\" onload=\"$(this).fadeIn(7000);\">")
wait {
if (game.lastoutputsection > 1) {
JS.eval ("$('.section"+(game.lastoutputsection-1)+"').css('opacity', '0');")
MoveObject (player, room)
}
}
I don't get any errors on this, but all that happens after I key press, is that the flashing cursor shows up waiting for a command. The title image doesn't disappear and I don;t get a description for my first room (in fact I don;t think it;s moving me)