Hey minipav,
I approach this problem using css Pseudo classes a:link and a:hover. Or you can do it with images; check Rob's recent screencast.
Blessings!
-NP
PS: let me know if this does not make sense.
Hi NonProfit
Thanks you very much for you help i have got my buttons working and thanks to to rob for his Vod cast that showed me how to do it. i didn't know that Rob was going a Vod cast but i do now and I singed up for it in itunes. ( Rob you rock) thanks again nonprofit for showing me the way to getting my buttons working.
Yours is Christ
Minipav
Hi all
Im trying to do my first custom drupal theme and I have problems with setting up some links that I have as an image that then changes when you mouse over it. My using drupal 6.2 and i started my new theme from scratch. So basically I'm trying to use the following section of code.
<a href=""onMouseover="modelblog.src='images/Blog_active.png'"
onMouseout="modelblog.src='images/Blog.png'">
<img src="images/Blog.png" name="modelblog" border="0">
</a>
I built the theme main page in plain HTML then added the php stuff so that drupal would put in it's parts. ATM I'm hard coding these links into my page.tpl.php but would like to let drupal generate them from the primary links. I have tried about 10 different sections of code that are meant to build the links from the primary links from the drupal site but have had no luck and i have wasted half a day trying to get the stupid links to work someone please help me before I go crazy.
Site is a work in proggress but can be viewed at www.pavsmodels.com
( site is to be a resource portal and blog a for all things war hammer 40K )