I‘ve been able to create a custom slider image using the javascript below, but it only renders in the same size as the original qualtrics slider image. Is there a way to customise the image size that is displayed when the survey runs?
Or is there another way to make a full sized image change when a user moves a slider underneath it?
Thanks in anticipation
Qualtrics.SurveyEngine.addOnload(function()
{
/*Place your JavaScript here to run when the page loads*/
});
Qualtrics.SurveyEngine.addOnReady(function()
{
var imgs = jQuery("#"+this.questionId+" div.SSImage > div.SSImage");
imgs[0].style.background = "url(https://aruspsych.eu.qualtrics.com/ControlPanel/Graphic.php?IM=IM_3DqVvahlCICMbY3) no-repeat";
var imgs = jQuery("#"+this.questionId+" div.SSImage > div.SSImage");
imgs[1].style.background = "url(https://aruspsych.eu.qualtrics.com/ControlPanel/Graphic.php?IM=IM_VITYBA7atozuYkv) no-repeat";
var imgs = jQuery("#"+this.questionId+" div.SSImage > div.SSImage");
imgs[2].style.background = "url(https://aruspsych.eu.qualtrics.com/ControlPanel/Graphic.php?IM=IM_EB2X8G3NzzwgRlt) no-repeat";
var imgs = jQuery("#"+this.questionId+" div.SSImage > div.SSImage");
imgs[3].style.background = "url(https://aruspsych.eu.qualtrics.com/ControlPanel/Graphic.php?IM=IM_93ZgLvd1W27StSX) no-repeat";
var imgs = jQuery("#"+this.questionId+" div.SSImage > div.SSImage");
imgs[4].style.background = "url(https://aruspsych.eu.qualtrics.com/ControlPanel/Graphic.php?IM=IM_GeNz5jWmcaRdn0e) no-repeat";
var imgs = jQuery("#"+this.questionId+" div.SSImage > div.SSImage");
imgs[5].style.background = "url(https://aruspsych.eu.qualtrics.com/ControlPanel/Graphic.php?IM=IM_CqYg0vd9dgLcwFr) no-repeat";
var imgs = jQuery("#"+this.questionId+" div.SSImage > div.SSImage");
imgs[6].style.background = "url(https://aruspsych.eu.qualtrics.com/ControlPanel/Graphic.php?IM=IM_1fnT4sktxcaSyQs) no-repeat";
var imgs = jQuery("#"+this.questionId+" div.SSImage > div.SSImage");
imgs[6].style.background = "url(https://aruspsych.eu.qualtrics.com/ControlPanel/Graphic.php?IM=IM_1fnT4sktxcaSyQs) no-repeat";
var imgs = jQuery("#"+this.questionId+" div.SSImage > div.SSImage");
imgs[7].style.background = "url(https://aruspsych.eu.qualtrics.com/ControlPanel/Graphic.php?IM=IM_1fnT4sktxcaSyQs) no-repeat";
var imgs = jQuery("#"+this.questionId+" div.SSImage > div.SSImage");
imgs[8].style.background = "url(https://aruspsych.eu.qualtrics.com/ControlPanel/Graphic.php?IM=IM_1fnT4sktxcaSyQs) no-repeat";
var imgs = jQuery("#"+this.questionId+" div.SSImage > div.SSImage");
imgs[9].style.background = "url(https://aruspsych.eu.qualtrics.com/ControlPanel/Graphic.php?IM=IM_1fnT4sktxcaSyQs) no-repeat";
var imgs = jQuery("#"+this.questionId+" div.SSImage > div.SSImage");
imgs[10].style.background = "url(https://aruspsych.eu.qualtrics.com/ControlPanel/Graphic.php?IM=IM_1fnT4sktxcaSyQs) no-repeat";
});
Qualtrics.SurveyEngine.addOnUnload(function()
{
/*Place your JavaScript here to run when the page is unloaded*/
});