/* 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/marx%20brothers%20actress%20dies%20at%2095, /new/xmlfeed.nsf/mndwebpages/clooneys%20tv%20show%20cancelled, /new/xmlfeed.nsf/mndwebpages/lopez%20%20fonda%20claim%20the%20top%20spot%20on%20the%20us%20box%20office%20chart, /new/xmlfeed.nsf/mndwebpages/nemkova%20plans%20trip%20back%20to%20thailand%20to%20find%20palm%20tree, /new/xmlfeed.nsf/mndwebpages/bollywood%20blockbuster%20celebrates%20500th%20week%20on%20release, /new/xmlfeed.nsf/mndwebpages/altman%20movie%20gets%20more%20stars, /new/xmlfeed.nsf/mndwebpages/the%20rolling%20stones%20bring%20weinsteins%20back%20to%20music, /new/xmlfeed.nsf/mndwebpages/boyd%20thrilled%20by%20hynde%20duet, /new/xmlfeed.nsf/mndwebpages/rolf%20harris%20to%20paint%20the%20queen, /new/xmlfeed.nsf/mndwebpages/coxon%20worries%20about%20lyrical%20vulnerability%20on%20new%20album, /new/xmlfeed.nsf/mndwebpages/cooper%20begs%20for%20bond%20villain%20role, /new/xmlfeed.nsf/mndwebpages/now%20paris%20fans%20can%20own%20their%20own%20tinkerbell, /new/xmlfeed.nsf/mndwebpages/jolie%20lied%20about%20antiques, /new/xmlfeed.nsf/mndwebpages/goldie%20breaks%20into%20her%20childhood%20home, /new/xmlfeed.nsf/mndwebpages/akon%20music%20industry%20is%20all%20about%20hustling, /new/xmlfeed.nsf/mndwebpages/spader%20smells%20shatner%20in%20bed%20scene, /new/xmlfeed.nsf/mndwebpages/nemkovas%20marriage%20and%20children%20plans%20wrecked%20by%20tsunami, /new/xmlfeed.nsf/mndwebpages/duffs%20get%20a%20skin%20boost%20from%20new%20water%20product, /new/xmlfeed.nsf/mndwebpages/hollywood%20history%20home%20hits%20the%20market, /new/xmlfeed.nsf/mndwebpages/kentucky%20derby%20winner%20inspired%20by%20sting"; /* computed text to get text */ var var2 = "MARX BROTHERS ACTRESS DIES AT 95, CLOONEY`S TV SHOW CANCELLED, LOPEZ + FONDA CLAIM THE TOP SPOT ON THE US BOX OFFICE CHART, NEMKOVA PLANS TRIP BACK TO THAILAND TO FIND PALM TREE, BOLLYWOOD BLOCKBUSTER CELEBRATES 500TH WEEK ON RELEASE, ALTMAN MOVIE GETS MORE STARS, THE ROLLING STONES BRING WEINSTEINS BACK TO MUSIC, BOYD THRILLED BY HYNDE DUET, ROLF HARRIS TO PAINT THE QUEEN, COXON WORRIES ABOUT LYRICAL VULNERABILITY ON NEW ALBUM, COOPER BEGS FOR BOND VILLAIN ROLE, NOW PARIS FANS CAN OWN THEIR OWN TINKERBELL, JOLIE LIED ABOUT ANTIQUES, GOLDIE BREAKS INTO HER CHILDHOOD HOME, AKON- `MUSIC INDUSTRY IS ALL ABOUT HUSTLING`, SPADER SMELLS SHATNER IN BED SCENE, NEMKOVA`S MARRIAGE AND CHILDREN PLANS WRECKED BY TSUNAMI, DUFFS GET A SKIN BOOST FROM NEW WATER PRODUCT, HOLLYWOOD HISTORY HOME HITS THE MARKET, KENTUCKY DERBY WINNER INSPIRED BY STING"; // === 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()}}