Posted by Satya on 08/31/07 09:46
On Aug 30, 2:17 am, Leoa <leondria.bar...@gmail.com> wrote:
> Can you use javascript to activate a php function like so:
> <?php
> $tab="Tab.gif";
> function myfunction($txt)
> {
> $tab = $txt;
> echo($tab);
>
> }
>
> ?>
> <div class="backg" onMouseOver="<? php myfunction("Tab3.gif"); ?>"
> STYLE="background-image: url(<?=$img_dir?>/images/<?php echo($tab);?
>
> > )"
>
> I'm trying to dynamically change the tab button when the when the user
> mouse over the tab.
>
> this site has the nav in a module.
>
> any suggestions please....
For this look to Javascript. Search in google "javascript image
preload".
http://satya61229.blogspot.com/2007/03/passing-value-javascript-php-javascript.html
[Back to original message]
|