GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   web dev question (javascript, php) (https://gfy.com/showthread.php?t=526583)

TheMob 10-10-2005 07:11 PM

web dev question (javascript, php)
 
I have a menu that I'm including via PHP..this menu uses JS rollovers. I would like to be able to highlight the correct part of the menu, depending on current URL location of the browser..

doable? in JS? php?

thanks!

Code:

                        <a href="index.php?mn=gallery"
                                onmouseover="changeImages('menu_04', '<?=RURL;?>images/menu_04-over.gif'); return true;"
                                onmouseout="changeImages('menu_04', '<?=RURL;?>images/menu_04.gif'); return true;"
                                onmousedown="changeImages('menu_04', '<?=RURL;?>images/menu_04-over.gif'); return true;"
                                onmouseup="changeImages('menu_04', '<?=RURL;?>images/menu_04-over.gif'); return true;">
                                <img name="menu_04" src="


Nikita Khrushchev 10-10-2005 08:30 PM

Just use mn or QUERY_STRING

example
Code:

                        <a href="index.php?mn=gallery"
                                onmouseover="changeImages('menu_04', '<?=RURL;?>images/menu_04-over.gif'); return true;"
                                onmouseout="changeImages('menu_04', '<?=RURL;?>images/menu_04.gif'); return true;"
                                onmousedown="changeImages('menu_04', '<?=RURL;?>images/menu_04-over.gif'); return true;"
                                onmouseup="changeImages('menu_04', '<?=RURL;?>images/menu_04-over.gif'); return true;">
                                <img name="menu_04" src="
<?php
if($_GET['mn'] hahahaha 'gallery')
{
echo 'menu_04-over.jpg">';
}
else
{
echo 'menu_04.jpg">';
}
?>



All times are GMT -7. The time now is 04:19 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123