Ir para conteúdo
Fórum Script Brasil

Reginaldo ASP

Membros
  • Total de itens

    781
  • Registro em

  • Última visita

Tudo que Reginaldo ASP postou

  1. Reginaldo ASP

    Php,asp Ou Cgi ?

    A única linguagem dessas que eu trabalho é o ASP. Falando apenas como linguagem (Eu utilizo VB Script) eu considero uma linguagem relativamente fácil de se aprender. A maioria das pesoas que conheço, aprenderam sozinhas...
  2. Aí está a DHTML ... Exatamente a mesma; é só copiar e colar... <!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"> <script> var upH = 12; // Height of up-arrow var upW = 12; // Width of up-arrow var downH = 19; // Height of down-arrow var downW = 12; // Width of down-arrow var dragH = 11; // Height of scrollbar var dragW = 12; // Width of scrollbar var scrollH = 180; // Height of scrollbar var speed = 12; // Scroll speed var navegador = new DetectaNavegador(); var clickUp, clickDown, clickDrag, clickAbove, clickBelow = false; var timer = setTimeout("",500); var upL, upT, downL, downT, dragL, dragT, rulerL, rulerT, contentT, contentH, contentClipH, scrollLength, startY; var mouseY, mouseX; var pageWidth, pageHeight = null; function DetectaNavegador(){ this.ver=navigator.appVersion; this.agent=navigator.userAgent; this.dom=document.getElementById?1:0; this.opera5=(navigator.userAgent.indexOf("Opera")>-1 && document.getElementById)?1:0; this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0; this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0; this.ie4=(document.all && !this.dom && !this.opera5)?1:0; this.ie=(document.all)?1:0; this.mac=this.agent.indexOf("Mac")>-1; this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; this.ns4=(document.layers && !this.dom)?1:0; this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5); this.oculta = (this.ie || this.dom)? "hidden" : "hide"; this.mostrar = (this.ie || this.dom)? "visible" : "show"; } function modifica(id,t,l,v) { if(navegador.ns4) gaveta_mapa = document.layers[id]; if(navegador.ie6) gaveta_mapa = document.all[id].style; with(gaveta_mapa) { top = t left = l visibility = v; } } function alinhaScroll() { pageWidth = (navegador.ie)? document.body.offsetWidth : innerWidth; if(pageWidth<800) { pageWidth = 800; } pageHeight = (navegador.ie)? document.body.scrollHeight : document.height; var posLeft = (pageWidth/2)+138; var posTop1 = (pageHeight/2) - (90) -18; var posTop2 = (pageHeight/2) - (90) -18; var posTop3 = (pageHeight/2) - (90) +171; var posTop4 = (pageHeight/2) - (90) -8; modifica('bgscroll',posTop1,posLeft,navegador.mostrar); modifica('up',posTop2,posLeft,navegador.mostrar); modifica('down',posTop3,posLeft,navegador.mostrar); modifica('drag',posTop4,posLeft,navegador.mostrar); modifica('ruler',posTop4,posLeft,navegador.mostrar); modifica('contentClip',posTop2,posLeft-295,navegador.mostrar); } function down(e){ if((navegador.ns4 && e.which!=1) || (navegador.ie && event.button!=1)) return true; getMouse(e); startY = (mouseY - dragT); if(mouseX >= upL && (mouseX <= (upL + upW)) && mouseY >= upT && (mouseY <= (upT + upH))){ clickUp = true; return scrollUp(); } else if(mouseX >= downL && (mouseX <= (downL + downW)) && mouseY >= downT && (mouseY <= (downT + downH))){ clickDown = true; return scrollDown(); } else if(mouseX >= dragL && (mouseX <= (dragL + dragW)) && mouseY >= dragT && (mouseY <= (dragT + dragH))){ clickDrag = true; return false; } else if(mouseX >= dragL && (mouseX <= (dragL + dragW)) && mouseY >= rulerT && (mouseY <= (rulerT + scrollH))){ if(mouseY < dragT){ clickAbove = true; clickUp = true; return scrollUp(); } else{ clickBelow = true; clickDown = true; return scrollDown(); } } else{ return true; } } function move(e){ if(clickDrag && contentH > contentClipH){ getMouse(e); dragT = (mouseY - startY); if(dragT < (rulerT)) dragT = rulerT; if(dragT > (rulerT + scrollH - dragH)) dragT = (rulerT + scrollH - dragH); contentT = ((dragT - rulerT)*(1/scrollLength)); contentT = eval('-' + contentT); moveTo(); if(navegador.ie) return false; } } function up(){ clearTimeout(timer); clickUp = false; clickDown = false; clickDrag = false; clickAbove = false; clickBelow = false; return true; } function getT(){ if(navegador.ie) contentT = document.all.content.style.pixelTop; else if(navegador.ns4) contentT = document.contentClip.document.content.top; else if(navegador.dom) contentT = parseInt(document.getElementById("content").style.top); } function getMouse(e){ if(navegador.ie){ mouseY = event.clientY + document.body.scrollTop; mouseX = event.clientX + document.body.scrollLeft; } else if(navegador.ns4 || navegador.dom){ mouseY = e.pageY; mouseX = e.pageX; } } function moveTo(){ if(navegador.ie6){ document.all.content.style.top = contentT; document.all.ruler.style.top = dragT; document.all.drag.style.top = dragT; } else if(navegador.ns4){ document.contentClip.document.content.top = contentT; document.ruler.top = dragT; document.drag.top = dragT; } else if(navegador.dom){ document.getElementById("content").style.top = contentT + "px"; document.getElementById("drag").style.top = dragT + "px"; document.getElementById("ruler").style.top = dragT + "px"; } } function scrollUp(){ getT(); if(clickAbove){ if(dragT <= (mouseY-(dragH/2))) return up(); } if(clickUp){ if(contentT < 0){ dragT = dragT - (speed*scrollLength); if(dragT < (rulerT)) dragT = rulerT; contentT = contentT + speed; if(contentT > 0) contentT = 0; moveTo(); timer = setTimeout("scrollUp()",25); } } return false; } function scrollDown(){ getT(); if(clickBelow){ if(dragT >= (mouseY-(dragH/2))) return up(); } if(clickDown){ if(contentT > -(contentH - contentClipH)){ dragT = dragT + (speed*scrollLength); if(dragT > (rulerT + scrollH - dragH)) dragT = (rulerT + scrollH - dragH); contentT = contentT - speed; if(contentT < -(contentH - contentClipH)) contentT = -(contentH - contentClipH); moveTo(); timer = setTimeout("scrollDown()",25); } } return false; } function reloadPage(){ location.reload(); alinhaScroll(); } function eventLoader(){ alinhaScroll(); if(navegador.ie){ upL = document.all.up.style.pixelLeft; upT = document.all.up.style.pixelTop; downL = document.all.down.style.pixelLeft; downT = document.all.down.style.pixelTop; dragL = document.all.drag.style.pixelLeft; dragT = document.all.drag.style.pixelTop; rulerT = document.all.ruler.style.pixelTop; contentH = parseInt(document.all.content.scrollHeight); contentClipH = parseInt(document.all.contentClip.style.height); } else if(navegador.ns4){ upL = document.up.left; upT = document.up.top; downL = document.down.left; downT = document.down.top; dragL = document.drag.left; dragT = document.drag.top; rulerT = document.ruler.top; contentH = document.contentClip.document.content.clip.bottom; contentClipH = document.contentClip.clip.bottom; } else if(navegador.dom){ upL = parseInt(document.getElementById("up").style.left); upT = parseInt(document.getElementById("up").style.top); downL = parseInt(document.getElementById("down").style.left); downT = parseInt(document.getElementById("down").style.top); dragL = parseInt(document.getElementById("drag").style.left); dragT = parseInt(document.getElementById("drag").style.top); rulerT = parseInt(document.getElementById("ruler").style.top); contentH = parseInt(document.getElementById("content").offsetHeight); contentClipH = parseInt(document.getElementById("contentClip").offsetHeight); document.getElementById("content").style.top = 0 + "px"; } if(contentClipH > contentH) { modifica('bgscroll',0,0,navegador.oculta); modifica('up',0,0,navegador.oculta); modifica('down',0,0,navegador.oculta); modifica('drag',0,0,navegador.oculta); modifica('ruler',0,0,navegador.oculta); } scrollLength = ((scrollH-dragH)/(contentH-contentClipH)); if(navegador.ns4){ document.captureEvents(Event.MOUSEDOWN | Event.MOUSEMOVE | Event.MOUSEUP); } window.onresize = ajusta; document.onmousedown = down; document.onmousemove = move; document.onmouseup = up; } function ajusta() { if(navegador.ns4){ reloadPage(); } else { eventLoader(); } } window.onload = eventLoader; </script> <style> .corBg { background-color: #478C45; } .corScroll { background-color: #377308; } .tituloBg { background-image: url(http://www.ambev.com.br/images/respsocial/img_tit_bg_respsocial.gif); background-color: #478C45; } .imgDirBg1 { background-image: url(http://www.ambev.com.br/images/respsocial/alfabetizacao/img_dir_1.gif); background-color: #478C45; background-repeat: no-repeat; } .imgDirBg2 { background-image: url(http://www.ambev.com.br/images/respsocial/alfabetizacao/img_dir_2.gif); background-color: #478C45; background-repeat: no-repeat; } #content { position: absolute; overflow: visible; } #ruler {cursor: hand;} #down {cursor: hand;} #up {cursor: hand;} .tit1 { font-family : Verdana, Arial; font-size : 10px; font-weight : bold; color : White; text-decoration : none; } .tit1:hover { font-family : Verdana, Arial; font-size : 10px; font-weight : bold; color : White; text-decoration : underline; } .tit2 { font-family : Verdana, Arial; font-size : 11px; font-weight : bold; color : White; text-decoration : none; } .tit3 { font-family : Verdana, Arial; font-size : 12px; font-weight : bold; color : White; text-decoration : none; } .tit4 { font-family : Verdana, Arial; font-size : 13px; font-weight : bold; color : White; text-decoration : none; } .tit5 { font-family : Verdana, Arial; font-size : 14px; font-weight : bold; color : White; text-decoration : none; } .txt1 { font-family : Verdana, Arial; font-size : 8px; color : White; text-decoration : none; }; .txt1 A { font-family : Verdana, Arial; font-size : 8px; color : White; }; .txt2 { font-family : Verdana, Arial; font-size : 9px; color : White; text-decoration : none; }; .txt2 A { font-family : Verdana, Arial; font-size : 9px; color : White; }; .txt3 { font-family : Verdana, Arial; font-size : 10px; color : White; text-decoration : none; }; .txt3 A { font-family : Verdana, Arial; font-size : 10px; color : White; }; .txt4 { font-family : Verdana, Arial; font-size : 11px; color : White; text-decoration : none; }; .txt4 A { font-family : Verdana, Arial; font-size : 11px; color : White; }; .txt5 { font-family : Verdana, Arial; font-size : 12px; color : White; text-decoration : none; }; .txt5 A { font-family : Verdana, Arial; font-size : 12px; color : White; }; .txt6 { font-family : Verdana, Arial; font-size : 13px; color : White; text-decoration : none; }; .txt6 A { font-family : Verdana, Arial; font-size : 13px; color : White; }; .txt7 { font-family : Verdana, Arial; font-size : 14px; color : White; text-decoration : none; }; .txt7 A { font-family : Verdana, Arial; font-size : 14px; color : White; }; .menu1 { font-family : HelveticaNeue, Verdana, Arial; font-size : 12px; font-weight : bold; color : White; text-decoration : none; } .menu1:hover { color : #0072D4; text-decoration : none; } .legalInformation { font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; font-size : 10px; color : #828282; font-weight : normal; } .busca{ @if(ns4) { font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; font-size : 8pt; border-color : #828282 #E4E4E4 #E4E4E4 #828282; width : 80px; height : 15px; border-width : 1px 1px 1px 1px; }} </style> </head> <body> <SPAN ID="bgscroll" STYLE="position: absolute; top: 193px; left: 650px; z-index: 1; width: 12; height: 200; visibility: hidden;"><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><TR><TD WIDTH=12 CLASS="corScroll"><A HREF="javascript:;"><IMG SRC="http://www.ambev.com.br/images/spacer.gif" WIDTH=12 HEIGHT=200 BORDER=0></A></TD></TR></TABLE></SPAN> <SPAN ID="up" STYLE="position: absolute; top: 193px; left: 650px; z-index: 2; width: 12; height: 12; visibility: hidden;"><IMG SRC="http://www.ambev.com.br/images/scroll/respsocial/scroll_up.gif" WIDTH="12" HEIGHT="12" ALT="" BORDER="0"></SPAN> <SPAN ID="down" STYLE="position: absolute; top: 382px; left: 650px; z-index: 3; width: 12; height: 11; visibility: hidden;"><IMG SRC="http://www.ambev.com.br/images/scroll/respsocial/scroll_down.gif" WIDTH="12" HEIGHT="11" ALT="" BORDER="0"></SPAN> <SPAN ID="drag" STYLE="position: absolute; top: 202px; left: 650px; z-index: 4; width: 12px; height: 11px; visibility: hidden;"><IMG SRC="http://www.ambev.com.br/images/scroll/respsocial/scroll_roll.gif" WIDTH="12" HEIGHT="11" ALT="" BORDER="0"></SPAN> <SPAN ID="ruler" STYLE="position: absolute; top: 202px; left: 650px; z-index: 7; width: 12px; height: 12px; visibility: hidden;">&nbsp;</SPAN> </DIV> <!-- Inicio Texto do Conteudo Principal --> <DIV ID="contentClip" STYLE="position: absolute; top: 193px; left: 355px; width: 280px; height: 200px; clip:rect(0px 280px 200px 0px); z-index: 6; overflow: hidden; visibility: hidden;"> <DIV ID="content"> <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=250> <TR> <TD VALIGN="top" CLASS="txt5"> <p class="tit3"></p> A AmBev aderiu ao Programa de Alfa<font size="1">be<font color="#000000">taaaaaaaaaaaaaaização Solidária no dia 4 de abril de 2001 e, desde então, está patrocinando a implantação do projeto em cinco municípios das regiões Norte e Nordeste do Brasil.<BR> Estes municípios estão localizados próximos a unidades de produção da companhia e foram selecionados por apresentarem taxas de analfabetismo superior a 21%. São eles: Maués (AM), Simão Dias (SE), Maragogipe (BA) e Anori (AM).<BR> Em quatro anos, o Alfabetização Solidária já conseguiu alfabetizar 1,5 milhão de brasileiros. Este resultado, associado ao seu impacto sobre a sociedade, educação e </font></font><font color="#000000">desenvolvimento do país, foram alguns dos fatores que levaram a AmBev a apoiar o programa.<br> Para maiores informações:<br /> <a href=http://www.alfabetizacao.org.br target=_blank>www.alfabetizacao.org.br</a> </font> </TD> </TR> </TABLE> </DIV> </body> </html>
  3. Para abrir em outra janela, use no seu JavaScript: document.SeuForm.target = '_blank'
  4. Cara, se o campo nãqo for numérico, você não conseguira fazer a soma, mas se ele não for, você pode convertê-lo para tal....
  5. Reginaldo ASP

    Cadastro De Membros

    Guto, você sabe trabalhar por transação? tipo rollback, commit e etc??? você pode abrir uma transação e só gravar no BD se todos os paramentros foram passados corretamente. Aí acaba esse problema de gravar "meio" registro e perder o sequencial. Se você quiser eu posso postar aqui, é só dar um alo...
  6. Reginaldo ASP

    Ajuda Urgente

    Se nesse clique ele for abrir a nova janela, você usa uma querystring, por exemplo. no dia 1 do seu calendário ele passa: novoEndereço.asp?dia=1 no valor inicial do textbox você poe: = request.querystring("dia")
  7. Seja bem vindo como GuTo também... hehehe
  8. Para que esse if funcione, é importante que no seu banco de dados o campo que armazena as notas seja NUMÉRICO.
  9. Realmente a Dequinha® é uma pessoa competente para o cargo... Tem meu apoio...
  10. Cara eu adoro a pinga de minas... Acho que é a melhor 'branquinha' do mundo... E também a mulherada rs rs rs. Assim como as paulistas, as cariocas, as gaúchas e etc...
  11. Reginaldo ASP

    Cadastro De Membros

    você quer fazer isso exclusivamente com o campo de auto-numeração, ou você quer apenas uma solução para criar um número sequencial? Eu acho mais fácil ter um campo numérico no BD e toda vez que o ASP for gravar um novo registro, você faz um sequencial simples. você pode adicionar o 1º registro como zero nesse campo sequencial, e toda vez que adicionar um registro, você faz na SELECT da SQL um order DESC e soma +1, aí é só gravar no BD, e ele jamais "pulará" algum registro...Ele sempre pegará o último e somará mais 1...
  12. você tem um futuro brilhante pela frente... Continue estudando que você vai longe. Por ser iniciante e pela suas idéias e atitudes, nota 10
  13. O site tá muito bom... Eu particularmente eliminaria de vez a barra de rolagem. E alguns logos, como o da GoldenCross, por exemplo, estão 'estourados'. Ma no geral está ótimo. Parabéns.
  14. você quer redirecionar a página ou apenas trocar o arquivo do frame?
  15. Reginaldo ASP

    Onde Vcs Moram?

    Sou de Jundiaí-SP (Pertinho da Capital)
  16. Se você quiser posicionar ele em outro local da tela ( Não sei se é isso que você quer ) você pode por o iframe dentro de uma camada...
  17. Pra isso você usa Javascript: Entre as tags <head> e </head> você insere: <script language="JavaScript" type="text/JavaScript"> function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } //--> </script> no seu link: <a href="#" onClick="MM_openBrWindow('seuPop.htm width=largura,height=altura')"> clique aqui para abrir o pop</a>
  18. Não posso negar que também tive muita sorte... Além de vontade é claro...
  19. Não posso negar que também tive muita sorte... Além de vontade é claro...
  20. Reginaldo ASP

    Boletos Bancarios

    Depende... Contratando o ItauShopline, você pode fazer download de toda a documentação assim que confirmar o contrato... Eles mandam uma dll para fazer criptografia no seu servidor e todos os manuais para você montar o esquema de envio de informações para o envio do boleto, como consultar arquivo retorno ou em XML (pra quem tem https) reimpressão e etc.. É bem simples.
  21. Urso, pode contar com a gente... No que pudermos ajudar, estamos aí... Mas você será sim o moderador, pode ter certeza disso e do nosso apoio pro que for possível...
  22. Bom, em primeiro lugar, quero parabenizar o urso, acho que foi mais que acertado a sua 'eleição'. Ele tem grandes virtudes para ser moderador, como uma paciencia fora do normal, frequencia assidua e sólidos conhecimentos em ASP... também agradeço muito ter sido indicado, principalmente pelo Jissa (isso é uma honra enorme pra mim), mas não tenho condições de ser moderador. Meu tempo é muito irregular... As vezes tenho o dia inteiro e as vezes desapareço soterrado por serviço... Se form indicar outra pessoa, eu fico entre o pgmador e o webmaster. Valeu!!!
  23. Reginaldo ASP

    Usuario Online

    Concordo plenamente com o urso... Tem cara que nem tenta fazer e sai pedindo tudo pronto... O pior, é que esses caras não aprendem nunca.
  24. Na verdade ele não hackeou sua senha, você pode ver que o seu avatar não aparece nos posts dele e ele aparece como unregistred...
  25. Foi sim... Minha namorada tinha um agencia de propaganda e não tinha ninguém que fazia web, aí como eu já programava em vb e access, resolvi arriscar em web e estou até hj... estou sempre tentando melhorar...
×
×
  • Criar Novo...