Non-threaded

Forums » Advanced Editor Forum » Read Thread

Get help from the experts on variables, scripts, items, and other scary things.

Background Images

10 years ago

So, I was trying two of the methods described here.

However, neither seems to work. Putting HTML directly into the story box doesn't seem to have any effect (even if I insert it in source view). I wonder if this is because the article is old and HTML has changed? Are you actually allowed to change the body tag at that point on a page? Or am I just doing it wrong?

Background Images

10 years ago

When I first read the article (several months ago) it worked fine for me.  Now, I don't know what's happened.  I can't get it to work either, with or without the RTE disabled...

@the_quiller @nmelssx @Killa_Robot @BradinDvorak

Background Images

10 years ago

And I tried adding the background with internal style sheets, but that code gets stripped out, too, darn it!

Background Images

10 years ago

Oh wait, I found one way to make it work -- you CAN put an internal style sheet into a global script. I haven't worked out a way to make it only change one page background, but that will allow you to change every page's background.

Background Images

10 years ago
I don't understand style sheets, but someone here is bound to be able to help. Good Luck.

Background Images

10 years ago
How about using the individual page scripts instead of the global script.

Background Images

10 years ago

Either this or using $PAGEID in the global script. The rich text editor tends to delete script and style tags, unfortunately, so unless you switch to plain text, these are the best options.

Background Images

10 years ago

Yes, thank you for mentioning that.

Ogre, be sure to turn RTE off in your profile settings. Doing so allows you more easily to integrate HTML, CSS, and JS into your game.

Background Images

10 years ago

Aha! Will do, thanks for that!

Background Images

10 years ago
If that doesn't fix it, you know where to come for help.

Background Images

10 years ago
That did it, it's all awesome now. Thanks again!