Hi guys, I’m a real amateur. I’m just a lawyer with a blog
iusandlaw.blogspot.com
I’ve been able to change it a little bit with the help of mighty google. But now I reached my limits: I want to do something I just can’t do.
I have a random header image installed. And I have navigation bar, very amateur, which is actually the creation of the template creator Gecko&Fly.
Here’s the script of the random image.
<script type=’text/javascript’>
var banner= new Array()
banner[0]="[url]http://photos1.blogger.com/blogger/2915/509/1600/pic.jpg"
banner[1]="[url]http://photos1.blogger.com/blogger/2915/509/1600/pic.1.jpg"
banner[2]="[url]http://photos1.blogger.com/blogger/2915/509/1600/pic.2.jpg"
banner[3]="[url]http://photos1.blogger.com/blogger/2915/509/1600/pic.3.jpg"
banner[4]="[url]http://photos1.blogger.com/blogger/2915/509/1600/pic.4.jpg"
banner[5]="[url]http://photos1.blogger.com/blogger/2915/509/1600/pic.5.jpg"
banner[6]="[url]http://photos1.blogger.com/blogger/2915/509/1600/pic.6.jpg"
banner[7]="[url]http://photos1.blogger.com/blogger/2915/509/1600/pic.7.jpg"
banner[8]="[url]http://photos1.blogger.com/blogger/2915/509/1600/pic.8.jpg"
banner[9]="[url]http://photos1.blogger.com/blogger/2915/509/1600/pic.9.jpg"
banner[10]="[url]http://photos1.blogger.com/blogger/2915/509/1600/pic.10.jpg"
banner[11]="[url]http://photos1.blogger.com/blogger/2915/509/1600/pic.11.jpg"
banner[12]="[url]http://photos1.blogger.com/blogger/2915/509/1600/pic.12.jpg"
banner[13]="[url]http://photos1.blogger.com/blogger/2915/509/1600/pic.13.jpg"
banner[14]="[url]http://photos1.blogger.com/blogger/2915/509/1600/pic.14.jpg"
banner[15]="[url]http://photos1.blogger.com/blogger/2915/509/1600/pic.15.jpg"
banner[16]="[url]http://photos1.blogger.com/blogger/2915/509/1600/pic.16.jpg"
banner[17]="[url]http://photos1.blogger.com/blogger/2915/509/1600/pic.17.jpg"
banner[18]="[url]http://photos1.blogger.com/blogger/2915/509/1600/pic.18.jpg"
banner[19]="[url]http://photos1.blogger.com/blogger/2915/509/1600/pic.19.jpg"
banner[20]="[url]http://photos1.blogger.com/blogger/2915/509/1600/pic.20.jpg"
banner[21]="[url]http://photos1.blogger.com/blogger/2915/509/1600/pic.21.jpg"
banner[22]="[url]http://photos1.blogger.com/blogger/2915/509/1600/pic.22.jpg"
banner[23]="[url]http://photos1.blogger.com/blogger/2915/509/1600/pic.23.jpg"
banner[24]="[url]http://photos1.blogger.com/blogger/2915/509/1600/pic.24.jpg"
banner[25]="[url]http://photos1.blogger.com/blogger/2915/509/1600/pic.25.jpg"
var random=Math.round(25*Math.random());
document.write("<style>"?;
document.write("#headr {"?;
document.write(‘ background:url("’ + banner[random] + ‘"? no-repeat left TOP;’);
document.write(" }"?;
document.write("</style>"?;
</script>
And here’s the relevant part of the “supernav” (navigationbar)
#supernav {
font: bold 12px/12px Impact, Verdana, Lucida Grande, Arial, Sans-Serif;
position: absolute;
top: 181px;
left: 50%;
width: 720px;
margin: 0 0 0 -360px;
padding: 5px 16px; /* duplicate the tab size
text-align: left;
display: block;
}
#supernav li {
margin: 0;
padding: 0;
text-transform: lowercase;
display: inline;
}
#supernav a {
color: #000000;
background: #FFFFFF;
font-weight: normal;
height: 19px;
padding: 5px 16px;
/* round corner tab – not for IE
-moz-border-radius-topright: 6px;
-moz-border-radius-topleft: 6px;
}
#supernav a:hover {
text-decoration: underline;
}
#supernav .current_page_item a {
color: #111;
background: #999;
text-decoration: none;
/* round corner tab – not for IE
-moz-border-radius-topright: 6px;
-moz-border-radius-topleft: 6px;
}
(and later on…)
<ul id=’supernav’>
<li><a href=’http://iusandlaw.blogspot.com’>Home</a></li>
<li><a href=’
<li><a href=’
<li><a href=’
<li><a href=’
</ul>
(I think is a wdiget in new blogger beta).
PLaying with the nav html, I’ve managed to duplicate it and I put it hight on the header, as you can see in my blog: [URL=”http://iusandlaw.blogspot.com”]iusandlaw.blogspot.com
(It’s just a black rectangle up and to the right over the header).
What I want to do is to relate every image that appears to specific text and a link that would have to appear every time the image changes. Basically, what I want to do is to say where the picture was taken. If it can link to a specific google maps link, that would be greate.
Any ideas? I’ve tried de If (function) thing, but coudn’t do it. Hope someone can help! Best,
R.