<?php echo $html->
                                               image(
                                                    'new_profile_down.png',
                                                     array(
                                                    'border' => 0,
                                                    'width'=>56,
                                                    'height'=>52,
                                                    'url' =>
                                                     array(
                                                          'action' =>
                                                          'profiles', '?' =>
array('intAction' => '2', 'MODE' => '1')
                                                     )
                                                     )
                                               );
                                    ?>

i tryed this one its working i dontknow its working correct or not.

On Mon, Apr 19, 2010 at 6:05 PM, John Andersen <j.andersen...@gmail.com>wrote:

> To me it looks like you are trying to have a link with an image, which
> is to work like a button, that is, the image must change on mouse down
> and up.
>
> I would assume that the onMouseDown/Up events should either contain a
> reference to a javascript function or javascript itself, not just the
> filename of the image to use.
>
> Also the last parameter to the html->link method should be "false", so
> that the html helper will not convert the image html into html
> entities!
>
> When you try to run the code, does it give any errors or surprises?
> Enjoy,
>   John
>
> On Apr 19, 2:50 pm, chandrasekhar reddy <chanduc...@gmail.com> wrote:
> > <?php
> >  echo $html->link($html->image('new_profile.png' , array('border' => '0',
> > 'onMouseDown' => 'new_profile_down.png',
> >  'onMouseUp' => 'new_profile.png')), 'shownewprofile1', '?' =>
> > array('intAction' => '2', 'MODE' => '1'), null);
> > ?>
> >
> > On Mon, Apr 19, 2010 at 5:15 PM, John Andersen <j.andersen...@gmail.com
> >wrote:
> >
> >
> >
> > > In your view file, use the html helper for the link part!
> > > Use the html helper for the image part with additional information to
> > > support your onMouseDown/Up options.
> > > When you have done that, please show us the code, so that we may
> > > assist you further.
> > > Enjoy,
> > >   John
> >
> > > On Apr 19, 1:26 pm, chandrasekhar reddy <chanduc...@gmail.com> wrote:
> > > > <A HREF="<?=$PHP_SELF;?>?intAction=2&MODE=1"><IMG
> > > > SRC="../images/wizard/new_profile.png" BORDER="0"
> onMouseDown="this.src =
> > > > '../images/wizard/new_profile_down.png';" onMouseUp="this.src =
> > > > '../images/wizard/new_profile.png';"></A>
> >
> > > > How can i write this phpcode into cakephp
> >
> > > > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp
> others
> > > with their CakePHP related questions.
> >
> > > > You received this message because you are subscribed to the Google
> Groups
> > > "CakePHP" group.
> > > > To post to this group, send email to cake-php@googlegroups.com
> > > > To unsubscribe from this group, send email to
> > > > cake-php+unsubscr...@googlegroups.com<cake-php%2bunsubscr...@googlegroups.com>
> <cake-php%2bunsubscr...@googlegroups.com<cake-php%252bunsubscr...@googlegroups.com>>For
> more options, visit this group athttp://
> > > groups.google.com/group/cake-php?hl=en
> >
> > > Check out the new CakePHP Questions sitehttp://cakeqs.organd help
> others
> > > with their CakePHP related questions.
> >
> > > You received this message because you are subscribed to the Google
> Groups
> > > "CakePHP" group.
> > > To post to this group, send email to cake-php@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > cake-php+unsubscr...@googlegroups.com<cake-php%2bunsubscr...@googlegroups.com>
> <cake-php%2bunsubscr...@googlegroups.com<cake-php%252bunsubscr...@googlegroups.com>>For
> more options, visit this group at
> > >http://groups.google.com/group/cake-php?hl=en
> >
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others
> with their CakePHP related questions.
> >
> > You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> > To post to this group, send email to cake-php@googlegroups.com
> > To unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.com<cake-php%2bunsubscr...@googlegroups.com>For
> >  more options, visit this group athttp://
> groups.google.com/group/cake-php?hl=en
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com<cake-php%2bunsubscr...@googlegroups.com>For
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to