Chodzi o to, że sama funkcja hover działa, ale jeżeli wejdę w jakąś zakłądkę chce żeby kolor był zachowany z "hover". Czyli tak na szybko - Mam link "Start" , który jest biały po najechaniu kursorem robi się czarny, ale i po kliknieciu w "Start" również zostaje czarny. Może ktoś pomóc ? Poniżej linie kodu:
Kod strony
Cytat
<?php
if ($id==7 or $id==8 or $id==9) echo
'<div class="menu1">
<a href="start" style="margin-right:10px"><h3>Start</h3></a>
<a href="historia" style="margin-right:10px"><h3>Start</h3></a>
<a href="srebrna" style="margin-right:10px"><h3>Start</h3></a>
<a href="zlota" style="margin-right:10px"><h3>Start</h3></a>
<a href="brazowa" style="margin-right:10px"><h3>Start</h3></a>
<a href="kontakt" style="margin-right:0px"><h3>Start</h3></a>
</div>'
?>
if ($id==7 or $id==8 or $id==9) echo
'<div class="menu1">
<a href="start" style="margin-right:10px"><h3>Start</h3></a>
<a href="historia" style="margin-right:10px"><h3>Start</h3></a>
<a href="srebrna" style="margin-right:10px"><h3>Start</h3></a>
<a href="zlota" style="margin-right:10px"><h3>Start</h3></a>
<a href="brazowa" style="margin-right:10px"><h3>Start</h3></a>
<a href="kontakt" style="margin-right:0px"><h3>Start</h3></a>
</div>'
?>
JS do Cufon
Cytat
Cufon.replace("h3", { hover: {color: '#bb9e55'} });
CSS
Cytat
.menu1 { float:right; width:720px;height:10px;margin-top:100px;}
.menu1 a, .menu1 span { display:block;float:left;margin-left:5px }
.menu1 a { color:#ffffff;font-size:12px;}
.menu1 a:hover { color:#bb9e55;font-size:12px;padding-bottom:10px;}
.menu1 span { color:#bb9e55;font-size:12px;}
.menu1 a, .menu1 span { display:block;float:left;margin-left:5px }
.menu1 a { color:#ffffff;font-size:12px;}
.menu1 a:hover { color:#bb9e55;font-size:12px;padding-bottom:10px;}
.menu1 span { color:#bb9e55;font-size:12px;}