Visualizzazione dei risultati da 1 a 6 su 6
  1. #1

    random background image

    Buonasera a tutti,

    ho aperto da pochissimo un blog (www.agones.eu) e sto ancora lavorando per configurare le varie opzioni... Volevo mettere una immagine di sfondo random usando il plug-in:

    http://www.district30.net/random-image-widget

    Il problema è che non sono capace. Dice che devo usare la funzione echo_random_image() ma io non so dove metterla. Nel file style.css ho questo:



    codice:
    /*++++++++++++++++++ The BACKGROUND IMAGE +++++++++++++++++++++*/
    
    /*+++++ replace "(images/default.jpg)" with another image from the /images directory of the theme or use the custom background switcher (Appearance - Change Background Image) ++++*/
    
    
    
    body {
    
            background: url(images/hill.jpg) no-repeat 0 0 #fff;
    
            background-attachment:fixed;
    
            background-position: bottom center;
    
            color: #000;
    
            font-family: Arial, Verdana, sans-serif;
    
            margin: 0;
    
            padding: 0;
    
    }
    
    
    
    cite {
    
            font-size: 90%;
    
            font-style: normal;
    
    }
    
    
    
    h1 {    
    
    		font-size:20px;
    
    }
    
    
    
    h2 {
    
            
    
    		font-size:18px;
    
    
    
    }
    
    
    
    h3 {
    
    		font-size:16px;
    
    }
    
    
    
    h4 {
    
    		font-size:15px;
    
    }
    
    
    
    h5 {
    
    		font-size:14px;
    
    }
    
    
    
    h6 {
    
    		font-size:13px;
    
    }
    
    
    
    p, li {
    
            font: 13px 'Arial', Verdana, sans-serif;
    
            line-height:17px;
    
    }
    dove devo modificarlo esattamente in modo che carichi come sfondo una immagine random? Grazie mille.
    http://agones.eu Sports and much more

  2. #2
    personalmente mi sono trovato molto bene seguendo questa piccola guida

    random image css e php

  3. #3
    ciao,

    grazie mille!!! ho seguito la guida e ho creato un file ran-img.php contenente solo la linea:

    <?php header('Location: image00'.rand(1,2).'.jpg'); ?>

    ma purtroppo non mi funziona. L'immagine rimane la vecchia, neanche si aggiorna ad una delle due nuove possibilità. Dove sbaglio?
    http://agones.eu Sports and much more

  4. #4
    le immagini le hai chiamate image001.jpg image002.jpg ???

  5. #5
    si, e sono nel posto giusto. Il fatto è che non mi cambia immagine neanche se specifico a mano il percorso. Le impostazioni dal pannello di wp-admin è come se facessero un override sul codice...
    http://agones.eu Sports and much more

  6. #6
    in effetti ho notato che anche cancellando completamente quella parte non cambia nulla.... e che l'immagine hills.jpg specificata nel file originale non esiste... è un trucco... dove altro potrebbe essere?
    http://agones.eu Sports and much more

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.