- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-28-2012 02:33 AM
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.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-11-2012 08:06 AM
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) {}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-14-2012 06:15 PM
Caution, I've done something similar and it has broken in Berlin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-14-2012 11:01 PM
I've applied that script in aspen patch 5 its working fine.Is there any issues?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-15-2012 03:55 AM
Seems to work fine in Berlin in my testing.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-15-2012 05:48 AM
Matt,
Do you happen to remember what you did exactly and the issue that it caused? I'm always leery of applying UI Scripts like this, but wanted to demonstrate that it was technically possible.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-15-2012 09:18 AM
I don't remember the issue I saw and the exact script used, but it worked fine on Aspen and on some version of Berlin (might have been a CA release) it wasn't working. Just always want to be careful when working with the DOM and not using a ServiceNow API.