Yes, sorry, will use the reply function!
I tried to follow those guides and changed the PHP code to this:
//defining the imagine
$img = value($varID, 'label');
// html tag to preload and then show the picture
html('
<link rel="stylesheet" href="'.$img.'" />
<div style="margin: 3em; text-align: center">
<img src="'.$img.'" alt="" />
</div>
');
// defining the question
$emquestion =('EM'.sprintf('%02d', $i + 1));
// calling the question
question($emquestion);
and I amended the java script as follows:
<script type="text/javascript">
<!--
//hide next button
//SoSciTools.submitButtonsHide();
function showPicture() {
var picture = document.getElementById($varID);
picture.style.display = "";
}
function showQuestion() {
var question = document.getElementById($emquestion);
question.style.display = "";
}
// Start the script after the page is loaded
SoSciTools.attachEvent(window, "load",
SoSciTools.submitButtonsHide(),
function() {
var question = document.getElementById($emquestion);
// Hide the question
question.style.display = "none";
// Start the timer
window.setTimeout(showQuestion, 4000); // after 4 s
}
);
</script>
There is still no time delay in picture or question presentation
The console tells me this error:
Did not parse stylesheet at '
https://www.soscisurvey.de/PersonalityRWAemotion/Pic_22.jpg' because non CSS MIME types are not allowed in strict mode.
Do you have a hint, what I need to change to make it work?
Thank you and all the best,
Hedwig