|
Posted by Rik Wasmus on 08/30/07 07:59
On Wed, 29 Aug 2007 23:59:45 +0200, Steve <no.one@example.com> wrote:
> "Leoa" <leondria.barbee@gmail.com> wrote in message
> news:1188422263.801132.124720@r34g2000hsd.googlegroups.com...
> | Can you use javascript to activate a php function like so:
> | <?php
> | $tab=3D"Tab.gif";
> | function myfunction($txt)
> | {
> | $tab =3D $txt;
> | echo($tab);
> | }
> |
> | ?>
> | <div class=3D"backg" onMouseOver=3D"<? php myfunction("Tab3.gif"); ?=
>"
> | STYLE=3D"background-image: url(<?=3D$img_dir?>/images/<?php echo($ta=
b);?
> | > )"
> |
> | I'm trying to dynamically change the tab button when the when the us=
er
> | mouse over the tab.
>
> php executes on the server. javascript (etc.) executes in the browser =
on =
> the
> client's pc. this is strickly a javascript endeavor. however, here's h=
ow =
> i'd
> think about it...
>
>
> <div mOverSrc=3D"<?=3D
Short_tags, never a good idea....
-- =
Rik Wasmus
My new ISP's newsserver sucks. Anyone recommend a good one? Paying for =
quality is certainly an option.
Navigation:
[Reply to this message]
|