Hi guys.
I have downloaded css designer to make tabs. Now the code looks like this:
<div id="tabs6"> <ul> <li><a href="<%=urlNonSSL%>default.asp"><span><%=LangText("GenHome","")%></span></a></li> <li><a href="<%=urlNonSSL%>prodList.asp"><span><%=LangText("GenAllCategories","")%></span></a></li> </ul> </div>
|
On the mouse over the tab changes colour from green to yellow.
What i would like is that when u are at default.asp page the tab would be yellow and when u r at the prodlist.asp page, this tab would be yellow and default.asp tab would be green.
i could do it like that: <li id="current">.
Current is the id in css for changing position of the image ffrom green to yellow.
#tabs6 #current a { background-position:0% -42px; } #tabs6 #current a span { background-position:100% -42px; color:#000000; }
|
But then i would need to put tabs on each page, but i dont want to do that.
I think some of u are familiar with Candypress store. Im using it and this store has INC_template.asp page. So u know that this is the page that needs to be fixed to change layout of your complete site as it is included on all pages.
I have tried something like that, but no luck:
Dim Cpage
Cpage= "GenHome"
%> <li <%' if Cpage = "GenHome" then response.write("id='current'")%>><a href="<%=urlNonSSL%>default.asp"><span><%=LangText("GenHome","")%></span></a></li>
|
i hope u know what i mean :)
Edited by urko - 03 June 2007 at 7:12am