Hi

Thanks for the help, I tried the above in  a clean page but I can't
get it to work, the code as I've implemented it is here:

<script src='http://pastie.org/566433.js'></script>

Can you see where I've gone wrong (it's almost definately my fault) :)

Cheers
Andy

On Jul 30, 11:03 am, "Alex McAuley" <webmas...@thecarmarketplace.com>
wrote:
> A couple of things i would do.
>
> First i would remove the onlick and assign the elements a classname
> something like this will work
>
> http://pastie.org/565060
>
> HTH
>
> Alex Mcauleyhttp://www.thevacancymarket.com
>
> ----- Original Message -----
> From: "Andrew Dodd" <a...@slicethepie.com>
> To: "Prototype & script.aculo.us" <prototype-scriptaculous@googlegroups.com>
> Sent: Thursday, July 30, 2009 10:42 AM
> Subject: [Proto-Scripty] Re: Effect.Morph query
>
> The code is being echoed in a php script (hence the $row and $class
> variables but they do translate properly) I've pasted it below:
>
> onclick="Effect.morph(lastPlayed , {'style: $class'}), $('$row
> [TrackID]').morph('background:#ffcc33;'),var lastPlayed = ''$row
> [TrackID]';"
>
> This is one of my many failed attempts.
>
> Thanks for the help
>
> Cheers
> Andy
>
> On Jul 30, 10:26 am, "Alex McAuley" <webmas...@thecarmarketplace.com>
> wrote:
> > Can you give an example of your code in a pastebin and i will ammend it to
> > do what it needs to.
>
> > Regards
>
> > Alex Mcauleyhttp://www.thevacancymarket.com
>
> > ----- Original Message -----
> > From: "Andrew Dodd" <a...@slicethepie.com>
> > To: "Prototype & script.aculo.us"
> > <prototype-scriptaculous@googlegroups.com>
> > Sent: Thursday, July 30, 2009 10:23 AM
> > Subject: [Proto-Scripty] Re: Effect.Morph query
>
> > I'm not really sure how to, I've been messing with it for a couple of
> > days to no avail.
>
> > I have been trying to use a variable to achieve this so that th
> > onClick does the following in this order:
>
> > 1./ Reset the morph effect on the "lastPlayed" element
> > 2./ Apply the morph effect to the clicked element
> > 3./ Set the "lastPlayed" variable to match the id of the clicked
> > element.
>
> > Among other errors I've recieved is that lastPlayed is undefined but I
> > think this may be down to me not knowing how to use a variable instead
> > of an element id in the morph statment.
>
> > Cheers
> > Andy
>
> > On Jul 28, 10:39 pm, "Andy Daykin" <daykina...@gmail.com> wrote:
> > > Why don't you use an array to store all of the elements that have been
> > > clicked and treat it like a queue?
>
> > > --------------------------------------------------
> > > From: "Andrew Dodd" <a...@slicethepie.com>
> > > Sent: Tuesday, July 28, 2009 7:02 AM
> > > To: "Prototype & script.aculo.us"
> > > <prototype-scriptaculous@googlegroups.com>
> > > Subject: [Proto-Scripty] Effect.Morph query
>
> > > > Hi
>
> > > > I page with multiple elements each of which are highlighted
> > > > (individually) onclick.
>
> > > > I would like the morph effect to be removed from the previous element
> > > > when a new one is clicked (highlighted).
>
> > > > I won't know what the id of the previous element was though, is there
> > > > a way to achieve this?
>
> > > > Cheers
> > > > Andy
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to