Toggle Headline

, posted: 22-Mar-2007 18:32

Toggle headline

// Toggle on/off from headline
function toggle(targetId) {
var target = document.getElementById(targetId);
if ( == "none"){"inline";
} else {"none";
// Usage:
// Anchor: onClick="toggle(id)"
// Link: <div id="id" style="display: none;"><? include("path/filename"); ?></div>

You're welcome to use it or modify it. But please.. at least acknowledge me as your inspiration. Laughing

It's work... I can tell you where you can see it in action, but you have to email me first.

Add a comment

Please note: comments that are inappropriate or promotional in nature will be deleted. E-mail addresses are not displayed, but you must enter a valid e-mail address to confirm your comments.

Are you a registered Geekzone user? Login to have the fields below automatically filled in for you and to enable links in comments. If you have (or qualify to have) a Geekzone Blog then your comment will be automatically confirmed and placed in the moderation queue for the blog owner's approval.

Your name:

Your e-mail:

Your webpage:

skykissme's profile

New Zealand

I'm not an expert as I'm still learning, and there are lots of things I do not know. You may call me a geek in some areas of my interest. I love computer but working mainly with telephone systems. So if you think I can help you, I'd be happy to be able to help.

MAGISTER IT MAGI! That's what I want to be.