Sorry it was a bit sparse as a post for help wasn't it!
OK, this is the code:
Code:
<div id="modernbricksmenu" style="width:801px;">
<ul>
<li runat="server" onload="SetID()" id="h" style="margin-left: 1px"><a href="#" title="Home">Home</a></li>
<li runat="server" id="Who" ><a href="Who.aspx" title="Who">Who Are We?</a></li>
<li runat="server" id="Servicing" ><a href="Servicing.aspx" title="Servicing">Servicing</a></li>
<li runat="server" id="ContactUs" ><a href="ContactUs.aspx" title="Forums">Contact Us</a></li>
<li runat="server" id="Forums" ><a href="Forums.aspx" title="Swift Forums">Forums</a></li>
</ul>
</div>
<div id="modernbricksmenuline" style="width:801px;"> </div>
basically, I want, whatever page the user is on, i.e. if they are on servicing; i want the
Code:
<li runat="server" id="Servicing" ><a href="Servicing.aspx" title="Servicing">Servicing</a></li>
to become (i changed the id to 'current' from 'servicing'
Code:
<li runat="server" id="Current" ><a href="Servicing.aspx" title="Servicing">Servicing</a></li>
does that make better sense?
my worst thing here is i have got a perfect script for it, which wasn't too hard to write:
Code:
<script language="javascript" type="text/javascript">
public void SetID()
{
var currentID = document.title;
switch (currentID)
{
case "Servicing":
document.getElementById('li')[0].setAttribute('id','currentID');
alert(document.getElementById('currentID').innerHTML);
break;
case "Home":
document.getElementById('li')[0].setAttribute('id','currentID');
alert(document.getElementById('currentID').innerHTML);
break;
etc etc end switch
}
}
</script>
but i can't get the javascript to run; everytime i call it, i getthis error:
Code:
'ASP.masterpage_master' does not contain a definition for 'SetID'
i called the script like so,
Code:
<li runat="server" id="Current" onload="SetID()" ><a href="Servicing.aspx" title="Servicing">Servicing</a></li>
does this make more sense?
I wish i could post a link for you but i'm only in the infant stages of this one and don't have anywhere to host it... i'm just trying new things really...
Thanks,
Boog's