- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
05-13-2016 07:50 AM
05-13-2016 08:23 AM
05-13-2016 10:04 AM - last edited on 05-13-2016 10:26 AM by kathleen_jo
@christina_schel I wanted to change the background and opacity for the tDrkdiv.
05-13-2016 01:36 PM
Adding the below code to a JS Extension scoped to Pre-Loader seems to do the trick for me. Let me know if this works for you.
function waitForElement(selector, time, function_to_run, max_runs, this_run) { if (typeof max_runs === 'undefined') max_runs = 10; if (typeof this_run === 'undefined') this_run = 1; if (max_runs < this_run) return; if (jQuery(selector).length) { function_to_run(); return; } else { this_run++; setTimeout(function() { waitForElement(selector, time, function_to_run, max_runs, this_run); }, time); } } waitForElement('#_tealiumModalWindow', 25, function() { jQuery('#_tealiumModalWindow').attr("style", "background-color:blue;opacity: 0.5;") })
Copyright All Rights Reserved © 2008-2023