Jump to content

chnaging links css properties depending on pages


bleustreak12

Recommended Posts

i have a div which has an id in that i have a div which has a class name then i have a table in the second div and in that i have few links (ie. <a href=...</a>)

 

<div id="nav">

<ul>

<div class="moduletable_menu">

<table width="100%" cellspacing="1" cellpadding="0" border="0">

<tbody>

<tr>

<td nowrap="nowrap">

<a class="mainlevel" href="ssssssss">Home</a>

<a class="mainlevel" href="ssssssssd">About</a>

<a class="mainlevel" href="ddddddd">News2</a>

<a class="mainlevel" href="ddddddd">News21</a>

<a class="mainlevel" href="ddddddd">News4</a>

<a class="mainlevel" href="ddddddd">News4</a>

</td>

</tr>

</tbody>

</table>

</div>

</ul>

</div>

 

now i want to change the css of the link only on certain pages .

 

So i was thinking wheteher i could get the current url of the page and if it is the right one then the propertioes of the 2nd or 3rd  link change and if it is on another page  the 1st link should change

 

at any time i may require to chnage atleast one link

 

so i will require php code which if on the right page selects the 2nd or third link to change and on another page the 1st link

 

i would really like to know if i can achieve this through php coding and if so then how

 

 

How will i achieve this

 

can anybody please help me

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.