Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#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
Re: Clean javascripts
Try this.
Offline
Offline
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
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:
Maybe do you see what I’m doing wrong. Thnx
Regards,
Joey
Offline
Re: Clean javascripts
Do not miss script.aculo.us.
Offline
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
- I am Squared Eye and I
am launchinghave launched Pattern Tap
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
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
#13 2006-01-01 21:26:47
- Joey
- Member
- From: Netherlands
- Registered: 2005-01-19
- Posts: 257
Re: Clean javascripts
Thanks larf, but what am I doing wrong :S?. Also, is there a possibilty to hide the ‘Click for more info..’-link when the visitor clicked on it?
Regards,
Joey
Offline
Re: Clean javascripts
Because the scripts are not found on your server – Look at this:
http://www.joeyswebdesign.com/scripts/moo.fx.js
I recommend using the plugin I made. It’s an easy way and won’t cause you trouble if you are moving your site root etc. Another thing you don’t have to take care of, I think.
EDIT: Forgot to mention that your test page works fine if you link to the correct javascripts.
Last edited by larf (2006-01-02 11:16:30)
Offline
#15 2006-01-02 11:29:54
- Joey
- Member
- From: Netherlands
- Registered: 2005-01-19
- Posts: 257
Re: Clean javascripts
Oehh stupid :S okay I changed the script-adresses. I’ll use your plugin when I got it working of course ;-).
But I can’t see that it is working okay. It only shows a part of the first line and when I click on it it don’t open. It only opens about 5px and then closes again to its start position. Don’t I have to specify the start and end- height?
Regards,
Joey
Offline