Ir para conteúdo
Fórum Script Brasil

fercosmig

Moderadores
  • Total de itens

    4.048
  • Registro em

  • Última visita

Posts postados por fercosmig

  1. conforme você vai verificando os campos, vai adicionando os errados eu uma variavel

    <script language="JavaScript" type="text/javascript">

    <!--

    function verif(){

    campos = ''

    if (document.form1.campo1.value == ''){

    campos = ' campo1 ';

    }

    if (document.form1.campo2.value == ''){

    campos = campos + ' campo2 ';

    }

    if (document.form1.campo3.value == ''){

    campos = campos + ' campo3 ';

    }

    if (campos == ''){

    return true;

    }else{

    campos = campos + 'devem ser preenchidos';

    alert(campos);

    return false;

    }

    }

    //-->

    </script>

    </head>

    <body>

    <form name="form1" onsubmit="return verif();">

    <input type="text" name="campo1" />

    <input type="text" name="campo2" />

    <input type="text" name="campo3" />

    <input type="submit" value="vai" />

    </form>

  2. <td><img src="smile1.gif" width="50px" height="50px"></td>

    <td><img src="smile2.gif" width="50px" height="50px"></td>

    <td><img src="smile3.gif" width="50px" height="50px"></td>

    cara, não sei se estou entendendo sua dúvida, mas você podeia usar assim, todas padronizadas, mesmo tamanho, uma do lado da outra..

    ae no problems!

    abraços

  3. ta fazendo um loop dentro do while com o for!

    quando for o ultimo registro vai dar erro, depois que colocar o rs.movenext coloca um if ra ver se rs é EOF

    abraços

    ----- edited -----

    while not tab.EOF and linha <= quant

    IF cor ="#FFFF99" THEN

    cor = "#EEEEEE"

    ELSE

    cor ="#FFFF99"

    END IF

    %>

    <tr bgcolor="<%= cor %>">

    <%

    for i=0 to 2

    %>

    <td width="303" align="center" height="18" bgcolor="<%=cor%>" >

    <% If tab.EOF then  %>

    <p align="left"><font size="2" face="Arial"><b>&nbsp;</b></font></td>

    <% else %>

    <p align="left"><font size="2" face="Arial"><b>&nbsp;</b><a href="capitulo.asp?capitulo=<%=tab("capitulo")%>"><%=tab("livro")&" "&tab("foto")%></a></font></td>

    <% end if %>

    <%

    if i < 2 then tab.MoveNext

    next

    tab.MoveNext

    %>

    </tr>

    <%

    Wend

    %>

    não testei amigo, mas deve tá beleza ae!

    abraços

  4. um exemplo ae!

    <script language="JavaScript" type="text/javascript">

    <!--

    function inse1(){

    asdfg.innerHTML = ('<img src="fcm.jpg" width="160px" height="120px" >')

    }

    function inse2(){

    asdfg.innerHTML = ('<img src="001.jpg" width="160px" height="120px" >')

    }

    //-->

    </script>

    </head>

    <body>

    <span onclick="inse1();">Teste1</span>

    <span onclick="inse2();">Teste2</span>

    <span id="asdfg"></span>

    abraços

    ----- edited -----

    um exemplo ae com uma função mais dinamica!

    http://scriptbrasil.com.br/forum/index.php...ndpost&p=328328

    abraços

  5. clique com o botão direito sobre o texto da noticia e exibir codigo fonte

    da uma olhada!

    <script language="JavaScript1.2">

    /*

    Pausing updown message scroller-

    &copy; Dynamic Drive (www.dynamicdrive.com)

    For full source code, installation instructions,

    Terms Of Use, visit http://www.dynamicdrive.com

    */

    //configure the below five variables to change the style of the scroller

    var scrollerwidth=176

    var scrollerheight=110

    var scrollerbgcolor='none'

    //set below to '' if you don't wish to use a background image

    var scrollerbackground='img/pt_fd_table.gif'

    //configure the below variable to change the contents of the scroller

    var messages=new Array()

    messages[0]="<font face='none'><img src='../img/applaus_news/not_jan_fev_01-exposicao.jpg' align='left' hspace='8'><b>Exposição</b><br> Contrastes 2006 - A Arte no Futebol &nbsp;<b><br><br>&raquo;&nbsp;09 de janeiro a 09 de Fevereiro</b></font>"

    messages[1]="<font face='none'><img src='../img/applaus_news/not_jan_fev_04-carnaval.jpg' align='left' hspace='6'><b>Carnaval 2006</b><br>Baile Pré-Carnavalesco</font>&nbsp;<b><br>&raquo;&nbsp;10 de fevereiro, das 21h às 3h</b></font>"

    messages[2]="<font face='none'><img src='../img/applaus_news/not_jan_fev_03-exposicao.jpg' align='left' hspace='6'><b>Exposição</b><br> A Arte Lúdica de Paula Grau</font>&nbsp;<b><br>&raquo;&nbsp;13 de fevereiro a 9 de março</b></font>"

    messages[3]="<font face='none'><img src='../img/applaus_news/not_jan_fev_05-seminario.jpg' align='left' hspace='6'><b>Seminário</b><br> Dicas de Segurança para Mulheres</font>&nbsp;<b><br>&raquo;&nbsp;21 de fevereiro, às 20h</b></font>"

    messages[4]="<font face='none'><b>Informações e reservas</b><br>(11) 2133-8606 ou <a href=mailto:cultural@clubtransatlantico.com.br> cultural@clubtransatlantico.com.br</a></font></font>"

    ///////Do not edit pass this line///////////////////////

    var ie=document.all&&navigator.userAgent.indexOf("Opera")==-1

    var dom=document.getElementById&&navigator.userAgent.indexOf("Opera")==-1

    if (messages.length>1)

    i=2

    else

    i=0

    function move1(whichlayer){

    tlayer=eval(whichlayer)

    if (tlayer.top>0&&tlayer.top<=5){

    tlayer.top=0

    setTimeout("move1(tlayer)",3000)

    setTimeout("move2(document.main.document.second)",3000)

    return

    }

    if (tlayer.top>=tlayer.document.height*-1){

    tlayer.top-=5

    setTimeout("move1(tlayer)",50)

    }

    else{

    tlayer.top=scrollerheight

    tlayer.document.write(messages)

    tlayer.document.close()

    if (i==messages.length-1)

    i=0

    else

    i++

    }

    }

    function move2(whichlayer){

    tlayer2=eval(whichlayer)

    if (tlayer2.top>0&&tlayer2.top<=5){

    tlayer2.top=0

    setTimeout("move2(tlayer2)",4000)

    setTimeout("move1(document.main.document.first)",4000)

    return

    }

    if (tlayer2.top>=tlayer2.document.height*-1){

    tlayer2.top-=5

    setTimeout("move2(tlayer2)",50)

    }

    else{

    tlayer2.top=scrollerheight

    tlayer2.document.write(messages)

    tlayer2.document.close()

    if (i==messages.length-1)

    i=0

    else

    i++

    }

    }

    function move3(whichdiv){

    tdiv=eval(whichdiv)

    if (parseInt(tdiv.style.top)>0&&parseInt(tdiv.style.top)<=5){

    tdiv.style.top=0

    setTimeout("move3(tdiv)",5000)

    setTimeout("move4(second2_obj)",5000)

    return

    }

    if (parseInt(tdiv.style.top)>=tdiv.offsetHeight*-1){

    tdiv.style.top=parseInt(tdiv.style.top)-5

    setTimeout("move3(tdiv)",50)

    }

    else{

    tdiv.style.top=scrollerheight

    tdiv.innerHTML=messages

    if (i==messages.length-1)

    i=0

    else

    i++

    }

    }

    function move4(whichdiv){

    tdiv2=eval(whichdiv)

    if (parseInt(tdiv2.style.top)>0&&parseInt(tdiv2.style.top)<=5){

    tdiv2.style.top=0

    setTimeout("move4(tdiv2)",4000)

    setTimeout("move3(first2_obj)",4000)

    return

    }

    if (parseInt(tdiv2.style.top)>=tdiv2.offsetHeight*-1){

    tdiv2.style.top=parseInt(tdiv2.style.top)-5

    setTimeout("move4(second2_obj)",50)

    }

    else{

    tdiv2.style.top=scrollerheight

    tdiv2.innerHTML=messages

    if (i==messages.length-1)

    i=0

    else

    i++

    }

    }

    function startscroll(){

    if (ie||dom){

    first2_obj=ie? first2 : document.getElementById("first2")

    second2_obj=ie? second2 : document.getElementById("second2")

    move3(first2_obj)

    second2_obj.style.top=scrollerheight

    second2_obj.style.visibility='visible'

    }

    else if (document.layers){

    document.main.visibility='show'

    move1(document.main.document.first)

    document.main.document.second.top=scrollerheight+5

    document.main.document.second.visibility='show'

    }

    }

    window.onload=startscroll

    </script>

  6. Opa! Galera!

    Sou de Guarulhos - SP

    Pensei em um "encontro" da galera da SB

    Sei que temos membros de todo o pais e até do exterior, e sei também que muitos não poderam comparecer!!!

    Pensei em alguma balada ou churras aqui em São Paulo ou "Grande São Paulo"

    Sou motociclista e adoro viajar! Sempre que posso estou na estrada ae!

    Seria uma questão de discutir e decidir!!!

    rssssssss

    Bom, não custa tentar!

    Espero a opnião de vocês!

    abraços

×
×
  • Criar Novo...