/    Sign up×
Community /Pin to ProfileBookmark

JavScript Slider

Right now I have a script that I got from [URL=”http://joshdavis.wordpress.com/2007/04/17/digg-style-animated-sliding-comment-box/”]here[/URL], and it is a script to make sliding DIV’s go up and down. When making a DIV, you call a function with parameters, like this:

[CODE]
var CollapseDivision = new CollapsibleBox(parameters go here);
[/CODE]

And then there is code to determine where the actual div is placed, which looks like this:

[CODE]
var container = collapse.getContainer();
[/CODE]

the getContainer() function can only call one thing, and that’s this:

[CODE]
CollapsibleBox.prototype.getContainer = function()
{
return this.collapse;
};
[/CODE]

I don’t really understand how to edit that. What I want to do is change where the collapsible division is placed. I don’t quite understand how this.collapse can return a place for the division to be placed, but that’s what I’m trying to figure out.

to post a comment
JavaScript

1 Comments(s)

×

Success!

Help @Ascendancy spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...