Dear all ,
Please help me out, i am using scriptaculous in my script. But it is giving error to me that Effect is not defined .

<head>
<script type="text/javascript" src="/js/prototype.js"></script>
        <script type="text/javascript" src="/js/scriptaculous.js?load=effects"></script>
        <script type="text/javascript" src="/js/effects.js"></script>
    function only_refresh(){
     // Some code .
     var fade_in = setInterval("fade_in()",5000);
     }
function fade_in(){
                        new Effect.Appear("div_id", {duration:2, from:0, to:1.2});
                        //fadeout.delay(1000);
                }
 </head>

Please help ...
Thanks in advance.

Contact the writer of the scripts you are using or the reference manual.

I don't think you need to use new. Watch the demo's or the manual like Graphix suggested.

Thanks for reply guys ...
Its solved now....

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.