Can someone please supply me the code for an announcement box?

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Can someone please supply me the code for an announcement box?

Evildaddy
I would like an announcement box that is at the top of the page, it has centered text and red please. If it's possible, please also make it so it scrolls with the browser. Thanks in advance.
Reply | Threaded
Open this post in threaded view
|

Re: Can someone please supply me the code for an announcement box?

Pedro
Give me your forum address and, if it is possible, a screenshot of how this box may looks like.
My test forum.
Reply | Threaded
Open this post in threaded view
|

Re: Can someone please supply me the code for an announcement box?

Evildaddy
Reply | Threaded
Open this post in threaded view
|

Re: Can someone please supply me the code for an announcement box?

Pedro
You can create a div at node_page macro and stylize it like this:
<override_macro name="node_page" dot_parameter="do" requires="servlet">
    <div class='top'>Place your ads here</div>
    <n.get_node_from_parameter.as_node_page.do/>
</override_macro>
and your css should be something like this:
.top{
    background-color: green;
    height: 30px;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    text-align: center;
}
My test forum.
Reply | Threaded
Open this post in threaded view
|

Re: Can someone please supply me the code for an announcement box?

Evildaddy
Thank you. Sorry if it is too much to ask but, do you think you could also give me the coding for the example at the bottom of the picture please?
Reply | Threaded
Open this post in threaded view
|

Re: Can someone please supply me the code for an announcement box?

Pedro
Create another div with another class almost identical but you should use bottom instead of top in your css.
<override_macro name="node_page" dot_parameter="do" requires="servlet">
    <div class='bot'>Place your ads here</div>
    <n.get_node_from_parameter.as_node_page.do/>
</override_macro>
and your css should be something like this:
.bot{
    background-color: green;
    height: 30px;
    left: 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
}
My test forum.
Reply | Threaded
Open this post in threaded view
|

Re: Can someone please supply me the code for an announcement box?

Evildaddy
Thank you so much!