|
Author | Topic: Making a mini profile? (Read 529 times) |
Blind Administrator
     Head Coder[M:0] member is offline
![[avatar] [avatar]](http://i471.photobucket.com/albums/rr78/visualerror_jp/Avatar-1.jpg)
Paper Wings
![[homepage] [homepage]](http://images.proboards.com/buttons/www_sm.gif) Joined: Jan 2009 Gender: Male  Posts: 1,356 Karma: 1 |  | Re: Making a mini profile? « Reply #15 on Mar 15, 2009, 8:13pm » | |
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.
|
|
|
iDesign Easter Winners
     [M:155] member is offline
![[avatar] [avatar]](http://wimg.co.uk/RJ0smV.png)
No Cookie For Guessing Hobby.
Joined: Feb 2009 Gender: Male  Posts: 543 Karma: 0 |  | Re: Making a mini profile? « Reply #16 on Mar 15, 2009, 8:17pm » | |
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.
|
|
|
Blind Administrator
     Head Coder[M:0] member is offline
![[avatar] [avatar]](http://i471.photobucket.com/albums/rr78/visualerror_jp/Avatar-1.jpg)
Paper Wings
![[homepage] [homepage]](http://images.proboards.com/buttons/www_sm.gif) Joined: Jan 2009 Gender: Male  Posts: 1,356 Karma: 1 |  | Re: Making a mini profile? « Reply #17 on Mar 15, 2009, 8:23pm » | |
No problem. Come back here when more help is needed.
|
|
|
iDesign Easter Winners
     [M:155] member is offline
![[avatar] [avatar]](http://wimg.co.uk/RJ0smV.png)
No Cookie For Guessing Hobby.
Joined: Feb 2009 Gender: Male  Posts: 543 Karma: 0 |  | Re: Making a mini profile? « Reply #18 on Mar 15, 2009, 8:27pm » | |
You bet I will.... xP
|
|
|
iDesign Easter Winners
     [M:155] member is offline
![[avatar] [avatar]](http://wimg.co.uk/RJ0smV.png)
No Cookie For Guessing Hobby.
Joined: Feb 2009 Gender: Male  Posts: 543 Karma: 0 |  | Re: Making a mini profile? « Reply #19 on Mar 18, 2009, 10:41am » | |
I have a question.
Quote:<table width="500" border="0" cellspacing="1" cellpadding="0"> <tr> <td width="50%" align="center"><a href="#" onclick="this.innerHTML = (this.innerHTML == 'Hide') ? 'Show' : 'Hide'; var hiderow = document.getElementById('hidden1'); hiderow.style.display = (hiderow.style.display == 'none') ? '' : 'none'; return false;">Show</a>
<div id="hidden1" style="display: none;">CONTENT</div></td> <td width="50%" align="center"> <a href="#" onclick="this.innerHTML = (this.innerHTML == 'Hide') ? 'Show' : 'Hide'; var hiderow = document.getElementById('hidden2'); hiderow.style.display = (hiderow.style.display == 'none') ? '' : 'none'; return false;">Show</a>
<div id="hidden2" style="display: none;">CONTENT</div></td> </tr> </table> |
|
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.
|
|
|
yilduz Coding Moderator
     [M:15] member is offline
![[aim] [aim]](http://images.proboards.com/aim.gif)
![[homepage] [homepage]](http://images.proboards.com/buttons/www_sm.gif) Joined: Feb 2009 Gender: Male  Posts: 234 Location: index.php Karma: 0 |  | Re: Making a mini profile? « Reply #20 on Mar 18, 2009, 7:08pm » | |
So you want one or the other to show using different links?
Code:<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.
|
![[image] [image]](http://gaminggears.com/images/ads/468x60.png) I am PHP's Einstein $E = $m * pow($c,2); |
|
iDesign Easter Winners
     [M:155] member is offline
![[avatar] [avatar]](http://wimg.co.uk/RJ0smV.png)
No Cookie For Guessing Hobby.
Joined: Feb 2009 Gender: Male  Posts: 543 Karma: 0 |  | Re: Making a mini profile? « Reply #21 on Mar 18, 2009, 7:10pm » | |
Works great thanks!
|
|
|
yilduz Coding Moderator
     [M:15] member is offline
![[aim] [aim]](http://images.proboards.com/aim.gif)
![[homepage] [homepage]](http://images.proboards.com/buttons/www_sm.gif) Joined: Feb 2009 Gender: Male  Posts: 234 Location: index.php Karma: 0 |  | Re: Making a mini profile? « Reply #22 on Mar 18, 2009, 7:12pm » | |
No problem.
|
![[image] [image]](http://gaminggears.com/images/ads/468x60.png) I am PHP's Einstein $E = $m * pow($c,2); |
|
iDesign Easter Winners
     [M:155] member is offline
![[avatar] [avatar]](http://wimg.co.uk/RJ0smV.png)
No Cookie For Guessing Hobby.
Joined: Feb 2009 Gender: Male  Posts: 543 Karma: 0 |  | Re: Making a mini profile? « Reply #23 on Mar 18, 2009, 7:14pm » | |
Now, what would I do if I wanted to add another div?
|
|
|
yilduz Coding Moderator
     [M:15] member is offline
![[aim] [aim]](http://images.proboards.com/aim.gif)
![[homepage] [homepage]](http://images.proboards.com/buttons/www_sm.gif) Joined: Feb 2009 Gender: Male  Posts: 234 Location: index.php Karma: 0 |  | Re: Making a mini profile? « Reply #24 on Mar 18, 2009, 7:18pm » | |
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
|
![[image] [image]](http://gaminggears.com/images/ads/468x60.png) I am PHP's Einstein $E = $m * pow($c,2); |
|
iDesign Easter Winners
     [M:155] member is offline
![[avatar] [avatar]](http://wimg.co.uk/RJ0smV.png)
No Cookie For Guessing Hobby.
Joined: Feb 2009 Gender: Male  Posts: 543 Karma: 0 |  | Re: Making a mini profile? « Reply #25 on Mar 18, 2009, 7:27pm » | |
God, that's obvious. Thanks again!
|
|
|
iDesign Easter Winners
     [M:155] member is offline
![[avatar] [avatar]](http://wimg.co.uk/RJ0smV.png)
No Cookie For Guessing Hobby.
Joined: Feb 2009 Gender: Male  Posts: 543 Karma: 0 |  | Re: Making a mini profile? « Reply #26 on Mar 19, 2009, 10:53am » | |
Another Question
Quote: <table width="500" border="0" cellspacing="1" cellpadding="4"> <tr> <td align="center" valign="top"><form id="form1" name="form1" method="post" action=""> <input name="Colour Change" type="text" id="Colour Change" value="COLOUR" /> </form> </td> </tr> </table>
|
|
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?
|
|
|
[T]wlžTïd Transcendent Member
      Chronic Spammer[M:-70] member is offline
n000000b
![[msn] [msn]](http://images.proboards.com/msn.gif)
Joined: Feb 2009 Gender: Male  Posts: 1,309 Location: Cache Creek Karma: 0 |  | Re: Making a mini profile? « Reply #27 on Mar 19, 2009, 12:40pm » | |
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
|
|
|
iDesign Easter Winners
     [M:155] member is offline
![[avatar] [avatar]](http://wimg.co.uk/RJ0smV.png)
No Cookie For Guessing Hobby.
Joined: Feb 2009 Gender: Male  Posts: 543 Karma: 0 |  | Re: Making a mini profile? « Reply #28 on Mar 19, 2009, 3:22pm » | |
Yeh. I'm still very much a newb too. The problem above is probably very simple to do.
|
|
|
yilduz Coding Moderator
     [M:15] member is offline
![[aim] [aim]](http://images.proboards.com/aim.gif)
![[homepage] [homepage]](http://images.proboards.com/buttons/www_sm.gif) Joined: Feb 2009 Gender: Male  Posts: 234 Location: index.php Karma: 0 |  | Re: Making a mini profile? « Reply #29 on Mar 19, 2009, 7:05pm » | |
Mar 19, 2009, 10:53am, iDesign wrote:Another Question
Quote: <table width="500" border="0" cellspacing="1" cellpadding="4"> <tr> <td align="center" valign="top"><form id="form1" name="form1" method="post" action=""> <input name="Colour Change" type="text" id="Colour Change" value="COLOUR" /> </form> </td> </tr> </table>
|
|
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.
|
![[image] [image]](http://gaminggears.com/images/ads/468x60.png) I am PHP's Einstein $E = $m * pow($c,2); |
|
|