Marquee Text in Banner(Header)

Mohamed Faizel
Giga Expert

Recntly, I have set the marquee tag in banner text.It's working fine.The problem is when we logout the session its redirect to login page in that,marquee tag has shown in the banner.Could you please anyone help on this?
Please find the attachment for your refernce.

1 ACCEPTED SOLUTION

I haven't tried it yet, but a Global UI Script that modifies the header to your liking should do the trick.

Keep in mind that the marquee element is a non-standard element in HTML. You might want to build JavaScript similar to the news scroller instead or utilize jQuery animations that accomplish the same goal.

UPDATE: I just tried it and it works, but it is a bit tricky. I did this under the assumption that the "Rightmost" property is being used. It might be different if it were the My Company Banner field.

UI Script
Name: Change Banner
Active: true
Global: true
Script:



try { // Use try-catch so if the code fails somewhere else, it doesn't hose up JavaScript completely
window.parent.$('nav_header_text').innerHTML = '<strong>My custom banner</strong>'; // You can inject whatever HTML you like
// or do other magic to the window.parent.$('nav_header_text') object via PrototypeJS
} catch (e) {}


View solution in original post

14 REPLIES 14

If you found this thread helpful, be sure to mark it answered so the community knows it is a solid solution to your question!


This is awesome Tony. I've had a solution I've used for years broken because of this issue and your UI script method works beautifully. It even gets around the issue of seeing the code when you collapse the header. Thanks!


dave_m13
Kilo Contributor

I come across the following and it still scrolls when logged out.

Development

Have just tried it in IE8, Firefox and Chrome

See attachment


What release were you using because that is not the case for Berlin? See attached screenshot from demo09.


This was Aspen I tried it on.