Reply
Scriptacolous - How Do I Apply The Effect?
Old 07-11-2007, 06:25 PM Scriptacolous - How Do I Apply The Effect?
Junior Talker

Posts: 3
Hey,
I am new Scriptacolous and I downloaded all the items and set it up. Here's my question:

* How do I make an effect work? :lol:

I am trying this on a DIV. I just want the div (plain w/ text) to "Effect.Appear".
If anyone can help me with that, I'd be delighted. Thanks!

In the head, I have:
Code:
<script type="text/javascript" language="javascript">
    // <![CDATA[
      Effect.Appear('element_id');
    // ]]>
</script>
** what do I put in for "element_id"? The DIV ID?

and on the DIV I have:
Code:
<div id="mainTable" class="scroll" align="left" onClick="new Effect.Appear(document.getElementById('mainTable'))">
Cadillac is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 07-12-2007, 12:01 AM Re: Scriptacolous - How Do I Apply The Effect?
vangogh's Avatar
Post Impressionist

Posts: 8,356
Name: Steven Bradley
Location: Boulder, Colorado
I haven't worked with Scriptaculous, but I would think you would use the id of the element you want to get the effect when you call the function.

Effect.Appear("mainTable");

That's generally how things would work and I assume it's the same here.
__________________
l Search Engine Friendly Web Design | Van SEO Design
l Tips On Marketing, SEO, Design, and Development | TheVanBlog
l Custom WordPress Themes
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Reply     « Reply to Scriptacolous - How Do I Apply The Effect?
 

Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.31585 seconds with 13 queries