Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-11-25 23:17:17

Joey
Member
From: Netherlands
Registered: 2005-01-19
Posts: 257

Clean javascripts

I was wondering if somebody know’s a good site where I can found clean javascripts. For exemple for the live show/hide effect when you click on a button as used in Basecamp and Writeboard. That kind of scripts.

What’s the best site?


Regards,

Joey

Offline

#2 2005-11-26 00:38:53

larf
Archived Plugin Author
Registered: 2005-01-31
Posts: 159
Website

Re: Clean javascripts

Try this.

Offline

#3 2005-11-27 00:34:54

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

Re: Clean javascripts

Nice link Larf! Thanks

Offline

#4 2005-11-27 04:15:01

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: Clean javascripts

or this

Matthew


Offline

#5 2005-11-27 08:34:26

Joey
Member
From: Netherlands
Registered: 2005-01-19
Posts: 257

Re: Clean javascripts

Nice links, thanks :)


Regards,

Joey

Offline

#6 2005-11-27 13:49:36

larf
Archived Plugin Author
Registered: 2005-01-31
Posts: 159
Website

Re: Clean javascripts

I’ve just made a plugin which contains the moo.fx scripts. Maybe you find it useful.

Offline

#7 2005-12-07 18:14:28

Joey
Member
From: Netherlands
Registered: 2005-01-19
Posts: 257

Re: Clean javascripts

Hmm Matthew. I can’t get the domCollapse script working. Maybe you can take a look at it:

link

Maybe do you see what I’m doing wrong. Thnx


Regards,

Joey

Offline

#8 2005-12-07 19:52:49

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: Clean javascripts

Do not miss script.aculo.us.

Offline

#9 2005-12-12 01:36:51

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: Clean javascripts

Joey,
To be honest, I never got it working either. I thought it was my problem, perhaps the script is crap?
?
Matthew


Offline

#10 2005-12-12 16:28:19

Joey
Member
From: Netherlands
Registered: 2005-01-19
Posts: 257

Re: Clean javascripts

Looks like, but I don’t see any sort of support on that site, only comments…but the only things in the comments are question, I can’t find any anwsers :(


Regards,

Joey

Offline

#11 2005-12-30 22:30:14

Joey
Member
From: Netherlands
Registered: 2005-01-19
Posts: 257

Re: Clean javascripts

So, since I can’t get the domCollapse script working, I tried moo.fx. But I can’t get that working either. Maybe somebody who knows moo.fx can help me with the following? :)

What I want is probably very simple. Somewhere on my page I want a link “Click for more information” and when the visitor is clicking on it, I want that a div with id x opens (probably with the fxHeight function). Then, of course when the visitor agains click on that link, the div collapse again.

If the div is open, I want a link in that div: “close this box” which does exactly the same as the other link: it must close the box.

How can I get this done with moo.fx or maybe with an other script that you know? I don’t know anything of javascript so I’d appreciate a kind of full code :P :-) Thanks in advance!


Regards,

Joey

Offline

#12 2005-12-30 23:43:56

larf
Archived Plugin Author
Registered: 2005-01-31
Posts: 159
Website

Re: Clean javascripts

In the page head:

<code>
<script type=“text/javascript” src=”<txp:site_url />index.php?js=prototype”></script>
<script type=“text/javascript” src=”<txp:site_url />index.php?js=moofx”></script>
<script type=“text/javascript” src=”<txp:site_url />index.php?js=moofxpack”></script>
<script type=“text/javascript”>
window.onload = function() {
pictureHeight = new fx.Height(‘your_id’, {duration: 400});
pictureHeight.hide();
}
</script>
</code>

Somewhere in the page:
<a href="#" onclick="pictureHeight.toggle();">Click for more information</a>

Inside the div:
<a href="#" onclick="pictureHeight.hide();">close this box</a>

Offline

Board footer

Powered by FluxBB