You can create a js function in the parent file, something like
function myOpacity(){ new Effect.Opacity('element ID', { from: 1,
to: 0.4, duration: 0.7});}

when you need the opacity to execute, just call the function from de
iframe this way

parent.myOpacity();

hope this helps.

On 27 mayo, 06:32, oSerX <oser...@gmail.com> wrote:
> Hello,
>
> I have a main php file including 4 iframes. From inside of one iframe
> I want to access an ID element defined in the main php file.
>
> using Javascript I can use
> "top.document.getElementByID('ID_of_the_element_I_want_to_acces').style.opa 
> city=
> "
>
> , but ... I want to use scriptaculous effects to do EffectOpacity on
> this element outside the current iframe ...
>
> i cannot do " .. onclick="new Effect.Opacity('element ID', { from: 1,
> to: 0.4, duration: 0.7});"
>
> please help me ...  how can I make Effect.Opacity to point to an
> element in the main php file ??
>
> Thank you.

-- 
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-scriptacul...@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