// To work in Opera: // Put the script right after the BODY tag, not in the HEAD!!! // === 1 === FONT, COLORS, EXTRAS... n_font=''; n_fontSize='11px'; n_fontSizeNS4='11px'; n_fontWeight='bold'; n_fontColor='#FFFFFF'; //white n_textDecoration='none'; n_fontColorHover='#000000';// | won't work n_textDecorationHover='underline';// | in Netscape4 n_bgColor='#transparent';//set [='transparent'] for transparent n_top=136;// | n_left=88;// | defining n_width=500;// | the box n_height=14;// | n_timeOut=5; //seconds it stays up for n_pauseOnMouseOver=true; n_speed=35; //1000 = 1 second n_leadingSign='_'; // for not supported browsers like Opera<7 - usually // you may want to put a link to your news page n_content=[ ];
Warning: mysql_fetch_array(): 4 is not a valid MySQL result resource in /home/lakemind/public_html/jscripts/newsticker/newsticker.php on line 47
// === 2 === THE CONTENT - ['href','text','target'] //This can be drawn from the database as well //n_content=[ //['http://www.pwdd.com','','_self'], //['http://www.pwdd.com','Another News Flash here','_self'] //]; // THE SERIOUS SCRIPT - PLEASE DO NOT TOUCH n_nS4=document.layers?1:0;n_iE=document.all&&!window.innerWidth&&navigator.userAgent.indexOf("MSIE")!=-1?1:0;n_nSkN=document.getElementById&&(navigator.userAgent.indexOf("Opera")==-1||document.body.innerHTML)&&!n_iE?1:0;n_t=0;n_cur=0;n_l=n_content[0][1].length;n_timeOut*=1000;n_fontSize2=n_nS4&&navigator.platform.toLowerCase().indexOf("win")!=-1?n_fontSizeNS4:n_fontSize;document.write('');n_p=n_pauseOnMouseOver?" onmouseover=clearTimeout(n_TIM) onmouseout=n_TIM=setTimeout('n_new()',"+n_timeOut+")>":">";n_k=n_nS4?"":" style=text-decoration:none;color:"+n_fontColor;function n_new(){if(!(n_iE||n_nSkN||n_nS4))return;var O,mes;O=n_iE?document.all['nnewsb']:n_nS4?document.layers['nnewsb']:document.getElementById('nnewsb');mes=n_content[n_t][0]!=""&&n_cur==n_l?(""):(""+n_content[n_t][1].substring(0,n_cur)+n_leadingSign+"");if(n_nS4)with(O.document){open();write(mes);close()}else O.innerHTML=mes;if(n_cur++==n_l){n_cur=0;n_TIM=setTimeout("n_new()",n_timeOut);n_t++;if(n_t==n_content.length)n_t=0;n_l=n_content[n_t][1].length}else{setTimeout("n_new()",n_speed)}};document.write('
'+'
');if(!n_nS4)setTimeout("n_new()",1000);else window.onload=n_new;if(n_nS4)onresize=function(){location.reload()}