var ticker = '<scr' + 'ipt type="text/javascript" src="http://s7.amberalert.com/scripts/jquery.liscroll.js"></scr' + 'ipt>';var corners = '<scr' + 'ipt type="text/javascript" src="http://s7.amberalert.com/scripts/jquery.corner.js"></scr' + 'ipt>';var tip   = '<scr' + 'ipt type="text/javascript" src="http://s7.amberalert.com/scripts/jquery.qtip-1.0.0-rc3.min.js"></scr' + 'ipt>';var style = '<style type="text/css"> .tickercontainer { border: 1px solid #555; background: #f4f2e8; width: 100%; height: 27px; margin: 0; padding: 0; overflow: hidden; } .tickercontainer .mask { position: relative; left: 10px; top: 3px; width: 100%; overflow: hidden; } ul.newsticker { position: relative; left: 750px; font: bold 10px Verdana; list-style-type: none; margin: 0; padding: 0; } ul.newsticker li { float: left; margin: 0; padding: 0; background: #f4f2e8; } ul.newsticker a { white-space: nowrap; padding: 0; color: #C51414; font: bold 10px Verdana; margin: 0 50px 0 0; } ul.newsticker span { margin: 0 10px 0 0; } .get { float: right; clear: left; font: normal 10px Verdana } .code { width: 100%; font: normal 10px Verdana } .code textarea { display: none; width: 95%; } .alert { position: absolute; display: none; width: 250px; } .alert p { padding-left: 60px; } .alert img { float: left; margin: 3px; } .prefix { color: #555; } </style>';var body  = '<div id="ticker"><ul id="news" ><li><span class="prefix">AMBER Alert ACTIVE:</span></li><li><a href="http://www.amberalert.com/mychildid/" target="_blank">Protect your child today with MyChildID&trade;</a></li></ul></div> <div class="code"><a class="get">get this</a><textarea><!--copy and paste this code into your site to place on your page-->&lt;script type=&quot;text/javascript&quot; src=&quot;http://s7.amberalert.com/scripts/jquery-1.3.2.min.js&quot;&gt;&lt;/script&gt;&lt;script type=&quot;text/javascript&quot; src=&quot;https://amberleapalerts.s3.amazonaws.com/ticker.js&quot;&gt;&lt;/script&gt;</textarea></div>';document.write(tip);document.write(ticker); document.write(corners); document.write(style); document.write(body); $(document).ready(function() { $(function(){ $('ul#news').liScroll(); $('.tickercontainer').corner('6px'); }); $('.get').click(function () { ($(this).text() == 'get this') ? $(this).text('hide') : $(this).text('get this'); $('.code textarea').slideToggle('normal'); }); $('#alerts').children('div').mouseout(function(){ $(this).hide(); }); $('.get').qtip({ content: 'Click me to get the code to put this ticker on your own site', position: { corner: { target: 'bottomLeft', tooltip: 'topRight' } }, style: { tip: { corner: 'topRight' }, name: 'green' } }); });