I want to display an image ("myimage.jpg") and after three seconds, my question ("TC04") appear on the screen. What's the best way for doing this? I followed this manual. I created a page in compose questionnaire section and placed an HTML element containing the following code but it doesn't work (it just shows the image, but not the question):
<img src="myimage.jpg">
<script type="text/javascript">
<!--
function showContent() {
var content = document.getElementById("TC04");
content.style.display = "";
}
SoSciTools.attachEvent(window, "load",
function() {
var content = document.getElementById("TC04");
content.style.display = "none";
window.setTimeout(showContent, 3000);
}
);
// -->
</script>
What did I do wrong?