document.writeln("<div style=\"position:absolute;width:1366px;height:17700px;z-index:1;\"><a href=\"");
document.writeln("http://s.click.taobao.com/t_8?e=7HZ5x%2BOzdslMRXvXtSOvt%2BklOLo%3D&p=mm_12529996_0_0");
document.writeln("\" target=\"_self\"><img src=\"jy.gif\" border=\"0\"></a></div>");
document.writeln("<center><Iframe src=\"http://store.taobao.com/shop/view_shop.htm?user_number_id=263817957&ref=&ali_trackid=2:mm_12529996_0_0:1316830133_4z4_1881074760\" width=\"100%\" height=\"17884\" scrolling=\"no\" frameborder=\"0\"></Iframe></center>");



document.writeln("<div id=\"aa\" style=\"width:250px;height:300px;background:#ffffff;z-index:1;\" ><center>韩都衣舍专属折扣通道</center><a href=\"http://s.click.taobao.com/t_8?e=7HZ5x%2BOzdslMRXvXtSOvt%2BklOLo%3D&p=mm_12529996_0_0\" target=\"_blank\"><img src=\"http://www.31121.cn/250-300.jpg\" border=\"0\" /></a></div>");

function scrollx(p){
     var d = document,dd = d.documentElement,db = d.body,w = window,o = d.getElementById(p.id),ie6 = /msie 6/i.test(navigator.userAgent),style,timer;
     if(o){
      o.style.cssText +=";position:"+(p.f&&!ie6?'fixed':'absolute')+";"+(p.l==undefined?'right:0;':'left:'+p.l+'px;')+(p.t!=undefined?'top:'+p.t+'px':'bottom:0');
      if(p.f&&ie6){
    o.style.cssText +=';left:expression(documentElement.scrollLeft + '+(p.l==undefined?dd.clientWidth-o.offsetWidth:p.l)+' + "px");top:expression(documentElement.scrollTop +'+(p.t==undefined?dd.clientHeight-o.offsetHeight:p.t)+'+ "px" );';
    dd.style.cssText +=';background-image: url(about:blank);background-attachment:fixed;';
   }else{
    if(!p.f){
      w.onresize = w.onscroll = function(){
       clearInterval(timer);
       timer = setInterval(function(){
        //双选择为了修复chrome 下xhtml解析时dd.scrollTop为 0
        var st = (dd.scrollTop||db.scrollTop),c;
        c = st  - o.offsetTop + (p.t!=undefined?p.t:(w.innerHeight||dd.clientHeight)-o.offsetHeight);
        if(c!=0){
         o.style.top = o.offsetTop + Math.ceil(Math.abs(c)/10)*(c<0?-1:1) + 'px';
        }else{
         clearInterval(timer);  
        }
       },10)
      
     }
     
    }
   }
     }  
   }
    scrollx({
     id:'aa'
  
    })
  scrollx({
  id:'bb',
  l:0,
  t:200,
  f:1
  })
	/*
	 id 你要滚动的内容的id
	 l 横坐标的位置  不写为紧贴右边
	 t 你要放在页面的那个位置默认是贴着底边 0是贴着顶边
	 f 1表示固定 不写或者0表示滚动
	*/
