StealthRT
12-14-2007, 03:36 AM
Hey everyone i have a quick question here... I'm using some code from http://www.ndoherty.com/demos/coda-slider/1.1.1/ called coda-slider. In order to slide from one DIV to another u us a link like so..
<p><a href="#2" class="cross-link">Next</a></p>
In the above code, the link would take you to the 2nd DIV.
Now my question is, how can i do that same thing but inside javascript with my code below?:
function Step1()
{
if (Checkit1())
{
//location.href='#2';
}
else
{
return false;
}
}
I've tryed the location.href='#2'; but it only changes the URL which doesnt move the box from DIV 1 to DIV 2 as the link would.
Any help would be great! :)
David
<p><a href="#2" class="cross-link">Next</a></p>
In the above code, the link would take you to the 2nd DIV.
Now my question is, how can i do that same thing but inside javascript with my code below?:
function Step1()
{
if (Checkit1())
{
//location.href='#2';
}
else
{
return false;
}
}
I've tryed the location.href='#2'; but it only changes the URL which doesnt move the box from DIV 1 to DIV 2 as the link would.
Any help would be great! :)
David