Re: convert to javascript to cake

2011-04-07 Thread Ryan Schmidt

On Apr 7, 2011, at 00:17, Master Ram wrote:

>  onmouseout="MM_swapImgRestore()"
> onmouseover="MM_swapImage('Apply','','images/adminControls/
> button_apply_hover.jpg',1)">
> 
> 

Please consider doing this using CSS (e.g. the :hover modifier) instead of 
JavaScript. Swapping images on mouse over / out using JavaScript was the way to 
do it in the late 1990's, but not today.






-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: convert to javascript to cake

2011-04-07 Thread anand ghaywankar
You need to check thisproperly.
onmouseover="MM_swapImage('
Apply','','images/adminControls/
> button_apply_hover.jpg',1)">


On 7 April 2011 12:34, Master Ram...!  wrote:

> i want to display image when mouuseover. on other image
>
>
> On Thu, Apr 7, 2011 at 10:54 AM, andy_the ultimate baker <
> anandghaywankar...@gmail.com> wrote:
>
>> what exaxtly u wants to do?
>> javascript is good for that.
>>
>>
>> On Apr 7, 10:17 am, Master Ram  wrote:
>> > Hi to all
>> >
>> > > > onmouseout="MM_swapImgRestore()"
>> > onmouseover="MM_swapImage('Apply','','images/adminControls/
>> > button_apply_hover.jpg',1)">
>> >
>> > 
>> >
>> > how to write this thing in CakePHP
>>
>> --
>> Our newest site for the community: CakePHP Video Tutorials
>> http://tv.cakephp.org
>> Check out the new CakePHP Questions site http://ask.cakephp.org and help
>> others with their CakePHP related questions.
>>
>>
>> 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
>>
>
>
>
> --
> Master Ram.
> Founder n Director of rgPlanets Pvt. Ltd.
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> 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
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: convert to javascript to cake

2011-04-07 Thread Master Ram...!
i want to display image when mouuseover. on other image


On Thu, Apr 7, 2011 at 10:54 AM, andy_the ultimate baker <
anandghaywankar...@gmail.com> wrote:

> what exaxtly u wants to do?
> javascript is good for that.
>
>
> On Apr 7, 10:17 am, Master Ram  wrote:
> > Hi to all
> >
> >  > onmouseout="MM_swapImgRestore()"
> > onmouseover="MM_swapImage('Apply','','images/adminControls/
> > button_apply_hover.jpg',1)">
> >
> > 
> >
> > how to write this thing in CakePHP
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> 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
>



-- 
Master Ram.
Founder n Director of rgPlanets Pvt. Ltd.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: convert to javascript to cake

2011-04-06 Thread thatsgreat2345
This looks like image swap code that was created by fireworks.

The problem you seem to be having is that the image location is wrong
which means your button isn't changing when you hover over it.
Where it says images/adminControls/button_apply_hover.jpg you need to
replace that with the path to the image usually with cake it's /img/
button_apply_hover.jpg
I'm unaware of a way to return a path to the image directory, but
there may be a cake global variable that will do this but I've never
used it, you could always use WEBROOT_DIR and add . DS . 'img/
button_apply_hover.jpg' to it.

On Apr 6, 10:17 pm, Master Ram  wrote:
> Hi to all
>
>  onmouseout="MM_swapImgRestore()"
> onmouseover="MM_swapImage('Apply','','images/adminControls/
> button_apply_hover.jpg',1)">
>
> 
>
> how to write this thing in CakePHP

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: convert to javascript to cake

2011-04-06 Thread andy_the ultimate baker
what exaxtly u wants to do?
javascript is good for that.


On Apr 7, 10:17 am, Master Ram  wrote:
> Hi to all
>
>  onmouseout="MM_swapImgRestore()"
> onmouseover="MM_swapImage('Apply','','images/adminControls/
> button_apply_hover.jpg',1)">
>
> 
>
> how to write this thing in CakePHP

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


convert to javascript to cake

2011-04-06 Thread Master Ram
Hi to all





how to write this thing in CakePHP

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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