Ir para conteúdo
Fórum Script Brasil

veteranodf

Membros
  • Total de itens

    14
  • Registro em

  • Última visita

Sobre veteranodf

veteranodf's Achievements

0

Reputação

  1. Problema resolvido brother, vlw pela dica, depois de muitas tentativa com css e javascript,conseguir com o "include", para resolver o problema eu fiz o seguinte, o menu que eu descrevir acima eu salvei em um arquivo txt de nome "links.txt" e coloquei na minha pagina o script <?php include ("links.txt");?> chamando o arquivo. Com isso eu apenas coloco nas minhas paginas o script "include" chamando o arquivo que contem todos os meus,com isso a unica mudança que eu faço é no arquivo links.txt Vlw brother,brigadão pela dica.
  2. Até ai tudo certo brother, vou explicar melhor vou postar os links abaixo e depois explicar. <! segunda parte do menu de produtos > <!--- START MENU HTML --> <div id="dhtmlgoodies_menu"> <ul> <li> <a href="abajur.htm">Abajur</a> </li> <li><a href="#">Antena & Complemento</a> <ul> <li><a href="antena.htm">Antenas seladas & Tubulares &nbsp;</a></li> <li><a href="acessorios_para_antena.htm">Acessórios p/ antenas & TV&nbsp;</a></li> <li><a href="suporte_para_antena.htm">Suportes p/ antenas</a></li> </ul> </li> <li> <a href="arandela.htm">Arandela</a> </li> <li><a href="#">Áudio & Vídeo</a> <ul> <li><a href="cabo_audio_video.htm">Cabos diversos</a></li> <li><a href="plugs_adaptadores_audio_video.htm">Plugs / Terminais / Adaptadores&nbsp;</a></li> </ul> </li> <li><a href="chave_tic_tac.htm">Chaves tic-tac</a></li> <li><a href="#">Fios & Cabos</a> <ul> <li><a href="cabo_antena.htm">Cabo para antena &nbsp;</a></li> <li><a href="cabo_flexivel.htm">Cabos flexíveis</a></li> <li><a href="cabo_flexivel_pirelli.htm">Cabos Pirelli</a></li> <li><a href="cabo_pp.htm">Cabo PP</a></li> <li><a href="ffio_paralelo_para_som.htm">Fios para som</a></li> <li><a href="fio_solido.htm">Fios sólidos</a></li> <li><a href="fio_solido_pirelli.htm">Fios sólidos pirelli</a></li> </ul> </li> <li><a href="#">Disjuntores</a> <ul> <li><a href="disjuntor_nema.htm">Disjuntores Nema &nbsp;</a></li> <li><a href="disjuntor_din.htm">Disjuntores Din</a></li> </ul> </li> <li><a href="#">Duchas & Chuveiros </a> <ul> <li><a href="ducha_corona.htm">Duchas e chuveiros Corona</a></li> <li><a href="ducha_fame.htm">Duchas e chuveiros Fame</a></li> <li><a href="ducha_lorenzetti.htm">Duchas e chuveiros Lorenzetti &nbsp;</a></li> </ul> </li> <li><a href="#">Informática & Proteção</a> <ul> <li><a href="informatica_alicate_filtro_testador.htm">Alicates / Filtros / Ferramentas&nbsp;</a></li> <li><a href="informatica_cabos.htm">Cabos</a></li> <li><a href="informatica_adaptadores_e_tomadas.htm">Conectores & Tomadas</a></li> <li><a href="etabilizador.htm">Estabilizadores</a></li> <li><a href="filtro_de_linha_eletrico.htm">Filtros de energia</a></li> </ul> </li> <li><a href="estensao_telefonica_eletrica.htm">Extensões</a></li> <li><a href="timer_sensor_rele.htm">Timer/Sensores/Relés</a> </li> <li><a href="#">Tomadas & Apagadores</a> <ul> <li><a href="tomada_peesa.htm">Linha Alfa modulare &nbsp;</a></li> <li><a href="fame_modulare.htm">Fame modulare</a></li> <li><a href="fame_blanc.htm">Fame blanc</a></li> <li><a href="linha_de_canaleta.htm">Linha de canaleta</a></li> <li><a href="tomada_em_barra.htm">Tomadas em barra</a></li> </ul> </li> <li><a href="#">Lâmpadas</a> <ul> <li><a href="lampada_abajur.htm">Lâmpadas para abajur</a></li> <li><a href="lampada_bipino.htm">Lâmpadas bipino</a></li> <li><a href="lampada_circular_e_pl.htm">Lâmpadas circular & PL</a></li> <li><a href="lampada_comum_e_spot.htm">Lâmpadas comuns & Spots</a></li> <li><a href="lampada_decorativa.htm">Lâmpadas decorativas</a></li> <li><a href="lampada_dicroica.htm">Lâmpadas dicróicas</a></li> <li><a href="lampada_economica.htm">Lâmpadas econômicas</a></li> <li><a href="lampada_fluorescente.htm">Lâmpadas fluorescentes</a></li> <li><a href="lampada_fluorescente_colorida.htm">Lâmpadas fluorescentes coloridas</a></li> <li><a href="lampada_geladeira_maquina_microondas.htm">Lâmpadas para eletrodomésticos</a></li> <li><a href="lampada_halogena.htm">Lâmpadas para refletores</a></li> <li><a href="lampada_mista.htm">Lâmpadas mistas</a></li> <li><a href="lampada_par.htm">Lâmpadas para decoração de jardin &nbsp;</a></li> <li><a href="lampada_vapor_metalica.htm">Lâmpadas vapor metalicas</a></li> <li><a href="lampada_vela.htm">Lâmpadas vela</a></li> <li><a href="lampadas_luz_negra.htm">Lâmpadas luz negra</a></li> </ul> </li> <li><a href="#">Luminária</a> <ul> <li><a href="luminaria_de_mesa.htm">luminárias de mesa</a> <li><a href="luminaria_aletada.htm">Luminárias fluorescentes aletadas</a></li> <li><a href="luminaria_comercial.htm">Luminárias fluorescentes comerciais &nbsp;</a></li> <li><a href="luminaria_tubular.htm">Luminárias fluorescentes tubulares</a></li> </ul> </li> <li><a href="#">Lustres & Pendentes</a> <ul> <li><a href="lustre_bronze.htm">Lustres de bronze</a></li> <li><a href="lustre_square.htm">lustres squares</a></li> <li><a href="lustres.htm">Lustres com 2 e 3 tulípas &nbsp;</a></li> <li><a href="pendente infantil.htm">pendente infantil &nbsp;</a></li> </ul> </li> <li><a href="#">Pinos & Adaptadores</a> <ul> <li><a href="pinos_adaptadores_eletricos.htm">Pinos adaptadores elétricos</a></li> <li><a href="pinos_adaptadors_telefonicos.htm">Pinos & adaptadores telefônicos &nbsp;</a></li> <li><a href="pinos_eletricos.htm">Pinos elétricos</a></li> </ul> <li><a href="plafon.htm">Plafons</a> </li> <li><a href="#">Reatores</a> <ul> <li><a href="reator.htm">Reatores eletrônicos</a></li> <li><a href="spot_lampada_comum.htm">Reatores vapor metálico &nbsp;</a></li> </ul> <li><a href="refletor.htm">Refletores </a> </li> <li><a href="#">Spots de embutir</a> <ul> <li><a href="spot_dicroica.htm">Spots dicróicas</a></li> <li><a href="spot_lampada_comum.htm">spots p/ lâmpadas econômicas &nbsp;</a></li> </ul> <li><a href="#">Terminais para fios</a> <ul> <li><a href="terminais_isolados_para_fios.htm">Terminais isolados &nbsp;</a> <li><a href="terminais_sindal_para_fios.htm">Terminais sindal &nbsp;</a> </ul> <li><a href="varais.htm">Varais para roupas</a> </li> </div> Tenho todos esses links, oque eu quero é salvar eles em um arquivo, sei lá pode ser em css e depois colocar um comando na minha pagina que chame e mostre esses links, isso eu não sei faser. será que você pode me ajudar brother, css e java eu não intendo muito bem.
  3. To desenvolvendo uma pagina,nessa pagina eu uso um menu drop down que é feito em java e css,essa pagina tem a pagina inicial e mais umas 40 paginas,o que acontece é o seguinte sempre to melhorando a pagina e os links do menu drop dow sempre estão sendo mudados, o problema é esse se eu mudo o link na pagina inicial tenho que mudar em todas as outras 40 paginas, o que eu tou querendo é o seguinte, num sei se tem como faser mais vai lá minha pergunta eu to querendo salvar meus links em um arquivo de nome links, na minha pagina eu colocaria um script chamando esse arquivo com todos os meus links, dessa forma nas outras pagina eu so colocaria o script chamando esse arquivo,assim a unica modificação que eu faria seria no arquivo não sendo necessario mudar todos os links de todas as paginas. ficou meio confuso mais acho que dar para entender, será que alguém já passou por isso e tem uma dica para me dar. Vlw galera
  4. Tenho um script de um menu que usa esta função, ele funciona corretamente,ai encontrei um script muinto bom na net, é um slyde de imagens que usa a mesma função para abrir (window.onload) e este script esta entrando em conflito com o outro e nada funciona, já vir que se eu tiver outro script que usa esta mesma função nada rola na pagina. alguém já passou pelo mesmo problema e tem alguma dica que pode me ajudar. Vlw galera
  5. E ai galerá de boa, pessoal já tentei tudo que é jeito mais num consigo mandar email, tenho o Xampp e o Mercury instalado, tenho que configurar oque para dar certo sempre que tento mandar uma email sempre volta esse erro. Warning: mail() [function.mail]: SMTP server response: 553 We do not relay non-local mail, sorry. in D:\Arquivos de programas\xampp\htdocs\scripts\contato\envia.php on line 7 Warning: Cannot modify header information - headers already sent by (output started at D:\Arquivos de programas\xampp\htdocs\scripts\contato\envia.php:7) in D:\Arquivos de programas\xampp\htdocs\scripts\contato\envia.php on line 8 pelo que eu lir na net tenho que ter um servidor de email mais o proprio mercury é um, alguém pode me dar uma dica de como posso resolver esse erro, ou alguém tem um tutorial de como eu configurar o mercury para ele funcionar corretamente. Vlw.
  6. veteranodf

    Banco De Dado

    valeu gente vocês responderão minha duvida, e só complementando eu criei o BD utilizando a ferramenta mysql que tem no PHPMyAdmin, oque eu não sabia era como meu script comunicava com o BD, isso vocês me responderão. vlw galera
  7. veteranodf

    Banco De Dado

    Banco de dado e php não tenho muito conhecimento de como usar, tenho um script que necessita de banco de dados é um script de login, to utilizando o Xampp, já criei o BD utilizando o phpmyadmin, até ai tudo bem o banco de dado é criado a pasta acho que é mysql na sub-pasta data, bom oque tenho que faser para meu script funcionar é informar esta pasta onde ta meu banco de dado, ou copiar a pasta (data) para onde esta meu script que esta dentro (htdocs) e informar o caminho no meu script, não sei como faser alguém pode me ajudar. Obrigado jente
  8. To precisando de um script de carrinho de compra, já vir varios scripts mais todos tem que colocar preço e outra frescuras, o que eu to querendo é bem simples, é um script para orçamento então não precisa ter preços nos produtos, na pagina de produtos o cliente apenas coloca a quantidade e pede para add no carrinho, e na pagina para finalizar o pedido tem que aparecer a marca a descrição do produto e a quantidade fornecida pelo cliente de cada produto, nessa pagina tem que pegar os dados do cliente como nome, email, telefone e finaliza o pedido enviado os dados por email para mim. será que alguém tem alguma coisa parecida, se tiver é quiser compartilha eu agradeço.
  9. Eu instalei automatico o c:\Arquivos de Programas\Xampp\htdocs e não em arquivo zip, então ficou mais facil ainda entender a sua explicação, se eu não consegui depois dessa dica posso desistir de tentar alguma coisa com php kkkkkkkk, mais quem desiste não sai do lugar sempre percistirei nessa programação, abraço véi e vlw pela dica, e sem mais perguntas por kkkkk.
  10. Até onde você disse eu conseguir chegar facil, so não coloquei meus projetos nessa pasta que você disse (htdocs), vamos ver se daqui para domingo consigo alguma coisa. Só uma pergunta se eu tiver mechendo com sistemas que necessite de BD com sistemas de logim tenho que criar tambem, eu peguei uns scripts prontos que já tinha o arquivo banco de dado, pergunta e só colocar todos os arquivos php dentro da pasta que você me passou? e para eu testar como faço? Vlw amigo.
  11. véi valeu pela dica,eu já baixei já instalei mas ta na mesma, dar uma dica ai como usa o programa beleza. Vlw.
  12. Cara foi mal mesmo o mais importante eu não coloquei. Os outros scripts de cima tem que ser salvados na pasta da pagina. thumbnailviewer.css thumbnailviewer.js esse aqui você vai colocar na imgem <a href="aqui você coloca o caminho da imagem a ser aberta quando clicada" rel="thumbnail"> <img src="e aqui a imagem que servirar de link para ser clicada" width="100" height="100" alt="" border="0"> </a> Eu tenho imagens de varios tamanhos, e o script sempre abre com 100% do tamanho, quero programar para sempre abrir com o mesmo tamanho tipo 100 x 100, 300 x 300 independente do tamanho original da imagem, beleza.
  13. Tenho um script e ele funciona corretamente,ele funciona como um pop-up quando abri a imagem ele redimenciona para o tamanho total,o que eu queria é pre-fixa um tamanho para todas as imagem quando aberta, sera que alguém tem uma dica? valeu gente. Ai vai os scripts thumbnailviewer esse é a folha de stilo #thumbBox{ position: absolute; left: 0; top: 0; width= auto; padding: 5px; padding-bottom: 0; background: #313131; visibility: hidden; z-index: 10; cursor: hand; cursor: pointer; } #thumbBox .footerbar{ font: bold 16px Tahoma; letter-spacing: 10px; line-height: 1.1em; color: white; padding: 5px 0; text-align: right; } #thumbBox #thumbImage{ /*DIV within thumbbox that holds the enlarged image */ background-color: white; height: 100; width: 100; } #thumbLoading{ /*DIV for showing "loading" status while thumbbox is being generated*/ position: absolute; visibility: hidden; border: 1px solid black; background-color: #EFEFEF; padding: 5px; z-index: 5; } O segundo script e o que dar o efeito na imagem thumbnailviewer esse é o script em java // ------------------------------------------------------------------- // Image Thumbnail Viewer Script- By Dynamic Drive, available at: [url=http://www.dynamicdrive.com]http://www.dynamicdrive.com[/url] // Last updated: Jan 22nd, 2007 // ------------------------------------------------------------------- var thumbnailviewer={ enableTitle: true, //Should "title" attribute of link be used as description? enableAnimation: true, //Enable fading animation? definefooter: '<div class="footerbar">Fechar</div>', //Define HTML for footer interface defineLoading: '<img src="loading.gif" /> Loading Image...', //Define HTML for "loading" div /////////////No need to edit beyond here///////////////////////// scrollbarwidth: 16, opacitystring: 'filter:progid:DXImageTransform.Microsoft.alpha(opacity=10); -moz-opacity: 0.1; opacity: 0.1', targetlinks:[], //Array to hold links with rel="thumbnail" createthumbBox:function(){ //write out HTML for Image Thumbnail Viewer plus loading div document.write('<div id="thumbBox" onClick="thumbnailviewer.closeit()"><div id="thumbImage"></div>'+this.definefooter+'</div>') document.write('<div id="thumbLoading">'+this.defineLoading+'</div>') this.thumbBox=document.getElementById("thumbBox") this.thumbImage=document.getElementById("thumbImage") //Reference div that holds the shown image this.thumbLoading=document.getElementById("thumbLoading") //Reference "loading" div that will be shown while image is fetched this.standardbody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body //create reference to common "body" across doctypes }, centerDiv:function(divobj){ //Centers a div element on the page var ie=document.all && !window.opera var dom=document.getElementById var scroll_top=(ie)? this.standardbody.scrollTop : window.pageYOffset var scroll_left=(ie)? this.standardbody.scrollLeft : window.pageXOffset var docwidth=(ie)? this.standardbody.clientWidth : window.innerWidth-this.scrollbarwidth var docheight=(ie)? this.standardbody.clientHeight: window.innerHeight var docheightcomplete=(this.standardbody.offsetHeight>this.standardbody.scrollHeight)? this.standardbody.offsetHeight : this.standardbody.scrollHeight //Full scroll height of document var objwidth=divobj.offsetWidth //width of div element var objheight=divobj.offsetHeight //height of div element var topposition=(docheight>objheight)? scroll_top+docheight/2-objheight/2+"px" : scroll_top+10+"px" //Vertical position of div element: Either centered, or if element height larger than viewpoint height, 10px from top of viewpoint divobj.style.left=docwidth/2-objwidth/2+"px" //Center div element horizontally divobj.style.top=Math.floor(parseInt(topposition))+"px" divobj.style.visibility="visible" }, showthumbBox:function(){ //Show ThumbBox div this.centerDiv(this.thumbBox) if (this.enableAnimation){ //If fading animation enabled this.currentopacity=0.1 //Starting opacity value this.opacitytimer=setInterval("thumbnailviewer.opacityanimation()", 20) } }, loadimage:function(link){ //Load image function that gets attached to each link on the page with rel="thumbnail" if (this.thumbBox.style.visibility=="visible") //if thumbox is visible on the page already this.closeit() //Hide it first (not doing so causes triggers some positioning bug in Firefox var imageHTML='<img src="'+link.getAttribute("href")+'" style="'+this.opacitystring+'" />' //Construct HTML for shown image if (this.enableTitle && link.getAttribute("title")) //Use title attr of the link as description? imageHTML+='<br />'+link.getAttribute("title") this.centerDiv(this.thumbLoading) //Center and display "loading" div while we set up the image to be shown this.thumbImage.innerHTML=imageHTML //Populate thumbImage div with shown image's HTML (while still hidden) this.featureImage=this.thumbImage.getElementsByTagName("img")[0] //Reference shown image itself this.featureImage.onload=function(){ //When target image has completely loaded thumbnailviewer.thumbLoading.style.visibility="hidden" //Hide "loading" div thumbnailviewer.showthumbBox() //Display "thumbbox" div to the world! } if (document.all && !window.createPopup) //Target IE5.0 browsers only. Address IE image cache not firing onload bug: panoramio.com/blog/onload-event/ this.featureImage.src=link.getAttribute("href") this.featureImage.onerror=function(){ //If an error has occurred while loading the image to show thumbnailviewer.thumbLoading.style.visibility="hidden" //Hide "loading" div, game over } }, setimgopacity:function(value){ //Sets the opacity of "thumbimage" div per the passed in value setting (0 to 1 and in between) var targetobject=this.featureImage if (targetobject.filters && targetobject.filters[0]){ //IE syntax if (typeof targetobject.filters[0].opacity=="number") //IE6 targetobject.filters[0].opacity=value*100 else //IE 5.5 targetobject.style.filter="alpha(opacity="+value*100+")" } else if (typeof targetobject.style.MozOpacity!="undefined") //Old Mozilla syntax targetobject.style.MozOpacity=value else if (typeof targetobject.style.opacity!="undefined") //Standard opacity syntax targetobject.style.opacity=value else //Non of the above, stop opacity animation this.stopanimation() }, opacityanimation:function(){ //Gradually increase opacity function this.setimgopacity(this.currentopacity) this.currentopacity+=0.1 if (this.currentopacity>1) this.stopanimation() }, stopanimation:function(){ if (typeof this.opacitytimer!="undefined") clearInterval(this.opacitytimer) }, closeit:function(){ //Close "thumbbox" div function this.stopanimation() this.thumbBox.style.visibility="hidden" this.thumbImage.innerHTML="" this.thumbBox.style.left="-2000px" this.thumbBox.style.top="-2000px" }, cleanup:function(){ //Clean up routine on page unload this.thumbLoading=null if (this.featureImage) this.featureImage.onload=null this.featureImage=null this.thumbImage=null for (var i=0; i<this.targetlinks.length; i++) this.targetlinks[i].onclick=null this.thumbBox=null }, dotask:function(target, functionref, tasktype){ //assign a function to execute to an event handler (ie: onunload) var tasktype=(window.addEventListener)? tasktype : "on"+tasktype if (target.addEventListener) target.addEventListener(tasktype, functionref, false) else if (target.attachEvent) target.attachEvent(tasktype, functionref) }, init:function(){ //Initialize thumbnail viewer script by scanning page and attaching appropriate function to links with rel="thumbnail" if (!this.enableAnimation) this.opacitystring="" var pagelinks=document.getElementsByTagName("a") for (var i=0; i<pagelinks.length; i++){ //BEGIN FOR LOOP if (pagelinks[i].getAttribute("rel") && pagelinks[i].getAttribute("rel")=="thumbnail"){ //Begin if statement pagelinks[i].onclick=function(){ thumbnailviewer.stopanimation() //Stop any currently running fade animation on "thumbbox" div before proceeding thumbnailviewer.loadimage(this) //Load image return false } this.targetlinks[this.targetlinks.length]=pagelinks[i] //store reference to target link } //end if statement } //END FOR LOOP //Reposition "thumbbox" div when page is resized this.dotask(window, function(){if (thumbnailviewer.thumbBox.style.visibility=="visible") thumbnailviewer.centerDiv(thumbnailviewer.thumbBox)}, "resize") } //END init() function } thumbnailviewer.createthumbBox() //Output HTML for the image thumbnail viewer thumbnailviewer.dotask(window, function(){thumbnailviewer.init()}, "load") //Initialize script on page load thumbnailviewer.dotask(window, function(){thumbnailviewer.cleanup()}, "unload")
  14. Gostaria de saber se tem algum programa para visualizar scripts php, ou tem que hospedar em um servidor que aceite php para poder visualizar se ta funcionando corretamente. Obrigado, sou leigo em php agradeço pela ajuda.
×
×
  • Criar Novo...