Go Back   CodingForums.com > :: Client side development > JavaScript programming > Ajax and Design

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-13-2007, 07:10 AM   PM User | #1
WilliamNz
New to the CF scene

 
Join Date: Apr 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
WilliamNz is an unknown quantity at this point
function design at fault ?

Hi there, I am using scriptilicious and can generate effects when using:

<div id="boosters"onclick="new Effect.Opacity(sampleBox5, {duration:3, from:.1, to:1.0})">

However, I want to be able to change the opacity of many divs onClick. So I have tried to use a function:


<div id="boosters"onclick="go()">


function go() {
new Effect.Opacity(sampleBox5, {duration:3, from:.1, to:1.0});
new Effect.Opacity(sampleBox4, {duration:3, from:.1, to:1.0});
}

When using functions, none of the effects work..
WilliamNz is offline   Reply With Quote
Old 04-13-2007, 08:07 AM   PM User | #2
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
Have you tried naming your function to something other than go? I think go() is already a function when it comes to the history.go().
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
_Aerospace_Eng_ is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:59 PM.


Advertisement
Log in to turn off these ads.