• Resolved archaeologyman

    (@archaeologyman)


    I am having a devil of a time getting Matt’s Random Image Script to work with my current theme (Elements of SEO)

    I created a new image folder to dump the images and PHP script into but I’m not sure how to change to following to get what I want:

    /************************************************
    *	Masthead 					     		    *
    ************************************************/
    
    #masthead { width: 960px; /*height: 250px; background: url('images/logo.gif') no-repeat;*/ /* uncomment the height and background declarations here if you intend to use a graphic in the header instead of the h1 */ }
    
    	/* #masthead a { display: block; width: 770px; height: 250px; } */ /* uncomment this line if you use a graphic in the header - make sure the height of your header graphic is equal to the height declared in this line of code! */
    
    #masthead h1 { font-family: Georgia, "Times New Roman", Times, serif; font-size: 25px; font-weight: normal; padding: 0em 0 0.2em 0; }
    
    #masthead h3 { font-family: Georgia, "Times New Roman", Times, serif; margin: 0 0 0.75em 0; font-weight: normal; font-size: 14px; text-transform: none; color: #888;  }
    
    #masthead a:link, #masthead a:visited	{ color:#414F59; text-decoration:none; }
    #masthead a:hover, #masthead a:active	{ color:#444; text-decoration:underline;}
    
    #banner { background: url("images/banner.jpg") no-repeat; height:250px; }
    
    #banner1 { background: url("images/banner1.jpg") no-repeat; height:250px; }
    
    #banner2 { background: url("images/banner2.jpg") no-repeat; height:250px; }

    Thanks for any help in advance.

    Mark

Viewing 1 replies (of 1 total)
  • background: url(http://www.yoursite.com/pathtothescript/rotate.php) no-repeat;

    I think that’s what you need, unless you mean for a different location. If you don’t want it to randomize one of those images that are set in your css, you use includes in your template.

Viewing 1 replies (of 1 total)

The topic ‘Matt’s Random Image Script’ is closed to new replies.