Ir para conteúdo
Fórum Script Brasil
  • 0

Textarea Dinamico


Guest - Cleber -

Pergunta

3 respostass a esta questão

Posts Recomendados

  • 0

dei uma olhada no codigo que você posto e pelo codigo entendi que você quer isso... se não for esplica melhor beleza

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<style type="text/css">
/* geral */
body {background:#fff;font-size:1.25ex;font-family:arial,helvetica,freesans,sans-serif;margin:5px 10px;}
html>body {background:#fff;font:x-small arial,helvetica,freesans,sans-serif;margin:5px 10px;padding:0;}
a {text-decoration:none;display:block;color:#000;font-weight:normal;font-family:arial,freesans,helvetica,sans-serif;}
* {padding:0;margin:0;}
img {border:0;}
#conteudo a:visited {color:#505050;}
a:hover {text-decoration:underline;}
h2 {font-size:1.5em;color:darkred;}
h2 a {color:darkred;font-weight:bold;}
#to-blend h2 a {font-weight:normal;}
h3 {font-size:1em;}
h5 {font-size:1em;background:url(http://home.img.uol.com.br/h2/seta-azul.gif) no-repeat;padding-left:0.8em;}
h6 {font-size:1.3em;}
strong {font-size:1.3em;}
em {font:bold 1em verdana;color:#496881;display:block;}
h6 em {font-size:0.75em;display:inline;}
h3 img, em img {height:21px;}
.ok {vertical-align:bottom;}
.icone {vertical-align:middle;margin-left:0.3em;}
.thumb {width:6.6em;height:6.6em;}
.chapeu-especial {height:1.15em;}

/* estrutura */
#topo {width:76em;background-color:#036;position:relative;height:17.4em;}
#corpo {width:76em;position:relative;}
#conteudo {width:45.6em;top:2em;left:15.2em;position:relative;}
#extra {width:14.2em;position:absolute;top:0;left:61.8em;}
#rodape {width:76em;height:8em;position:relative;}

/* uolhome:arq */

/* barras sup e inf */
#barra-sup {border-bottom:1px solid #02254B;width:76em;float:left;background-color:#50728E;}
#barra-sup a {float:left;color:white;border-left:1px solid #02254B;padding:0.8em 0.4em 0.7em 0.5em;background-image:url(http://home.img.uol.com.br/h1/bg-barra-home.gif);}
#barra-sup .produto {background-image:none;background-color:#50728E;padding:3px 4px;font-size:1.3em;}
#barra-inf {border-bottom:1px solid #02254B;width:76em;float:left;background-color:#316AA1;background-image:url(http://home.img.uol.com.br/h1/bg-barra-home.gif);clear:left;margin-bottom:1em;margin-top:2px;}
#barra-inf a {float:left;color:white;border-left:1px solid #02254B;padding:0.8em 2em 0.7em 2.1em;background-image:url(http://home.img.uol.com.br/h1/bg-barra-home.gif);}

/* logo, data, bp, busca, email */
#logo {height:7em;margin-top:0.5em;margin-left:1em;_margin-left:0.5em;float:left;}
#data {width:45.6em;position:absolute;top:-1.3em;left:0;z-index:99;border-bottom:1px solid #f0f0e4;padding-bottom:0.1em}
#bp, #busca, #email {position:absolute;height:4em;border:2px outset #47597D;top:11em;} 
div>#bp, div>#busca, div>#email {border:1px outset gray;} /*hack*/
#bp {color:white;left:1em;padding:0.5em;width:12em;w\idth:10.6em;}
#bp select {font:1em arial;height:15px;width:79px;border:1px solid #7C9BB7;}
#bp a {color:white;margin-bottom:6px;padding-top:1px;font:1em;}

/* menu */
#menu {width:14.2em;border-top:1px solid #7E97AD;background-color:#003366;position:absolute;top:0;left:0;font-family:verdana,arial,freesans,helvetica;}
#menu ul {background-color:#50728E;}
#menu ul li {border-bottom:1px solid #7E97AD;list-style:none;_height:2em;}
#menu ul li a {color:white;height:1%;padding:0.3em 0.5em;font-family:verdana,arial,freesans,helvetica;}
#menu ul li a {padding/*hack ie5.5*/:0.4em 0.5em;}
#menu ul li a:hover {background-color:#496881;}
#menu dl {margin:1em 0 0.7em 1em;padding-bottom:1px;font-family:arial;}
#menu dl dt {color:white;margin-top:1.6em;font-family:arial;}
#menu dl dd {background:url(http://home.img.uol.com.br/h2/seta-branca.gif) no-repeat;padding-left:1em;margin-top:3px;}
#menu dl dd a {color:#7C98AD;}
#menu dl dd.diff {background:transparent;padding-left:0px;}
#menu .rel {height:1.7em;padding-top:0.4em;}
#menu .e, #menu .d {display:inline;}
#menu .c {color:#7E97AD;}

/* banners */
#banner-468x60-1-area {width:495px;height:60px;margin-top:10px;float:left;background-image:url(http://home.img.uol.com.br/h1/pub-vertical.gif);background-repeat:no-repeat;background-position:484px -30px;}
#banner-468x60-1 {position:absolute;left:150px;display:inline;}
#banner-468x60-1 a {display:inline;}
#banner-mkt-area {width:120px;height:60px;float:left;margin-top:10px;}
#banner-mkt {position:absolute;left:644px;display:none;}

/* botoes */
#botoes {background-color:#eee;height:13.2em;border:1px solid silver;}
#botoes div {height:3.6em;margin:6px 10px;}
#botao1, #botao2, #botao3 {position:absolute;left:63.9em;}

/* busca */
#busca {position:absolute;width:41.6em;left:14em;height:5em;}
#busca a {font-size:1em;color:#fff;}
#busca a.lupa {padding:0.3em 1.9em;background:url('http://img.uol.com.br/ico_buscab.gif') 0.4em 0.4em no-repeat;}
#busca #abas {position:absolute;right:0;top:0;z-index:2;padding:0.3em 0 0.3em 0;}
#busca #abas a {color:#fff;padding:0.3em 0.6em;border-right:0.1em solid #49587F;display:inline;}
#busca #abas a.sel, #busca #abas a:hover {color:#fff;background-color:#50728E;}
#busca #abas #primeira { border-left:0.1em solid #49587F;}
#busca #form { position:absolute;right:0;top:1.8em;border:0.1em solid #45617D;width:41.4em;background-color:#50728E;height:3em;}
#busca #form .texto {position:absolute;left:0.5em;top:0.6em;font:1em arial;height:1.4em;width:37.2em;border:1px solid #7C9BB7;padding-top:2px}
#busca #form .botao {position:absolute;right:0.6em;top:0.6em;}

/* email */
#email {width:17.9em;w\idth:16.7em;left:56.9em;color:white;padding:5px;}
#email #usuario {border:1px solid #7C9BB7;width:62px;height:15px;}
#email #senha {border:1px solid #7C9BB7;width:62px;height:15px;margin-top:2px;}

/* /uolhome:arq */

/* modulos */
.mod {position:relative;margin-top:15px;}
.mod h5 {border-bottom:1px dotted silver;padding:3px 8px;background-position:0 3px;}
.mod .canais {right:0;top:0;position:absolute;text-align:right;padding:3px 0;}
.mod .canais a {display:inline;}
.mod .faixa {background-color:#F0F0E4;}

/* uolhome:arq */

/* shopping */
.shop {background-color:#E8E8E8;width:14.2em;}
.shop h3 {background-color:#50728E;}
.shop h3 a {color:white;padding:4px;text-align:center;border:0;font:bold 1em verdana;}
.shop strong {color:#496881;}
.shop em {color:#496881;font:bold 1em verdana,freesans,helvetica;padding:0;background:none;}
.shop a {padding:5px 3px 5px 6px;border-bottom:1px solid white;}
.shop img {float:left;margin-right:3px;}
.shop span {margin-bottom:10px;display:block;}
.shop .c {background:#F3F3F3;}
.shop .box1 {border:1px solid #ccc;}
.shop .maislojas {background-color:#FDFFFC;border-top:1px solid silver;padding:5px 6px 4px 6px;font:bold 1em verdana;}
.shop .g0 {margin:0 0 9px 0}
.shop .g1 {margin:0 0 9px 0}

/* shop2 */
#shop2 {display:none;}
#shop2 #botao4-area {position:absolute;left:78em;top:0.5em;width:14.2em;height:29.8em;}

#botao4 {position:absolute;left:78em;margin-top:5px;display:none}
#shop2 .shop2 {position:absolute;top:31.3em;left:78em;width:14.2em;}

/* rodape */
#sobre {text-align:center;}
#sobre a {display:inline;padding:0 4px;}
#rss {position:absolute;top:6em;left:5em;}
#rss a {display:inline;}
#copyright {position:absolute;top:6em;left:22em;margin-top:1px;}
#uolhome {position:absolute;top:6em;left:60em;}    
#uolhome a {display:inline;}

/* /uolhome:arq */

/* hardnews dia a dia*/
#hn {padding-top:6px;}
#hn h3 {padding:0 10px 0 0;margin:0;}
#hn h3 img {height:21px;}
#hn h1 {padding:0 10px 1px 0;font-size:1.8em;}
#hn .box1 {padding:5px 0 10px 0;}
div>#hn .box1 {float:left;}
#hn .boxline {clear:both;border-bottom: 1px solid #f1f1f1;margin-top:10px;}
div>#hn .boxline {margin-top:0px;}
#hn .box1a {float:right;width:23em;position:relative;margin-left:1em;}
#hn .box1a em {margin-top:10px;}
#hn .box1a h1 em {margin-top:0;font-size:0.55em}
#hn .box1a strong {margin-bottom:3px;display:block;}
#hn .box1a h5 {margin-bottom:1px;}
#hn .box2 {clear:both;border:1px solid #f0f0e4;padding:0.5em 0.3em 0.6em 0.8em;_padding-top:0.2em;margin-top:10px}
#hn .box2 h6 {padding:1px 0;border-top:1px solid white;width:100%;}

/* painel rotativo */
#painel {width:20.8em;height:19.6em;background-color:#575757;float:left;}
div>#painel {top:0;} /*hack*/
#painel-conteudo {display:none;}
#painel h2 {font-size:1.3em;padding:0 1em;margin:0;}
#painel h2 a {color:#fff;}
#painel h2 a:visited {color:#eee;}
#painel #imgslide {width:20.8em;height:14.6em;margin:0 0 0.6em 0;}
#painel #proximo, #painel #anterior, #painel #pause {cursor:pointer;cursor:hand;position:absolute;}
#painel #prox-ant {position:absolute;top:21.2em;width:13.8em;height:10px;left:0;}
#painel #anterior {left:9;}
#painel #proximo {left:13.7em;}
#painel #pause {left:09.1em;}
#painel #to-blend {opacity:0.99;zoom:1;}

/* modulo 4 */
#mod4 h2 a {float:left;}
#mod4 h2 a:visited {color:darkred}
#mod4 {width:45.6em;}
#mod4 .box1 {height:7.6em;}
#mod4 .box1 a {width:13.8em;margin-top:8px;padding-left:10px;}
#mod4 .chamada1, #mod4 .chamada2, #mod4 .chamada3 {float:left;}
#mod4 .box4 h6 {padding:1px 0 2px 0;border-top:1px solid white; width:100%;}
/* modulo 2 */
#mod2 h2 a:visited {color:darkred}
#mod2 .box1 {width:14.2em;position:relative;}
#mod2 .box2 {position:absolute;left:15.2em;top:0;width:15.2em;}
#mod2 .box3 {position:absolute;left:31.4em;top:0;width:14.2em;}
#mod2 .chamada {padding:8px;height:6em;}
#mod2 .box2 .f a {padding:8px 10px 5px 10px; height:12.3em;font-family:arial;}
#mod2 .box2 .f a .foto {width:13.2em;height:9.4em;}
/* modulo 7a */
#mod7a {width:45.6em;}
#mod7a .box {border:1px solid #f0f0e4;padding:0.5em 0.3em 0.6em 0.8em;}
#mod7a .box h6 {padding:1px 0 2px 0;border-top:1px solid white; width:100%;}

/* modulo 1 */
#mod1 h2 a:visited {color:darkred}
#mod1 .box1 {width:21.8em;position:relative;}
#mod1 .box2 {position:absolute;left:22.8em;top:0;width:22.8em;}
#mod1 .chamada {padding:8px;height:6.8em;}
#mod1 .chamada img {float:left;margin-right:8px;}
#mod1 .chamada strong img {float:none;}
/* modulo 3 */
#mod3 h2 a:visited {color:darkred}
#mod3 {width:45.6em;}
#mod3 .box1 {padding:8px 0 8px 10px;height:6.8em;}
#mod3 .chamada .thumb {float:left;margin-right:8px;}
#mod3 .chamada {width:21.1em;float:left;}
#mod3 .box1a {float:left;padding-top:2px;width:23em;}
#mod3 h5 {background-position:0 1px;border:0;padding:0 8px;margin:2px 0 0 7px;}
#mod3 .box4 {border:1px solid #f0f0e4;padding:0.5em 0.3em 0.6em 0.8em;margin-top:10px}
#mod3 .box4 h6 {padding:1px 0 2px 0;border-top:1px solid white; width:100%;}


#ms {height:13.5em;background-color:#F3F3F3;margin-top:15px;}
#ms a {display:inline;}
#ms .box1, #ms .box2, #ms .box3 {float:left;width:12.6em;height:8.6em;border-right:1px solid white;}
#ms .box1 {width:20.2em;}
#ms .box3 {border:0;}
#ms .spc {height:4.5em;margin-top:15px;margin-left:10px;}
#ms .comprar {margin-left:4px;}
#ms .ouvir {margin-left:10px;}
#ms .diff {margin:0;}
#ms .spc a {font:normal 1em verdana;}
#ms .spc em a {font:bold 1em verdana;}
#ms h3 {background-color:#50728E;padding:4px 10px;}
#ms h3 #h2a {font:bold 10px verdana;color:white;}
#ms h3 a:visited {color:white;}
#ms h3 #h2b {font:normal 10px arial;margin-left:155px;color:white;}
#ms .busca {border-top:1px solid white;padding:4px;background:#E8E8E8;clear:left;}
#ms .busca #inpttxt {width:348px;margin-left:5px;vertical-align:middle;font:1em arial;height:1.3em;padding-top:2px;}
#ms .busca #lupa {margin:0 5px;vertical-align:middle;}
#ms .busca #ok {margin-left:5px;vertical-align:bottom;padding-bottom:2px}
#ms #foto {float:left;margin:10px 8px 10px 10px;width:6.6em;height:6.6em;}
#shuol {height:12em;background-color:#F3F3F3;margin-top:15px;}
#shuol h3 a, #shuol form a {display:inline;}
#shuol .box1, #shuol .box2, #shuol .box3 {float:left;height:7em;width:15.1em;border-right:1px solid white;}
#shuol .box3 {border:0;}
#shuol .spc a {font:normal 1em arial;color:black;margin-top:-.5em;}
#shuol h3 {background-color:#50728E;padding:4px 10px;}
#shuol h3 #h2a {font:bold 10px verdana;color:white;}
#shuol h3 a:visited {color:white;}
#shuol h3 #h2b {font:normal 10px arial;margin-left:207px;color:white;}
#shuol .busca {border-top:1px solid white;padding:4px;background:#E8E8E8;clear:left;}
#shuol .busca #inpttxt {width:292px;margin-left:5px;vertical-align:middle;font:1em arial;height:1.3em;padding-top:2px;}
#shuol .busca #ok {margin-left:5px;vertical-align:bottom;padding-bottom:2px}
#shuol #foto {float:left;margin:1px 5px 7px 0;width:4.9em;height:4.9em;}
#shuol .box1 a, #shuol .box2 a, #shuol .box3 a  {margin:3px 3px 7px 6px}
#shuol #blnk {color:black}




</style>

<script type="text/javascript">
var d=document;
$ = function(id) {
    if(!arguments[1]) return document.getElementById(id);
    else document.getElementById(id).style[arguments[1]]=arguments[2];
}


function delItem(arr,item){
for(;item<arr.length;item++) arr[item]=arr[item + 1];
arr.length=arr.length-1;
} function goURL(){
(Item[atual][3].indexOf('_blank')!=-1) ? window.open(Item[atual][3].substring(0,Item[atual][3].indexOf(' '))) : location.href=Item[atual][3];
} function startSlide(){ 
loadImages();
if(!paused) timeoutId=setTimeout('changeImg(1)',6000);
} function initialize(){
timeoutId=0;
textareaContent=d.form_cr.select_cr.value.split(/[\r\n]/i);
Item = new Array();
for(x=0,y=0;x<textareaContent.length;x++){ 
    if(textareaContent[x].length>30) Item[y++]=textareaContent[x].split('|');
    }
for(i=Item.length-1;i>=0;i--){
    Item[i][0]=Item[i][0].replace(/([ \n\t\r])+/, " ");
    Item[i][4]=(Item[i][4].length<3) ? '' : '<img src="'+Item[i][4]+'" border="0" style="margin-left:4px;" />';
    if(Item[i][1].length<3||Item[i][3].length<3||Item[i][2].length<3||Item[i][0].length<2) delItem(Item,i);
    }
if(Item.length==1) d.write('<style>#anterior,#proximo,#pause{visibility:hidden;}</style>');
atual = Math.random().toString().substring(2,6) % Item.length;
} function startPanel(){
usaCredito = '';
initialize();
if(arguments.length>0){
    if(!isNaN(arguments[0])) atual = arguments[0];
    }
if(paused) {imgpause='on'; altpause='alt="Ligar" title="Ligar"';}
else {imgpause='off'; altpause='alt="Parar" title="Parar"';}
d.write('<div id="to-blend">'+usaCredito+'<a href="java script:goURL()"><img src="'+Item[atual][1]+'" id="imgslide" name="img1" border="0" title="'+Item[atual][0]+'" alt="'+Item[atual][0]+'"></a>');
d.write('<h2><a href="java script:goURL()" id="p-link"><span id="txt1">'+Item[atual][2]+'</span><span id="icon-area">'+Item[atual][4]+'</span></a></h2></div>');
d.write('<div id="prox-ant"><a href="java script:void(0)" id="anterior" onclick="if(okToGo)changeImg(-1)"><img src="http:\/\/home.img.uol.com.br/h2/botao-anterior.gif" border="0" /></a><img src="http:\/\/home.img.uol.com.br/h2/botao-pause1-'+imgpause+'.gif" onclick="pauseSlide()" id="pause" '+altpause+' />');
d.write('<a href="java script:void(0)" id="proximo" onclick="if(okToGo)changeImg(1)"><img src="http:\/\/home.img.uol.com.br/h2/botao-proxima.gif" border="0" /></a></div>');
} function pauseSlide(){
if(paused){
    $('pause').src='http:\/\/home.img.uol.com.br/h2/botao-pause1-off.gif';
    $('pause').title='Parar'; $('pause').alt = 'Parar';
    d.cookie="homeUOLpause=0;domain=.uol.com.br;expires=Thu, 2 Aug 1970 20:47:11 UTC;";         
    paused=false;
    startSlide();
}else{
    clearTimeout(timeoutId);
    d.cookie="homeUOLpause=1;domain=.uol.com.br;expires=Thu, 2 Aug 2222 20:47:11 UTC;";     
    $('pause').src='http:\/\/home.img.uol.com.br/h2/botao-pause1-on.gif';
    $('pause').title='Ligar'; $('pause').alt = 'Ligar';
    paused = true;
} }

var okToGo=false;
var paused=(d.cookie.indexOf('homeUOLpause=1')!=-1) ? true : false;
onload=startSlide;

</script>
<form name="form_cr" action="" id="painel-conteudo"><textarea name="select_cr" cols="0" rows="0">
Reuters|http://home.img.uol.com.br/0702/j/03maria.jpg|Sharapova |http://click.uol.com.br/?rf=hu-hn-fotos&u=http://noticias.uol.com.br/ultnot/album/070203_album.jhtm?abrefoto=5|http://home.img.uol.com.br/h0/i_fotob.gif
Reuters|http://home.img.uol.com.br/0702/j/03briga.jpg|Torcedores e policiais enfrentam-se na Itália|http://click.uol.com.br/?rf=hu-hn-fotos&u=http://noticias.uol.com.br/ultnot/album/070203_album.jhtm?abrefoto=3|http://home.img.uol.com.br/h0/i_fotob.gif
Reuters|http://home.img.uol.com.br/0702/j/03crocodilo.jpg|Homem brinca com crocodilo de estimação na Costa Rica|http://click.uol.com.br/?rf=hu-hn-fotos&u=http://noticias.uol.com.br/ultnot/album/070203_album.jhtm?abrefoto=2|http://home.img.uol.com.br/h0/i_fotob.gif
Reprodução do vídeo|http://home.img.uol.com.br/0701/j/02carnaval.jpg|Carnaval: um dia na escola bicampeã de São Paulo|http://click.uol.com.br/?rf=hu-hn-fotos&u=http://noticias.uol.com.br/uolnews/brasil/reportagens/2007/02/02/ult2494u796.jhtm|http://home.img.uol.com.br/h0/i_videob.gif
Divulgação|http://home.img.uol.com.br/0702/d/02damato.jpg|Andrea D'Amato mostra cultura popular, na Pinacoteca|http://click.uol.com.br/?rf=hu-hn-fotos&u=http://diversao.uol.com.br/album/andrea_damato_album.jhtm?abrefoto=3|http://home.img.uol.com.br/h0/i_fotob.gif
</textarea></form>


        <div id="hn">
            <div class="box1">
                <div id="painel">
                    <script type="text/javascript">startPanel(0);</script>
                   </div>

<script type="text/javascript">
/* uolhome:arq */
var bFs = ($('barra-sup')) ? $('barra-sup').offsetWidth/76 : 0;

// equaliza colunas //
function getHeight(id){
if ($(id)) return $(id).offsetHeight + findPos(id);
else return 0;
} function getMaxHeight(args){
maxHeight=getHeight(args[0]);
for(i=0;i<args.length;i++)
    maxHeight=Math.max(maxHeight, getHeight(args[i]))
return maxHeight;
} function setHeight(){
maxHeight=getMaxHeight(arguments)
for(i=0;i<arguments.length;i++)
    if ($(arguments[i]) && maxHeight!=0 && bFs!=0){
        $(arguments[i]).style.height=(maxHeight - findPos(arguments[i]))/bFs  +'em';
        }
} setHeight('corpo','conteudo','shop-complemento','menu');
/* /uolhome:arq */

// click uol //
divs=d.getElementsByTagName('div').length;
reF='';
for(i=0;i<divs;i++){
diV=d.getElementsByTagName('div')[i];
dId=diV.id;
if(dId=='menu'||dId=='barra'||diV.className=='mod'||dId=='hn'||dId=='barra-sup'||dId=='barra-inf'){
    lnks=diV.getElementsByTagName('a').length;
    for(j=0;j<lnks;j++){
        aObj=diV.getElementsByTagName('a')[j];
        aLnk=aObj.href.toString();
        reF='hu-'+dId;
        if(aLnk.indexOf('player')!=-1||aLnk.indexOf('abreradio')!=-1){
            aObj.href='java script:pop("'+aObj.href+'")';
        }
        if(aObj.name!='') reF+='-'+aObj.name;
        if(aLnk.indexOf('click.uol')==-1 && aLnk.indexOf('void(')==-1) {
            aObj.href = aLnk.replace(/http(s?):\/\//,'http:\/\/click.uol.com.br/?rf='+reF+'&u=http$1:\/\/');
        }
    }
} }

/* uolhome:arq */
// busca //
var ultimaBarraSel = $('abas').getElementsByTagName('a')[0];
var docForm = $('form');
function UOLBusca(s){
if(ultimaBarraSel!="" && ultimaBarraSel!=s){
    ultimaBarraSel.className="";
}
if(s.nextSibling.innerHTML!=""){
    docForm.getElementsByTagName('input')[0].className='texto';
}
s.blur();
s.className="sel";
ultimaBarraSel=s;
d.formb.skin.disabled=d.formb.id.disabled=d.formb.rd.disabled=(s.innerHTML=='Notícias') ? "" : "disabled";
if(s.innerHTML=='Web') d.formb.action = "http://busca.uol.com.br/www/index.html";
else if(s.innerHTML=='Notícias') d.formb.action = "http://noticias.busca.uol.com.br/uol/index.html";
else if(s.innerHTML=='Imagens') d.formb.action = "http://busca.uol.com.br/imagem/index.html";
else if(s.innerHTML=='Vídeos') d.formb.action = "http://busca.uol.com.br/video/index.html";
else if(s.innerHTML=='Preços') { d.formb.action = "http://shopping.busca.uol.com.br/busca.html"; buscaprecos(); }
docForm.getElementsByTagName('input')[0].focus();
}

function buscaprecos() {
 var shopClick = document.createElement('img')
 document.getElementsByTagName('body')[0].appendChild(shopClick);
 shopClick.src = 'http://click.uol.com.br/?rf=hu-busca-precos&u=http://img.uol.com.br/x.gif';
}

/* /uolhome:arq */


// painel rotativo //
function changeOpac(opacity){
var obj = $('to-blend').style;
obj.opacity=(opacity/101);
obj.MozOpacity=(opacity/101);
obj.KhtmlOpacity=(opacity/101);
} function blend(imagefile){
var speed=7;
var timer=0;
for(i=100;i>0;i-=2) setTimeout('changeOpac('+i+')', timer++ * speed);
setTimeout('changeContent()', timer * speed);
for(i=0;i<=100;i+=2) setTimeout('changeOpac('+i+')', timer++ * speed);
} function changeImg(id){
clearTimeout(timeoutId);
atual+=parseInt(id);
if(atual>Item.length-1) atual=0;
if(atual<0) atual=Item.length-1;
if(imgDsp[atual].complete==false){
    atual--;
    timeoutId = setTimeout('changeImg('+id+')',500);
    return;
    } 
if(d.all && navigator.userAgent.indexOf('Opera')==-1){
    try {
    oDiv = $('to-blend');
    oDiv.style.filter="blendTrans(duration=0.7)";
       oDiv.filters.blendTrans.apply();
    oDiv.filters.blendTrans.play();
    changeContent();
    } catch(e) { changeContent(); }
} else { blend(); }
if(!paused) timeoutId=setTimeout('changeImg(1)',6000);
} function loadImages(){
imgDsp = new Array();
for(n=0;n<Item.length;n++){
    imgDsp[n]=new Image();
    imgDsp[n].src=Item[n][1];
    }
okToGo = true;
} function changeContent(){
d.img1.src=imgDsp[atual].src;
d.img1.alt=d.img1.title=Item[atual][0];
$('txt1').innerHTML=Item[atual][2];
if(usaCredito!='') $('credito').innerHTML=Item[atual][0];
$('icon-area').innerHTML=Item[atual][4];
}


/* uolhome:arq */
// encontra pos elementos //
function findPos(bId, sum){
    obj = $(bId);
    var curtop = 0;
    if(obj.offsetParent){
        while(obj.offsetParent){
        curtop+=obj.offsetTop
        obj=obj.offsetParent;
        }
    } else if(obj.y) curtop+=obj.y;
    return curtop;
} function placePos(bId, pos, sum){
     
    if(bFs != 0) $(bId).style.top=(sum+pos)/bFs+'em';
    
} placePos('banner-mkt', findPos('banner-mkt-area'), 0); $('banner-mkt').style.display='block';

// posiciona banners //
var DEcfg="site=uolbr&chan=homeuol&subchan=capa";
var Expble=0;
var DErand=Math.floor(1000000*Math.random());
var DEconn=d.body; DEconn.style.behavior='url(#default#clientCaps)'; DEconn=(DEconn.connectionType=='lan')?1:0;
var scw=0,sch=0; if(screen.height){scw=screen.width;sch=screen.height;}
function DEshow(ad,pos,sum){
if(typeof(sum)=='undefined') sum=0;
if($('banner-'+ad+'-'+pos+'-area')){
    d.write('<scr'+'ipt language="JavaScript1.1" src="http://de.uol.com.br/js.ng/'+DEcfg+'&size='+ad+'&page='+pos+'&conntype='+DEconn+'&expble='+Expble+'&reso='+scw+'x'+sch+'&ord='+DErand+'?"></scr'+'ipt>');
    if(ad!='1x1'&&ad!='300x250'&&ad!='100x100') placePos('banner-'+ad+'-'+pos, findPos('banner-'+ad+'-'+pos+'-area'), sum); // se não é popup, posiciona na tela
    }
}
/* /uolhome:arq */
</script>

</body>
</html>

Link para o comentário
Compartilhar em outros sites

Participe da discussão

Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.

Visitante
Responder esta pergunta...

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emoticons são permitidos.

×   Seu link foi incorporado automaticamente.   Exibir como um link em vez disso

×   Seu conteúdo anterior foi restaurado.   Limpar Editor

×   Você não pode colar imagens diretamente. Carregar ou inserir imagens do URL.



  • Estatísticas dos Fóruns

    • Tópicos
      152k
    • Posts
      651,7k
×
×
  • Criar Novo...