Hey guys,

This is my first time posting on this site; would love to pick your brains on what is probably a simple thing:

I'm using Wordpress and wish to add a promo bar at the top of my site during specific times. From what I assume, Javascript is the best way to go about this but I'm unsure how to echo the DIV.

The code is basic and I figure I'll style the bar once I get it displaying properly so it's not too fly. Any ideas?

<script type="text/javascript">
	var rightNow = new Date();
	var day = rightNow.getDay();
	var hour = rightNow.getHours();
	var newDisplay = 'none'; // unless we see otherwise
	if(day==7) {  // days chat is available 
    	if((hour>= 9) && (hour<= 12)) {
          newDisplay = 'block';
echo "<div id="custompromo" style="width:100%; position: fixed; z-index: 99; background: #000000; height: 20px; color: #FFFFFF; font-size: 12px; padding:5px;"><a href="/live">Streaming live now!</a></div>"