|
Post by Blind on Mar 15, 2009 20:13:47 GMT -5
By all means you can still create a mini profile, i just don't know how you learn best, it may be easier for you to start on a mini profile or it may be easier for you to begin on something smaller.
It's up too you.
|
|
|
Post by iDesign on Mar 15, 2009 20:17:31 GMT -5
Nah. I'd prefer to do a board mod, get an idea of the basics, then move on to more advanced stuff. Honestly, thanks for the advice and all. I actually now understand a bit of PB code, which is something I've always wanted to learn.
|
|
|
Post by Blind on Mar 15, 2009 20:23:03 GMT -5
No problem. Come back here when more help is needed.
|
|
|
Post by iDesign on Mar 15, 2009 20:27:23 GMT -5
You bet I will.... xP
|
|
|
Post by iDesign on Mar 18, 2009 10:41:36 GMT -5
I have a question.
Right. As you can see, I have two div ids, "hidden"1 and "hidden2". When the link is clicked to show one, I'd like the other to be hidden. How do I do this? I tried duplicating the part in red and reversing it for the other, but that didn't work.
|
|
|
Post by yilduz on Mar 18, 2009 19:08:18 GMT -5
So you want one or the other to show using different links?
<SCRIPT language="JavaScript"> <!-- function ToggleVisibility(DivID){ if(document.getElementById(DivID).style.display == 'none'){ document.getElementById('hidden1').style.display = 'none'; document.getElementById('hidden2').style.display = 'none'; document.getElementById(DivID).style.display = 'block'; } else{ document.getElementById(DivID).style.display = 'none'; } } //--> </SCRIPT>
<table width="500" border="0" cellspacing="1" cellpadding="0"> <tr> <td width="50%" align="center"><a href="#" onclick="ToggleVisibility('hidden1')">Show</a>
<div id="hidden1" style="display: none;">CONTENT</div></td> <td width="50%" align="center"> <a href="#" onclick="ToggleVisibility('hidden2')">Show</a>
<div id="hidden2" style="display: none;">CONTENT</div></td> </tr> </table> That should work. Let me know if it doesn't.
|
|
|
Post by iDesign on Mar 18, 2009 19:10:38 GMT -5
Works great thanks!
|
|
|
Post by yilduz on Mar 18, 2009 19:12:23 GMT -5
No problem.
|
|
|
Post by iDesign on Mar 18, 2009 19:14:17 GMT -5
Now, what would I do if I wanted to add another div?
|
|
|
Post by yilduz on Mar 18, 2009 19:18:32 GMT -5
Add this line right here.
document.getElementById('hidden2').style.display = 'none';
Just change the "hidden2" to whatever the name of the div is. For instance.
document.getElementById('hidden3').style.display = 'none'; document.getElementById('iDesign-smells-funny').style.display = 'none'; document.getElementById('hidden4').style.display = 'none';
etc
|
|
|
Post by iDesign on Mar 18, 2009 19:27:35 GMT -5
God, that's obvious. Thanks again!
|
|
|
Post by iDesign on Mar 19, 2009 10:53:25 GMT -5
Another Question
Is there a way that when a hex colour code is entered into the form "Colour Change", it changes the table background to that colour?
|
|
|
Post by [T]wlžTïd on Mar 19, 2009 12:40:57 GMT -5
Wow just reading this thread i now no how to read the code lolz, but im not all into javascript...its all bout the php ans css for me
|
|
|
Post by iDesign on Mar 19, 2009 15:22:05 GMT -5
Yeh. I'm still very much a newb too. The problem above is probably very simple to do.
|
|
|
Post by yilduz on Mar 19, 2009 19:05:27 GMT -5
Another Question Is there a way that when a hex colour code is entered into the form "Colour Change", it changes the table background to that colour? I don't understand what you're trying to do, exactly.
|
|