Asaf
May-25-2008, 09:11 PM
Hi all,
I'm learning a lot from the forums here and I'm finally through a lot of the FAQs and tutorials. Even so, I still have a few newbie questions that I'm hoping to get some help with.
1. I've created a navbar with a few elements that shows up how I wanted it but not in the right place all the time. I hacked it to pop up to the top near the search box where the toolbar used to be but it obviously doesn't move around when the gallery view is up and stretched. It just stays near the center. Any hints or help on how to place my navbar links where the toolbar used to be?
2. My homepage slideshow isn't centered and isn't transparent. It shows up with a wider box than any photo showing and also has this gray background between the photos and the edges. Do I need to recrop the photos I want to the exact size of the slideshow? (minus the border)
3. in the control panel where I can change how my name is displayed I've got a weird behavior where if I click change it asks me to log in, accepts the username/pw and puts me at the page to go to where I was browsing or my homepage. When I try to go where I was browsing, it reprompts me for creds. What did I break?
4. When I load up my pages I can see the javascript running as the page finishes loading and the toolbar pipes get removed and the categories get renamed to galleries. Any reason that happens? can I make it smoother?
I'm including a snippet of all the relevant CSS and HTML to my knowledge.
Thanks,
Asaf
CSS:
#navcontainer ul {
position: relative;
top: -40px;
right: -40px;
margin: 0;
padding: 0;
list-style-type: none;
text-align: center;
}
#navcontainer ul li {
display: inline;
}
#navcontainer ul li a {
text-decoration: none;
padding: .2em 1em;
color: #fff;
background-color: #000;
}
#navcontainer ul li a:hover {
color: #996;
background-color: #000;
}
#toolbar a.nav {
display: none;
}
Header:
<div id="navcontainer">
<ul>
<li><a href="/">Home</a></li>
<li><a href="/galleries">Galleries</a></li>
<li><a href="/galleries">GuestbookTODO</a></li>
</ul>
<p>
</div>
Footer Javascript:
function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}
if (hasPath("galleries"))
YD.addClass(document.body, "galleries");
// removes the pipes characters in the toolbar header
YE.onAvailable('toolbar', function(e) {
this.innerHTML = this.innerHTML.replace(new RegExp(/\|/g),"");
});
Bio block:
<html>
********>
var ssConfig = {
AlbumID: 'myalbumnumber',
newWindow: 'false',
transparent: 'true',
splash: '/photos/myphotonumber-O.png',
showLogo: 'false',
clickUrl: '/galleries',
showThumbs: 'false',
showButtons: 'false',
crossFadeSpeed: '350',
borderThickness: '4',
borderColor: '999966'
};
SM.flash.insertSlideshow(600, 400, ssConfig, 'transparent');
</********
</html>
I'm learning a lot from the forums here and I'm finally through a lot of the FAQs and tutorials. Even so, I still have a few newbie questions that I'm hoping to get some help with.
1. I've created a navbar with a few elements that shows up how I wanted it but not in the right place all the time. I hacked it to pop up to the top near the search box where the toolbar used to be but it obviously doesn't move around when the gallery view is up and stretched. It just stays near the center. Any hints or help on how to place my navbar links where the toolbar used to be?
2. My homepage slideshow isn't centered and isn't transparent. It shows up with a wider box than any photo showing and also has this gray background between the photos and the edges. Do I need to recrop the photos I want to the exact size of the slideshow? (minus the border)
3. in the control panel where I can change how my name is displayed I've got a weird behavior where if I click change it asks me to log in, accepts the username/pw and puts me at the page to go to where I was browsing or my homepage. When I try to go where I was browsing, it reprompts me for creds. What did I break?
4. When I load up my pages I can see the javascript running as the page finishes loading and the toolbar pipes get removed and the categories get renamed to galleries. Any reason that happens? can I make it smoother?
I'm including a snippet of all the relevant CSS and HTML to my knowledge.
Thanks,
Asaf
CSS:
#navcontainer ul {
position: relative;
top: -40px;
right: -40px;
margin: 0;
padding: 0;
list-style-type: none;
text-align: center;
}
#navcontainer ul li {
display: inline;
}
#navcontainer ul li a {
text-decoration: none;
padding: .2em 1em;
color: #fff;
background-color: #000;
}
#navcontainer ul li a:hover {
color: #996;
background-color: #000;
}
#toolbar a.nav {
display: none;
}
Header:
<div id="navcontainer">
<ul>
<li><a href="/">Home</a></li>
<li><a href="/galleries">Galleries</a></li>
<li><a href="/galleries">GuestbookTODO</a></li>
</ul>
<p>
</div>
Footer Javascript:
function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}
if (hasPath("galleries"))
YD.addClass(document.body, "galleries");
// removes the pipes characters in the toolbar header
YE.onAvailable('toolbar', function(e) {
this.innerHTML = this.innerHTML.replace(new RegExp(/\|/g),"");
});
Bio block:
<html>
********>
var ssConfig = {
AlbumID: 'myalbumnumber',
newWindow: 'false',
transparent: 'true',
splash: '/photos/myphotonumber-O.png',
showLogo: 'false',
clickUrl: '/galleries',
showThumbs: 'false',
showButtons: 'false',
crossFadeSpeed: '350',
borderThickness: '4',
borderColor: '999966'
};
SM.flash.insertSlideshow(600, 400, ssConfig, 'transparent');
</********
</html>