我正在尝试做一个带有多个选择按钮的视觉小说小游戏,它会略微或更多地改变故事、图像、文本框等……如果没有 javascript,这就像……完全不可能。
或者可能,但它需要数十万页。谁知道。我想避免这种情况。
所以...
有没有办法用另一个类似但不可见的 div 的内容多次(需要时也是 100 次)替换可见 div 的内容 -id="d01"例如 - 包括 javascript 和 css - 使不可见的 div 可见,隐藏以前,但点击 div 本身?
我只能找到只能使用一次的切换和替换,然后返回到第一个内容,但我正在寻找有点不同的东西。
逐渐变化的东西,从 div 1 到 div 100 或更多。
我在智能手机上工作,所以编译器或视觉小说编辑器对我来说是遥不可及的。但通常网站和其他小东西,也有一点 java,对我有用。所以我认为这不会大惊小怪。
我知道一切都有些混乱。对不起。
<div id="d01">
<!-- Content to show at the beginning, with everything it could come
to my mind: text, buttons, images, animations... ; -->
</div>
<div id="d02" style="display:none;">
<!-- Content to show after the first click, similar to the first, but
with light changes: other text, other characters, other images... ; -->
</div>
<div id="d03" style="display:none;">
<!-- Content to show after the second click, like as above; -->
</div>
<div id="d0#"> style="display:none;">
<!-- Content to show after the n. click... U got it at this point, i think; -->
</div>
皈依舞
相关分类