/* USE WORDWRAP AND MAXIMIZE THE WINDOW TO SEE THIS FILE ======================================== V-NewsTicker v2.1 License : Freeware (Enjoy it!) (c)2003 VASIL DINKOV- PLOVDIV, BULGARIA ======================================== For IE4+, NS4+ & Opera5+ ======================================== Get the NewsTicker script at: http://www.smartmenus.org/other.php and don't wait to get the Great SmartMenus script at: http://www.smartmenus.org LEAVE THESE NOTES PLEASE - delete the comments if you want */ // === 1 === FONT, COLORS, EXTRAS... v_font='verdana,arial,sans-serif'; v_fontSize='12px'; v_fontSizeNS4='11px'; v_fontWeight='normal'; v_fontColor='#FFFFFF'; v_textDecoration='none'; v_fontColorHover='#ff0000';// | won't work v_textDecorationHover='none';// | in Netscape4 v_bgColor='transparent'; // set [='transparent'] for transparent // set [='url(image_source)'] for image v_top=0;// | v_left=0;// | defining v_width=400;// | the box v_height=16;// | v_paddingTop=0; v_paddingLeft=2; v_position='relative';//absolute or relative v_timeout=2500;//1000 = 1 second v_slideSpeed=30; v_slideDirection=0;//0=down-up;1=up-down v_pauseOnMouseOver=true; var i; var v_content; /* computed text to get href */ var var1="/new/xmlfeed.nsf/mndwebpages/pitt%20takes%20newswoman%20to%20africa, /new/xmlfeed.nsf/mndwebpages/wayans%20brothers%20launch%20trading%20cards%20game, /new/xmlfeed.nsf/mndwebpages/hilton%20i%20dont%20care%20about%20looks, /new/xmlfeed.nsf/mndwebpages/zellweger%20finally%20completes%20her%20move%20to%20new%20york, /new/xmlfeed.nsf/mndwebpages/kudrow%20met%20husband%20while%20he%20was%20dating%20her%20pal, /new/xmlfeed.nsf/mndwebpages/crow%20gets%20aquatic%20honour%20in%20hometown, /new/xmlfeed.nsf/mndwebpages/sandler%20a%20slick%20american%20football%20player, /new/xmlfeed.nsf/mndwebpages/swayze%20tried%20to%20save%20farley, /new/xmlfeed.nsf/mndwebpages/miller%20hits%20out%20at%20malicious%20british%20press, /new/xmlfeed.nsf/mndwebpages/case%20closed%20on%20rolling%20stones%20altamont%20tragedy, /new/xmlfeed.nsf/mndwebpages/famous%20five%20resurrected, /new/xmlfeed.nsf/mndwebpages/rockers%20team%20up%20for%20autumn%20tour, /new/xmlfeed.nsf/mndwebpages/cruise%20turned%20war%20of%20the%20worlds%20set%20into%20scientology%20site, /new/xmlfeed.nsf/mndwebpages/jones%20svengali%20sinatra%20shaped%20my%20career, /new/xmlfeed.nsf/mndwebpages/hefner%20plans%20reality%20show, /new/xmlfeed.nsf/mndwebpages/no%20love%20lost%20between%20hawkins%20and%20poullain, /new/xmlfeed.nsf/mndwebpages/50%20turns%20video%20director, /new/xmlfeed.nsf/mndwebpages/geldof%20blasts%20critics%20of%20fathers%20for%20justice, /new/xmlfeed.nsf/mndwebpages/doherty%20ive%20been%20bugged, /new/xmlfeed.nsf/mndwebpages/his%20name%20is%20visnjic%20goran%20visnjic"; /* computed text to get text */ var var2 = "PITT TAKES NEWSWOMAN TO AFRICA, WAYANS BROTHERS LAUNCH TRADING CARDS GAME, HILTON- `I DON`T CARE ABOUT LOOKS`, ZELLWEGER FINALLY COMPLETES HER MOVE TO NEW YORK, KUDROW MET HUSBAND WHILE HE WAS DATING HER PAL, CROW GETS AQUATIC HONOUR IN HOMETOWN, SANDLER A `SLICK` AMERICAN FOOTBALL PLAYER, SWAYZE TRIED TO SAVE FARLEY, MILLER HITS OUT AT `MALICIOUS` BRITISH PRESS, CASE CLOSED ON ROLLING STONES ALTAMONT TRAGEDY, FAMOUS FIVE RESURRECTED, ROCKERS TEAM UP FOR AUTUMN TOUR, CRUISE TURNED WAR OF THE WORLDS SET INTO SCIENTOLOGY SITE, JONES- `SVENGALI SINATRA SHAPED MY CAREER`, HEFNER PLANS REALITY SHOW, NO LOVE LOST BETWEEN HAWKINS AND POULLAIN, 50 TURNS VIDEO DIRECTOR, GELDOF BLASTS CRITICS OF FATHERS FOR JUSTICE, DOHERTY- `I`VE BEEN BUGGED`, HIS NAME IS VISNJIC- GORAN VISNJIC"; // === 2 === THE CONTENT - ['href','text','target'] // Use '' for href to have no link item /*v_content=[ ['http://www.smartmenus.org/other.php','Welcome to the V-NewsTicker example page!','_blank'], ['','Featuring: blah, blah , blah, blah ....','_blank'], ['http://www.smartmenus.org/','Get the most advanced navigation system for your site - the SmartMenus.','_blank'] ];*/ v_content = "[" for ( i = 0; i < var1.split(",").length; i++ ) { //--- do not put comma for the first itireation if ( i != 0 ) { v_content = v_content + "," } v_content = v_content + "['" + var1.split(",")[i] + "'" v_content = v_content + ",'" +""+ " " + var2.split(",")[i] + " " +""+ "'" v_content = v_content + ",'_self']" } //--- end the final string v_content = v_content + "]"; //alert( v_content ); v_content = eval(v_content) // THE SERIOUS SCRIPT - PLEASE DO NOT TOUCH v_ua=navigator.userAgent;v_nS4=document.layers?1:0;v_iE=document.all&&!window.innerWidth&&v_ua.indexOf("MSIE")!=-1?1:0;v_oP=v_ua.indexOf("Opera")!=-1&&document.clear?1:0;v_oP4=v_ua.indexOf("Opera")!=-1&&!document.clear;v_kN=v_ua.indexOf("Konqueror")!=-1&&parseFloat(v_ua.substring(v_ua.indexOf("Konqueror/")+10))<3.1?1:0;v_count=v_content.length;v_s1=1;v_cur=1;v_cl=0;v_d=v_slideDirection?-1:1;v_TIM=0;v_fontSize2=v_nS4&&navigator.platform.toLowerCase().indexOf("win")!=-1?v_fontSizeNS4:v_fontSize;v_canPause=0;function v_getOS(a){return v_iE?document.all[a].style:v_nS4?document.layers['v_container'].document.layers[a]:document.getElementById(a).style};function v_start(){var o=v_getOS('v_1');var px=v_nS4?0:'px';if(v_iE||v_oP){if(o.pixelTop==v_paddingTop){v_canPause=1;if(v_count>1)v_TIM=setTimeout("v_canPause=0;v_slide()",v_timeout);return};o.pixelTop-=v_d;if(v_oP&&o.visibility.toLowerCase()!='visible')o.visibility='visible';setTimeout("v_start()",v_slideSpeed);return};if(parseInt(o.top)==v_paddingTop){v_canPause=1;if(v_count>1)v_TIM=setTimeout("v_canPause=0;v_slide()",v_timeout);return};o.top=parseInt(o.top)-v_d+px;setTimeout("v_start()",v_slideSpeed)};function v_slide(){var o=v_getOS('v_'+v_cur);var o2=v_getOS('v_'+(v_cur.vnewsticker,a.vnewsticker{font-family:'+v_font+';font-size:'+v_fontSize2+';color:'+v_fontColor+';text-decoration:'+v_textDecoration+';font-weight:'+v_fontWeight+'}a.vnewsticker:hover{font-family:'+v_font+';font-size:'+v_fontSize2+';color:'+v_fontColorHover+';text-decoration:'+v_textDecorationHover+'}');v_temp='
';for(v_i=0;v_i'+(v_content[v_i][0]!=''?'1){clearTimeout(v_TIM);v_cl=1}\' onmouseout=\'if(v_canPause&&v_count>1&&v_cl)v_TIM=setTimeout(\"v_canPause=0;v_slide();v_cl=0\","+v_timeout+")\'":"")+'>':'1){clearTimeout(v_TIM);v_cl=1}\' onmouseout=\'if(v_canPause&&v_count>1&&v_cl)v_TIM=setTimeout(\"v_canPause=0;v_slide();v_cl=0\","+v_timeout+")\'":"")+'>')+v_content[v_i][1]+(v_content[v_i][0]!=''?'':'')+'
';v_temp+='';document.write(v_temp);setTimeout("v_start()",1000);if(v_nS4)onresize=function(){location.reload()}}