Forum Discussion

Futuristic_4860's avatar
Futuristic_4860
Icon for Nimbostratus rankNimbostratus
Jun 21, 2012

Adding HTML tag to display on top of every webpage

Hi All,

 

 

I would like to add HTML tag to show the user a notice; For example "A maintenance is coming up." No matter where they browse to, the message will always display on the top. Pretty much like a notice banner.

 

 

I am using 10.2.2 LTM.

 

 

Any help would be appreciated on this iRule.

 

 

Thanks,

 

Jay

 

3 Replies

  • Arie's avatar
    Arie
    Icon for Altostratus rankAltostratus
    This should help:

     

     

    https://devcentral.f5.com/wiki/irules.HtmlCommentScrubber.ashx

     

     

    As long as there's something you can replace (e.g. ) you're in business.
  • Hi Arie,

     

     

    Thanks for the response but we would not like to edit any webpages and put some comment in because that is not quite practical in our environments.

     

    Although all the webs that we have are almost identical, we do not want to manually put comments in a page.

     

     

    Is there any way that we don't have to rely on replacing things and just inserting HTML tag on top of page?

     

     

    Thanks,

     

    Jay
  • I think what Arie was suggesting is that you can use a stream profile and iRule to replace the < head > or < body > tag with that tag and your new additional HTML.

     

     

    Here's a related post:

     

    http://devcentral.f5.com/Community/GroupDetails/tabid/1082223/aff/5/afv/topic/aft/1172328/afc/1196598/Default.aspx

     

     

    And a link to the STREAM::expression wiki page:

     

    http://devcentral.f5.com/wiki/iRules.stream__expression.ashx

     

     

    Aaron