[FM] Quảng cáo chạy vòng

  Bài viết hay nhất1
Code:
<html>
 
<head>
<title>Club Teen9x</title>
<body></td>
  </tr>
  <tr>
  <td style="height: 100px;" align="center" background="../styles/forever/misc/whos_online.gif">
 
 
<script type="text/javascript">
function carousel(params){
  if(!(params.width>0 && isFinite(params.width)))params.width=800;
  if(!(params.height>0 && isFinite(params.height)))params.height=300;
  if(!(params.sides>2 && isFinite(params.sides)))params.sides=4;
  if(!(params.steps>0 && params.steps<300 && isFinite(params.steps)))params.steps=100;
  if(!(params.speed>0 && isFinite(params.speed)))params.speed=8;
  if(!(params.image_border_width>=0 && isFinite(params.image_border_width)))params.image_border_width=0;
  if(isFinite(params.id)||!params.id)params.id='bad_id_given_'+Math.random();
 
  document.write("<div style='position:relative;overflow:hidden;' id='"+params.id.replace(/[^a-zA-Z0-9]+/g,'_')+"'></div>");
  var cdiv=document.getElementById(params.id.replace(/[^a-zA-Z0-9]+/g,'_'))
  cdiv.style.width=params.width+'px';
  cdiv.style.height=params.height+'px';
  cdiv.style.border=params.border;
  cdiv.style.position='relative';
  cdiv.style.overflow='hidden';
  cdiv.title=params.id;
   
  var counter=0,spinning=true,interval=Math.floor(60000/params.sides/params.steps/params.speed)-5;
  interval=isNaN(interval)?200:interval;
  var img_position=[],images=[],img_dimension=[];
  var img_index=params.images.length+1,img_index_cap=2*params.images.length;
  var faces=Math.ceil(params.sides/2), dimension, direction, targ, attr, faraway;
 
  function init(){
    if(params.direction=="left" || params.direction=="right"){
      direction=params.direction;
      dimension="width";
      }
    else if(params.direction=="top" || params.direction=="bottom"){
      direction=params.direction;
      dimension="height";
      }
    else {
      direction="left";
      dimension="width";
      }     
    faraway=(direction=="left"||direction=="top")?'-20000px':'20000px';
    cdiv.style[dimension]=params[dimension]/(params.size_mode=='image'?Math.sin(Math.PI/params.sides):1)+'px';
    var img=new Image();
    img.style.position='absolute';
    img.style[direction]=faraway;
    img.style.width=params.width-2*params.image_border_width+'px';
    img.style.height=params.height-2*params.image_border_width+'px';
    img.style.border=(params.image_border_width||0)+'px solid '+params.image_border_color;
 
    for(var i=0;i<params.images.length;i++){
      images[i]=img.cloneNode(true);
      images[i].src=params.images[i];
      if(params.links && params.links[i] && params.links[i]!=''){
        targ=params.lnk_targets && params.lnk_targets[i]||params.lnk_base||'new';
        if(targ=="_blank"){
          attr=(params.lnk_attr && params.lnk_attr[i])?",'"+params.lnk_attr[i]+"'":"";
          images[i].onclick=new Function("window.open('"+params.links[i]+"','"+targ+"'"+attr+")");
          }
        else if(targ.substr(0,1)=="_"){
          images[i].onclick=new Function(targ.substr(1)+".location='"+params.links[i]+"'");
          }
        else{
          attr=(params.lnk_attr && params.lnk_attr[i])?",'"+params.lnk_attr[i]+"'":"";
          images[i].onclick=new Function("var t='"+targ+"';if(window[t]){try{window[t].close()}catch(z){}}window[t]=window.open('"+params.links[i]+"',t"+attr+");window[t].focus()");
          }
        images[i].style.cursor=document.all?'hand':'pointer';
        }
 
      if(params.titles && params.titles[i] && params.titles[i]!='')
        images[i].title=params.titles[i];
      if(document.all)
        images[i].alt=images[i].title;
      images[i+params.images.length]=images[i];
      if(params.images.length==faces)
        images[i+2*params.images.length]=images[i];
      cdiv.appendChild(images[i]);
      }
 
    var face_size=params.size_mode=='image'?params[dimension]:params[dimension]*Math.sin(Math.PI/params.sides);
    var face_offset=params[dimension]*Math.cos(Math.PI/params.sides)/(params.size_mode=='image'?Math.sin(Math.PI/params.sides):1)/2-.5;
    var pi_piece=2*Math.PI/params.steps/params.sides;
    for(i=0;i<=params.steps*faces;i++){
      img_dimension[i]=face_size*Math.sin(pi_piece*i);
      img_position[i]=(i<params.steps*params.sides/2)?Math.floor(params[dimension]/2/(params.size_mode=='image'?Math.sin(Math.PI/params.sides):1)-face_offset*Math.cos(pi_piece*i)-img_dimension[i]/2)+'px':faraway;
      img_dimension[i]=img_dimension[i]-2*params.image_border_width>1?Math.ceil(img_dimension[i])-2*params.image_border_width+'px':'1px';
      }
    }
  init();
 
  cdiv.rotate = function(){
    setTimeout('document.getElementById("'+cdiv.id+'").rotate()',interval);
    if(!spinning) return;
    if(++counter>=params.steps){
      counter=0;
      if(++img_index>=img_index_cap)
        img_index=params.images.length;
      }
    images[img_index-faces].style[direction]=faraway;
    for(var i=faces-1;i>=0;i--){
      images[img_index-i].style[direction]=img_position[counter+i*params.steps];
      images[img_index-i].style[dimension]=img_dimension[counter+i*params.steps];
      }
    }
  cdiv.onmouseover=function(){
    spinning=false;
    }
  cdiv.onmouseout=function(){
    spinning=true;
    }
  setTimeout('document.getElementById("'+cdiv.id+'").rotate()',100);
  }
carousel({id:'asiasoft games',
          border:'',
          size_mode:'image',
          width:165,
          height:80,
          sides:16,
          steps:40,
          speed:3,
          direction:'right',
          images:['http://i48.servimg.com/u/f48/16/58/89/73/logofm10.png',
'http://r22.imgfast.net/users/2213/24/46/69/avatars/989-16.jpg',
'http://i64.servimg.com/u/f64/13/54/69/46/4all11.jpg',
'http://i48.servimg.com/u/f48/15/98/54/42/iaza1412.gif',
'http://www.c3zone.net/users/2315/72/47/45/album/logo110.png',
'http://i43.servimg.com/u/f43/15/93/66/72/logo10.jpg',
'http://i23.servimg.com/u/f23/15/93/40/94/a14-co11.png',
'http://illiweb.com/fa/pbucket.gif',
'http://i43.servimg.com/u/f43/15/23/22/46/logo_i10.png',
'http://illiweb.com/fa/pbucket.gif',
'http://i64.servimg.com/u/f64/15/44/78/93/logo10.png',
'http://a.imageshack.us/img718/4883/thienmonhoilogo2.gif',
'http://cc2.upanh.com/25.120.32273751.5Bl0/logo1.gif',
'http://i61.servimg.com/u/f61/15/61/17/20/footer10.png',
'http://i64.servimg.com/u/f64/15/44/78/93/logoth10.gif',
'http://i64.servimg.com/u/f64/15/44/78/93/logo10.jpg',
'http://r11.imgfast.net/users/1114/11/71/03/avatars/1-89.jpg',
'http://i41.servimg.com/u/f41/16/51/22/91/logo-a10.png',
 'http://i64.servimg.com/u/f64/15/44/78/93/logo10.png',
 'http://i44.servimg.com/u/f44/15/64/85/86/thcske10.gif',
 'http://img217.imageshack.us/img217/5240/omgud.jpg',
 'http://i45.servimg.com/u/f45/16/65/30/82/logo10.png',
 'http://i26.servimg.com/u/f26/14/36/51/92/logo_411.png',
 'http://i.imgur.com/VcHRO.png',
 'http://i64.servimg.com/u/f64/14/44/36/68/tinnha10.png',
 'http://i46.servimg.com/u/f46/14/66/87/86/1_bmp11.jpg',
 'http://lh4.ggpht.com/_FxdsQDJ1f84/TRA2XXKCoCI/AAAAAAAAFLE/5q1lAA1LbhI/s800/A9.png',
'http://i22.servimg.com/u/f22/16/42/03/27/logo-d10.gif',
'http://illiweb.com/fa/pbucket.gif',
'http://i40.servimg.com/u/f40/16/30/52/73/bannar14.jpg',
'http://r19.imgfast.net/users/1915/20/13/44/avatars/1-6.png',
'http://i44.servimg.com/u/f44/15/44/78/93/logo-210.png'],   
             
                 
               
          links: ['http://fmvi.org',
'http://toinhoban.com/',
'http://diendan.4allvn.biz/',
'http://www.9xstudio.biz/',
'http://www.c3zone.net/',
'http://blogger.chinhphuc.info/',
'http://www.a14toiyeu.net/',
'http://diendan.chinhphuc.info',
'http://www.skin4fm.com/',
 
'http://www.ca3vt.com/',
'http://www.benxua.net/',
'thienmonhoi.forumn.biz',
'http://diendan.yenlacpro.net/',
'http://lethanhton.4rumer.net/',
'http://www.thangbinhclub.tk/forum',
'http://a15-nct.4rumer.net/',   
'http://www.a5pro.tk/',   
'http://apteen.1forum.biz/',
'http://www.thcskesach.info/',
'http://s2pro.tk/',
'http://vipfamily97.forumvi.com/',
'http://www.maitruongmenyeu.tk/',
'http://www.lyson.org/',
'http://www.a2bmt.tk/',
'http://winni.forum-viet.net/',
'http://www.diachatthuyvan.com/forum',
'http://butchi.yourme.net/',
'http://dien03.forumvi.com/forum',
'http://diendan.pcteen.tk/',
'http://4rum.naru.to/',
'http://dragonballidol.forumvi.com/',
'http://can1nguoihieu.tk/'],                              
                           
 
               lnk_base:'google', //Link target for all links (see: http://www.codingforums.com/showthread.php?t=58814&page=2)
               titles:['ten logo',
'Forum BigNoise',
 
               'phongcachteen',
               'ocuaso.com',
               'langtham9x',
                                        's2s2',   
                                        'phuquocnet',
                                        'angiangvip',
                                        'phuonghong',                             
               'orum.nguoinamdan',]   ,
                                                                                        
                  image_border_width:1,
          image_border_color:'transparent'
          });
</script
  ></td></tr>
  <tr>
 
    <td>
   
</body>
 
</html>
Bạn không có quyền trả lời bài viết