rcouser
03-20-2009, 10:47 AM
Hello there,
I am working on a Coda Slider Effect (http://jqueryfordesigners.com/coda-slider-effect/) but i'm having one issue with trying to implement a breadcrumb outside of the slider div.
Is there a way to use window.location.hash to display a different breadcrumb location. eg Home > About Us or Home > Services.
I understand PHP statement but just can't transfer the logic to Javascript, here is an example of what I'm trying to do but I understand echo doesn't work in Javascript
var page = location.hash;
switch(page)
{
case "#home":
echo '<li>Home</li>';
break;
case "#about":
echo '<li>Home</li><li>About<li>/';
break;
case "#contact":
echo '<li>Home</li><li>Contact<li>/';
break;
default:
echo '<li>Home</li>';
}
Any help would be great. Thanks in advance, Ryan
I am working on a Coda Slider Effect (http://jqueryfordesigners.com/coda-slider-effect/) but i'm having one issue with trying to implement a breadcrumb outside of the slider div.
Is there a way to use window.location.hash to display a different breadcrumb location. eg Home > About Us or Home > Services.
I understand PHP statement but just can't transfer the logic to Javascript, here is an example of what I'm trying to do but I understand echo doesn't work in Javascript
var page = location.hash;
switch(page)
{
case "#home":
echo '<li>Home</li>';
break;
case "#about":
echo '<li>Home</li><li>About<li>/';
break;
case "#contact":
echo '<li>Home</li><li>Contact<li>/';
break;
default:
echo '<li>Home</li>';
}
Any help would be great. Thanks in advance, Ryan