Salta al contenuto

Coding

17.9k Discussioni 86.7k Post

PHP, HTML, CSS, MySQL, Javascript, Python e tutto il resto

  • 2 Database attivi online alternativamente

    Spostato
    3
    blues
    0 Votazioni
    3 Post
    3k Visualizzazioni
    Grazie per la dritta, proverò a farlo in questo modo.
  • Semplice newsletter Flash|Php

    2
    eijiro
    0 Votazioni
    2 Post
    501 Visualizzazioni
    Ciao eijiro e benvenuto sul Forum GT! Sinceramente non ho capito cosa succede, potresti essere più preciso? Grazie mille, un saluto. Luca Bartoli
  • Akismet su sito no Wordpress

    2
    sergejp
    0 Votazioni
    2 Post
    1k Visualizzazioni
    Ciao sergejp, le istruzioni fanno riferimento a delle librerie in php che è un linguaggio di programmazione che deve essere disponibile sullo spazio hosting che utilizzi per il tuo sito. Provo quindi a spostare la tua domanda in un'altra sezione per darti più possibilità di ricevere consigli su come usare le librerie php. Valerio Notarfrancesco
  • Consiglio struttura tabella

    4
    rambco
    0 Votazioni
    4 Post
    542 Visualizzazioni
    Si, esatto. In alternativa puoi utilizzare la data in formato timestamp, dipende dalle tue esigenze. Ciao, Luca Bartoli
  • problema opacità IE

    Spostato
    2
    supadema
    0 Votazioni
    2 Post
    738 Visualizzazioni
    Ciao supadema, prova con $("#miaclasse").css("opacity",0); senza virgolette oppure $("#miaclasse").css("opacity","hide"); oppure crea una classe .myopacity .myopacity { filter:alpha(opacity=0); -moz-opacity: 0; opacity: 0; } ed applichi la classe $("#miaclasse").addClass("myopacity");
  • Script superenalotto ma mi da un errore

    Spostato
    2
    gianchi
    0 Votazioni
    2 Post
    2k Visualizzazioni
    <% a = 1 b = 90 ca = Array(16, 31, 41, 61, 65, 77) cb = Array(9, 15, 19, 38, 48, 77) cc = Array(18, 23, 31, 38, 47, 51) cd = Array(24, 30, 42, 54, 84, 85) ce = Array(19, 22, 49, 65, 70, 87) cf = Array(17, 38, 42, 50, 68, 86) cg = Array(9, 16, 31, 43, 49, 83) ch = Array(6, 24, 55, 67, 70, 75) ci = Array(18, 20, 46, 54, 57, 65) cl = Array(13, 16, 45, 58, 63, 72) cm = Array(25, 32, 64, 74, 85, 90) cn = Array(46, 49, 61, 69, 74, 82) co = Array(4, 23, 24, 35, 77, 79) cp = Array(5, 49, 71, 83, 85, 88) cq = Array(6, 29, 54, 62, 72, 80) cr = Array(10, 16, 36, 70, 71, 73) cs = Array(8, 26, 32, 44, 82, 86) ct = Array(3, 7, 48, 67, 87, 90) response.write "<table border=2 width=700 height=500 align=center>" for lotto = a to b if lotto = 1 then response.write "<tr>" end if u = u+1 s = 0 for x = 0 to 5 if lotto = ca(x) then s = s+1 if lotto = cb(x) then s = s+1 if lotto = cc(x) then s = s+1 if lotto = cd(x) then s = s+1 if lotto = ce(x) then s = s+1 if lotto = cf(x) then s = s+1 if lotto = cg(x) then s = s+1 if lotto = ch(x) then s = s+1 if lotto = ci(x) then s = s+1 if lotto = cl(x) then s = s+1 if lotto = cm(x) then s = s+1 if lotto = cn(x) then s = s+1 if lotto = co(x) then s = s+1 if lotto = cp(x) then s = s+1 if lotto = cq(x) then s = s+1 if lotto = cr(x) then s = s+1 if lotto = cs(x) then s = s+1 if lotto = ct(x) then s = s+1 next if s >0 then response.write "<th><font color=""red"">"& lotto & "<sup>" & s & "</sup></font></th>" else response.write ("<th>"& lotto & "<sup>" & s & "</sup></th>") end if if u = 10 then response.write "</tr><tr>" u = 0 end if next response.write "</table>" %>
  • Problema modifica template wordpress PHP

    2
    manuslash89
    0 Votazioni
    2 Post
    816 Visualizzazioni
    Nessuno?
  • Script o guida per ricerca con filtri

    1
    cla83
    0 Votazioni
    1 Post
    459 Visualizzazioni
    Nessuno ha risposto
  • Animazione javascript

    Spostato
    1
    ricdata
    0 Votazioni
    1 Post
    984 Visualizzazioni
    Nessuno ha risposto
  • Aggiungere effetto fade Jquery?

    Spostato
    4
    gleenk
    0 Votazioni
    4 Post
    2k Visualizzazioni
    ciao avrei un problema simile. ho installato uno script da flowplayer, una galleria di miniature che al click visualizza l'immagine più grande (non lightbox). il fade delle foto non mi piace, ho provato a cambiarlo con un fadein ma non funziona nulla guardando il codice cosa dovrei cambiare? grazie per l'attenzione $("#browsable").scrollable().navigator(); $(function() { $(".scrollable").scrollable(); $(".items img").click(function() { // see if same thumb is being clicked if ($(this).hasClass("active")) { return; } // calclulate large image's URL based on the thumbnail URL (flickr specific) var url = $(this).attr("src").replace("_t", ""); // get handle to element that wraps the image and make it semi-transparent var wrap = $("#image_wrap").fadeTo("medium", 0.5); // the large image from ww.flickr.co var img = new Image(); // call this function after it's loaded img.onload = function() { // make wrapper fully visible wrap.fadeTo("fast", 1); // change the image wrap.find("img").attr("src", url); }; // begin loading the image from ww.flickr.co img.src = url; // activate item $(".items img").removeClass("active"); $(this).addClass("active"); // when page loads simulate a "click" on the first image }).filter(":first").click(); });
  • Generare XML da PHP

    2
    roxasshadow
    0 Votazioni
    2 Post
    1k Visualizzazioni
    Ciao, a meno di ultimi aggiornamenti che non conosco, con SimpleXML non si riesce a gestire nodi con CDATA. Qui: php.net/manual/en/simplexmlelement.addChild.php#89616 (post del 17-Mar-2009 02:56) trovi un'estensione della classe per creare campi con CDATA che ti permette poi di inserire caratteri speciali. Vedi se può fare al caso tuo. Alessandro
  • Incompatibilità tra javascritp

    Spostato
    2
    mimmo82
    0 Votazioni
    2 Post
    588 Visualizzazioni
    Ciao Mimmo82, a me funziona. Vedo lo sfondo ed i banner che girano. Per cercare di replicare l'errore ho creato questa pagina (ho modificato il nome delle immagini): <html> <head> <script type="text/javascript"> var backgroundset=false; function fixedBackground(url) { if(!backgroundset) { document.body.style.overflow = 'hidden'; document.body.style.padding = '0px'; document.body.style.margin = '0px'; var overlay = document.createElement('DIV'); overlay.style.position = 'absolute'; overlay.style.top = '0px'; overlay.style.left = '0px'; overlay.style.height = '100%'; overlay.style.width = '100%'; overlay.style.overflow = 'auto'; overlay.innerHTML = document.body.innerHTML; document.body.innerHTML = '<img id="background" height="100%" width="100%" src="' + url + '" style="left: 0; bottom: 0; right: 0; top: 0; z-index: 0" />'; document.body.appendChild(overlay); backgroundset=true; } else background.src=url; } function Banner(refreshTime, width, height, altText, start, random){ this.objName = "bannerAd" + (Banner.count++); eval(this.objName + "=this"); if (!refreshTime) this.refreshTime = 5000; else this.refreshTime = refreshTime*1000; if (!width) this.width = 180; else this.width = width; if (!height) this.height = 150; else this.height = height; if (random == null) this.random = 1; else this.random = random; this.altText = altText; this.ads = []; if (start) this.currentAd = start-1; else start = null; this.mySize = 0; this.Ad = function(src, href, target, mouseover) { var tempImage = new Image(); tempImage.src = src; this.ads[this.mySize] = new Object(); var ad = this.ads[this.mySize]; ad.src = src; if (typeof(target) == "undefined" || target == null) ad.target = "_self"; else ad.target = target; ad.href = href; ad.mouseover = mouseover; this.mySize++; } this.link = function(){ var ad = this.ads[this.currentAd]; if (ad.target == "_self"){ location.href = ad.href; } else if (ad.target == "_blank" || ad.target == "_new"){ open(ad.href,this.objName + "Win"); } else top.frames[ad.target].location.href = ad.href; } this.showStatus = function(){ var ad = this.ads[this.currentAd]; if (ad.mouseover) status = ad.mouseover; else status = ad.href; } this.randomAd = function(){ var n; do { n = Math.floor(Math.random() * (this.mySize)); } while(n == this.currentAd); this.currentAd = n; } this.output = function(){ var tempCode = ""; if (this.mySize > 1){ if (this.currentAd == null) this.randomAd(); if (this.currentAd >= this.mySize) this.currentAd = this.mySize - 1; tempCode = '<a href="javascript:'+this.objName+'.link();"'; tempCode += ' onMouseOver="' + this.objName + '.showStatus(); return true"'; tempCode += ' onMouseOut="status=\'\';return true">'; tempCode += '<img src="' + this.ads[this.currentAd].src + '" width="' + this.width; tempCode += '" name="' + this.objName + 'Img" height="' + this.height + '" '; if (this.altText) tempCode += 'alt="'+this.altText + '" '; tempCode += 'border="0" /></a>'; document.write(tempCode); this.nextAd(); } else document.write("Error: two banners must be defined for the script to work."); } this.newAd = function(){ if (!this.random){ this.currentAd++; if (this.currentAd >= this.mySize) this.currentAd = 0; } else { this.randomAd(); } this.nextAd(); } this.nextAd = function(){ document.images[this.objName+ 'Img'].src = this.ads[this.currentAd].src; setTimeout(this.objName+'.newAd()',this.refreshTime) } } Banner.count = 0; </script> <script type="text/javascript"> myAd = new Banner( 3, 180, 150, "Clicca", 1, 0 ); myAd.Ad( "down.png", "google.it", null, "Ciao!" ); myAd.Ad( "up.png", "ciao.it", null, "Testo" ); myAd.output(); </script> </head> <body onload="fixedBackground('sfondo.jpg');"> </body> </html>
  • Script che conta le visite nel sito

    4
    brakki
    0 Votazioni
    4 Post
    2k Visualizzazioni
    Sisi, infatti sono iscritto sia ad analytics che ad adsense, anche se a dire la verità ci capisco poco No no,oltre a questo mi serviva qlke cosa di grezzo appunto, da schiaffare sul sito per mostrare al pubblico qnte persone hanno visitato il mio sito,del tipo che ad ogni F5 il count aumenta di uno......intesi + o -????? Ne ho trovati un paio su internet ma sono davvero ma davvero complessi,con 2 o 3 java,possibile che +semplici non ne esistano???
  • 0 Votazioni
    3 Post
    1k Visualizzazioni
    Ok, grazie
  • Usare preg_match per espressioni regolari. Come si fa?

    8
    marcsellier
    0 Votazioni
    8 Post
    2k Visualizzazioni
    Cancella tutto quello che ho detto... mi stavo perdendo... la tua funzione è perfetta nel dettaglio: ^: da inizio stringa [.a-z0-9]: contiene solo punti, caratteri o numeri {3,20}: il blocco sopra da 3 a 20 volte $: fino a fine stringa i: ignora differenze tra maiuscole e minuscole
  • onclick e table

    Spostato
    3
    criccroc
    0 Votazioni
    3 Post
    1k Visualizzazioni
    Ciao criccroc, per capire meglio posta l'intero codice della tua pagina, così te lo modifico per bene Jeeves
  • Creare barra stile facebook

    Spostato
    12
    lupo91
    0 Votazioni
    12 Post
    11k Visualizzazioni
    Ciao, puoi usare lo script CometChat.
  • [mysql] group by ordinato secondo le mie esigenze

    Spostato
    4
    misotropici
    0 Votazioni
    4 Post
    2k Visualizzazioni
    salve alla fine ho risolto grazie all'aiuto di un amico, il mio intento era quello di raggruppare per rispostaId ma mostrando il messaggio più nuovo. Sto semplicemendo facendo un sistema di repliche a messaggi privati sul mio sito, quindi se uno replica a un messaggio la deve mostrare per prima. SELECT * FROM ( SELECT * FROM messaggi WHERE rispostaId IN ( SELECT id FROM messaggi WHERE autore = '1' ) ORDER BY `data` DESC ) AS m GROUP BY rispostaId ORDER BY data DESC
  • MySQL injection: si dovrebbe fare questo tipo di controllo?

    Spostato
    13
    marcsellier
    0 Votazioni
    13 Post
    1k Visualizzazioni
    Ok, grazie mille
  • problema include

    5
    owen
    0 Votazioni
    5 Post
    1k Visualizzazioni
    Si si ho invertito i nomi ma nel codice avevo usato quelli giusti! Comunque è un problema di scope ho scoperto, probabilente perchè usando "include_once(dati.config.php)" più volte (qui sta l'errore...) lo includeva solo una volta considerandolo in ambito locale... Ho risolto usando $GLOBALS: $db=new db($GLOBALS['host'],$GLOBALS['user'],$GLOBALS['psw'],$GLOBALS['db_name']);
Home Accedi Registrati