Welcome Guest [Log In] [Register]
Search Members Calendar | Rules ZB Code Index IF Code Index
ZBCode
  • Navigation
  • ZBCode
  • Coding Support
  • InvisionFree and Zetaboards Support
  • [ZB] Code Identification?
Hey, welcome to ZBCode, the premier coding forum for ZB. Here you fill find some of the best Invisionfree and Zetaboards Codes on the network! Unfortunately, you're sorta hovering around in guest mode at the moment; why not join in on the fun? Register an account and you can start accessing the wealth of resources we have available here. Enjoy your stay at ZBCode, and remember to tell all your friends about us; the more members, the more codes available. ;)

Interested in joining? Click here.


If you are already a member of ZBCode, feel free to login right here:

Username:   Password:
Locked Topic
  • Pages:
  • 1
  • 2
[ZB] Code Identification?
Tweet Topic Started: Apr 21 2010, 03:20 PM (584 Views)
RedBldSandman May 6 2010, 04:47 PM Post #11
Member Avatar
ZIPPY!

Posts:
482
Group:
Coding Staff
Member
#2,122
Joined:
Jan 25, 2009
The style="display:none;" is what makes the div hidden when it loads. What JS do you use to show the divs?

If you're using the function showDiv() then that script is needed to define the function so that you can actually use it to show your chosen divs...
if that makes sense xD
Posted Image
"To iterate is human, to recurse divine."

Offline Profile Goto Top
 
SlyCooperFan1 May 6 2010, 10:12 PM Post #12
Master Raccoon Thief Coder

Posts:
214
Group:
Member
Member
#1,306
Joined:
Oct 22, 2008
Mmm...not using that function. I don't think so anyway. That JS code is the only time "function showDiv()" shows up in my Board Template. Does that mean I can safely delete it?

Okay, I found this out:

Let's say I have that JavaScript code in my wrappers and I have this on a webpage, let's say:

Code: HTML
 
<a href="#" onClick="showDiv('Hidden');return false;">Click here to see/hide the hidden message.</a><br><br>

<div id="Hidden" style="display: none">This is the hidden message.</div>


I removed the JS code from earlier that I used to be confused about, and when I removed that, clicking the words "Click here to see/hide the hidden message." would NOT show the hidden message. So it is to the best of my knowledge that I need that code since it powers the onClick="showDiv" command in a <a> tag.
Edited by SlyCooperFan1, May 7 2010, 12:19 AM.
ZBCode is no longer active.
Please visit these sites for codes:
Outline - Zathyus Networks
Offline Profile Goto Top
 
RedBldSandman May 7 2010, 05:05 PM Post #13
Member Avatar
ZIPPY!

Posts:
482
Group:
Coding Staff
Member
#2,122
Joined:
Jan 25, 2009
Which is exactly what I was talking about.... xD
Posted Image
"To iterate is human, to recurse divine."

Offline Profile Goto Top
 
SlyCooperFan1 May 8 2010, 07:38 AM Post #14
Master Raccoon Thief Coder

Posts:
214
Group:
Member
Member
#1,306
Joined:
Oct 22, 2008
Well, sorry, I couldn't understand your techy talk. xD

"if that makes sense"

:P
ZBCode is no longer active.
Please visit these sites for codes:
Outline - Zathyus Networks
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
ZetaBoards - Free Forum Hosting
Create your own social network with a free forum.
Learn More · Sign-up Now
« Previous Topic · InvisionFree and Zetaboards Support · Next Topic »
Locked Topic
  • Pages:
  • 1
  • 2

Track Topic · E-mail Topic Time: 3:37 AM Jul 11
Hosted for free by ZetaBoards · Privacy Policy