I have seen MANY posts regarding how to use DHTML or Javascript to replace the twistie design for embedded views.
I am interested in changing this for collapsed/expanded sections in my forms.
Does anybody know how I can achieve this without changing the .GIF image on the filesystem of the server.
Thank you.
hcl-bot
2
Subject: Change Twistie image (for SECTIONS, not view categories)
I know, its more then one year since you posted this topic, but i found a solution:
Put this in JSHeader on your form:
// ______________________________________________________
// Kills all Twistie Images
// Sacha Oberhaensli
// ecoville Switzerland
// ______________________________________________________
function KillTwisties() {
var anzBilder = window.document.images.length
for(i=0; i<anzBilder; i++) {
var Bild = window.document.images[i];
var BildURL = Bild.src;
if (BildURL.indexOf('collapse') != -1 || BildURL.indexOf('expand') != -1){
Bild.src="/icons/ecblank.gif";
}
}
}
and put the call of the function in the on load event:
KillTwisties()