hey guys -
i have a wierd question ... well its' wierd to me at least
so i wanted to make roll over buttons for my website. i amde them but decided that when a user was on a link, that that button should be different than the rest. now because i'm dealing with a site that has 100+ pages, i'm using dreamweaver (ugh).
so i wrote a script that should determine what graphic to display.
here's the html code
the MM functions are predefinied by dreamweaver and i haven't touched them so i know those are okay.
now depending on what folder i'm in .. (history or current) i have in the header
(or thisPage = current if the page is under the current folder)
do you have any reason why this is not working? my title banner graphic is not being displayed anymore either as an effect of this.
thanks in advance. i really appreciate it guys.
-------
i have a wierd question ... well its' wierd to me at least
so i wanted to make roll over buttons for my website. i amde them but decided that when a user was on a link, that that button should be different than the rest. now because i'm dealing with a site that has 100+ pages, i'm using dreamweaver (ugh).
so i wrote a script that should determine what graphic to display.
here's the html code
Code:
<td><a href="/history/index.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('history','','/images/history_over.gif',1)" onMouseDown="MM_swapImage('history','','/images/history_down.gif',1)"><img src=<?php if ($thisPage=="history") echo '"/images/history_down.gif"'; else echo '"/images/history.gif"'; ?> alt="History" name="history" width="138" height="30" border="0"></a></td>
<td><a href="/current/index.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('current','','/images/current_over.gif',1)" onMouseDown="MM_swapImage('current','','/images/current_down.gif',1)"><img src=<?php if ($thisPage=="current") echo '"/images/current_down.gif"'; else echo '"/images/current.gif"'; ?> alt="Current" name="current" width="138" height="30" border="0"></a></td>
the MM functions are predefinied by dreamweaver and i haven't touched them so i know those are okay.
now depending on what folder i'm in .. (history or current) i have in the header
Code:
<?php $thisPage="history"; ?>
do you have any reason why this is not working? my title banner graphic is not being displayed anymore either as an effect of this.
thanks in advance. i really appreciate it guys.
-------