Home | Community | Message Board


This site includes paid links. Please support our sponsors.


Welcome to the Shroomery Message Board! You are experiencing a small sample of what the site has to offer. Please login or register to post messages and view our exclusive members-only content. You'll gain access to additional forums, file attachments, board customizations, encrypted private messages, and much more!

Jump to first unread post Pages: 1
InvisibleKrishna
कृष्ण,LOL
 User Gallery

Registered: 05/08/03
Posts: 23,285
Loc: oakland
"cut" divs
    #5496891 - 04/09/06 03:09 PM (17 years, 9 months ago)

i was thinking it would be nice to have hidden divs in posts that are clickable, when clicked, they become visible. basically, the "cuts" that live-journal allows for.

the js to allow for this would be simple enough

Code:
<script type="text/javascript">
function toggleLayer(whichLayer,hideLayer)
{
if (document.getElementById)
{
// this is the way the standards work
var style2 = document.getElementById(whichLayer).style;
style2.display = style2.display=="block"? "none":"block";

}
else if (document.all)
{
// this is the way old msie versions work
var style2 = document.all[whichLayer].style;
style2.display = style2.display=="block"? "none":"block";
}
else if (document.layers)
{
// this is the way nn4 works
var style2 = document.layers[whichLayer].style;
style2.display = style2.display=="block"? "none":"block";
}
}
</script>



, and then the post could have something like

[hidden_link foobar]click here to open foobar[/hidden_link]
[hidden foobar]lots
of
pictures
[/hidden]

the link would call the function (onclick="toggleLayer('foobar');") and show/hide the div.

just an idea - could be good for posts with lots of pictures (although i guess they'd load anyway, just hidden), and could make for lots of funny scenarios in otd.

what do you guys think?


--------------------




Extras: Filter Print Post Top
Jump to top Pages: 1


Similar ThreadsPosterViewsRepliesLast post
* Re: Buried Documents The Brain 1,327 9 11/16/99 07:51 PM
by Anonymous
* Banning Chode is akin to cutting the hand off because the pinkie fingie has a wart
( 1 2 all )
GnuBobo 2,899 35 06/23/06 01:01 PM
by geokills
* function to cut posts from posters with low shrooms? cybrbeast 2,098 13 01/15/04 05:57 AM
by simplemachine
* The issue of old posts being cut off LinkA 630 5 05/03/06 01:41 AM
by Link
* Trouble with the "jump" feature in the documents? Twirling 1,162 2 09/24/03 11:03 AM
by Twirling
* Shroomery now showing as "caution" rating by Norton Aldebaran 1,313 6 02/22/13 06:24 PM
by Aldebaran
* Question about ratings system.
( 1 2 3 all )
Anonymous 8,866 46 12/08/04 09:29 PM
by geokills
* done but with errors on page backupwards 1,251 3 02/10/06 12:42 AM
by Ythan

Extra information
You cannot start new topics / You cannot reply to topics
HTML is disabled / BBCode is enabled
Moderator: Ythan, Thor, Seuss, geokills
295 topic views. 0 members, 3 guests and 0 web crawlers are browsing this forum.
[ Show Images Only | Sort by Score | Print Topic ]
Search this thread:

Copyright 1997-2024 Mind Media. Some rights reserved.

Generated in 0.023 seconds spending 0.008 seconds on 13 queries.