Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
1 reply Latest Post - ‏2013-12-05T20:03:03Z by sn0wflak3
sn0wflak3
sn0wflak3
3 Posts
ACCEPTED ANSWER

Pinned topic Debra's test code sample

‏2013-12-05T20:02:20Z |
<script type="text/javascript">
dojo.ready(function(){
    var spin = function() {
        // define the carousel for top of page
        var ribbon = dojo.query('#dw-n-promotions.ibm-ribbon-alternate .ibm-container-body');
        var s = new ibmweb.ribbon({
        srcNodeRef: ribbon[0],
        autoscroll: true,
        rotationCount: 1
        });
        dojo.query('#dw-n-promotions.ibm-ribbon-alternate').forEach(function(i){
        dojo.addClass(i, 'ibm-ribbon');
        });
        s.startup();
        dojo.byId("dw-n-promotions").style.marginLeft = "0px";
    }
    window.setTimeout(spin, 2000);   
});
</script>
<script type="text/javascript">
    dojo.addOnLoad(function(){
                rBHash = null;
                rBHash = new Object();
                rBHash['viperLang'] = 'en';
                rBHash['urlLang'] = 'en';

                dwsi.siInst = new dwweb.dynnav.dwsi();
                dwsi.siInst.initSI();
        });
</script>