Randomise Banner Graphic
Posted: Tue Jan 22, 2008 4:52 am
Hi all.
I have the following code from the Layout: Top menu + 2 columns stylesheet in v 1.2.3 Black Rock
div#header h1 a {
/* you can set your own image here */
background: #385C72 url(uploads/images/banners/banner_1.jpg) no-repeat 0 1px;
display: block;
height: 87px; /* adjust according your image size */
text-indent: -999em; /* this hides the text */
text-decoration:none; /* old firefox would have shown underline for the link, this explicitly hides it */
}
Is there anyway I can randomise the choice of that image. I have a couple of ramdomising methods, but the
url(uploads/images/banners/banner_1.jpg)
fouls them up.
Andrew
I have the following code from the Layout: Top menu + 2 columns stylesheet in v 1.2.3 Black Rock
div#header h1 a {
/* you can set your own image here */
background: #385C72 url(uploads/images/banners/banner_1.jpg) no-repeat 0 1px;
display: block;
height: 87px; /* adjust according your image size */
text-indent: -999em; /* this hides the text */
text-decoration:none; /* old firefox would have shown underline for the link, this explicitly hides it */
}
Is there anyway I can randomise the choice of that image. I have a couple of ramdomising methods, but the
url(uploads/images/banners/banner_1.jpg)
fouls them up.
Andrew