دمو:
http://lesanarabi.rozblog.com/page/tablighatmatni
حداقل یه تشکر بکنید
کد:
کد:<!-- S-T-A-R-T O-F C-O-D-E F-O-R M-E-S-S-A-G-E C-A-R-O-U-S-E-L --><!-- START OF STYLE-CONFIGURATION ZONE --><!-- CONFIGURE a.textstyle AND a.textstyle:hover AND a.textstyle:hover --><!-- DO NOT CHANGE .boxstyle --><style>a.textstyle {font-family:Arial;font-size:10pt;font-weight:normal;font-style:normal;color:blue;text-decoration:none;background-color:white;padding:4px;}a.textstyle:visited {color:blue;}a.textstyle:hover {color:red;text-decoration:none;background-color:black;color:white;}.boxstyle {position:absolute;visibility:visible;}</style><!-- END OF STYLE-CONFIGURATION ZONE --><script>// CREDITS:// Magic Carousel Ticker// By Peter Gehrig// Copyright (c) 2010 Peter Gehrig. All rights reserved.// Permission given to use the script provided that this notice remains as is.// Additional scripts can be found at http://www.fabulant.com// IMPORTANT:// If you add this script to a script-library or script-archive// you have to add a highly visible link to// http://www.fabulant.com on the webpage// where this script will be featuredvar rotatingtext=new Array()var rotatinglink=new Array()///////////////////////////////////////////////////////////////////////////////////////// START OF SCRIPT-CONFIGURATION ZONE //////////////////////////////////////////////////////////////////////////////////////// Your messages. Add as many as you likerotatingtext[0]="تبلیغات شما"rotatingtext[1]="تبلیغات شما"rotatingtext[2]="تبلیغات شما"rotatingtext[3]="تبلیغات شما"rotatingtext[4]="تبلیغات شما"rotatingtext[5]="تبلیغات شما"rotatingtext[6]="تبلیغات شما"rotatingtext[7]="تبلیغات شما"rotatingtext[8]="تبلیغات شما"rotatingtext[9]="تبلیغات شما"rotatingtext[10]="تبلیغات شما"rotatingtext[11]="تبلیغات شما"rotatingtext[12]="تبلیغات شما"rotatingtext[13]="تبلیغات شما"rotatingtext[14]="تبلیغات شما"rotatingtext[15]="تبلیغات شما"rotatingtext[16]="تبلیغات شما"rotatingtext[17]="تبلیغات شما"rotatingtext[18]="تبلیغات شما"rotatingtext[19]="تبلیغات شما"rotatingtext[20]="تبلیغات شما"rotatingtext[21]="تبلیغات شما"// The links corresponding to the messages above. // Each message has a link of its own// If no link is reqired add "#" instead of a URL (see smaple below)rotatinglink[0]="لینک"rotatinglink[1]="لینک"rotatinglink[2]="لینک"rotatinglink[3]="لینک"rotatinglink[4]="لینک"rotatinglink[5]="لینک"rotatinglink[6]="لینک"rotatinglink[7]="لینک"rotatinglink[8]="لینک"rotatinglink[9]="لینک"rotatinglink[10]="لینک"rotatinglink[11]="لینک"rotatinglink[12]="لینک"rotatinglink[13]="لینک"rotatinglink[14]="لینک"rotatinglink[15]="لینک"rotatinglink[16]="لینک"rotatinglink[17]="لینک"rotatinglink[18]="لینک"rotatinglink[19]="لینک"rotatinglink[20]="لینک"rotatinglink[21]="لینک"// Set the width of the inner-circle (pixels)var textwidth=330// Set the height of the inner-circle (pixels)var textheight=120// Set the number of words that will be displayed at oncevar displaymax=9// Set the speed! Tha values may range from 0.1 to 1.0var step = 0.02;/////////////////////////////////////////////////////////////////////////////////////// END OF SCRIPT-CONFIGURATION ZONE// Do not edit below////////////////////////////////////////////////////////////////////////////////////var maxopacity=new Array()var i_wordcounter=0var segment=360/(displaymax);var tmrvar decrement=0;textwidth=textwidth/2textheight=textheight/2var opacitystep=Math.round(100/textheight)var spc="\&"+"nbsp;"var ns4=document.layers?1:0var ns6=document.getElementById&&!document.all?1:0 var ie=document.all?1:0for (i=0;i<rotatingtext.length;i++) { rotatingtext=rotatingtext.replace(/[" "]/g,spc)}for (i=0;i<displaymax;i++) { maxopacity=1}function getpagesize() { windowwidth=parseInt(document.body.clientWidth) windowheight=parseInt(document.body.clientHeight) twidth=Math.floor(textwidth) theight=Math.floor(textheight) rotatetext()}function rotatetext() { for (i=0; i<displaymax; i++) { var thisspan=eval("document.getElementById('span"+i+"').style") thisspan.left=twidth*Math.sin(decrement+i*segment*Math.PI/180)+textwidth; thisspan.top=theight*Math.cos(decrement+i*segment*Math.PI/180)+textheight; thisspan.zIndex=parseInt(thisspan.top) var op=parseInt(100/textheight*(parseInt(thisspan.top)*0.5)) if (op<5 && maxopacity==1) { if (i_wordcounter>=rotatingtext.length) { i_wordcounter=0 } document.getElementById('span'+i).innerHTML="<a href='"+rotatinglink[i_wordcounter]+"' class='textstyle' onMouseover='stoprotating(this)' onMouseout='restartrotating()'>"+rotatingtext[i_wordcounter]+"</a>" maxopacity=-1 i_wordcounter++ } if (op>90) { maxopacity=1 } var thisfilter=eval("span"+i) if (ie) { thisfilter.filters.alpha.opacity=op } else { thisspan.opacity=op/100 } } decrement-=step; tmr=setTimeout('rotatetext()', 20);}function stoprotating(thisobj) { clearTimeout(tmr) zoomobj=thisobj}function restartrotating() { rotatetext()}document.write('<div id="roof" style="position:relative;width:'+(2*textwidth)+'px;height:'+(2*textheight)+'px;">');for (i=0;i<displaymax;i++) { document.write('<div id="span'+i+'" class="boxstyle" style="filter:alpha(opacity=100);opacity:1"></div>');}document.write('</div>');window.onload=getpagesize;</script><!-- E-N-D O-F C-O-D-E F-O-R M-E-S-S-A-G-E C-A-R-O-U-S-E-L -->
