Transcendent Studios
« Making a mini profile? »

Welcome Guest. Please Login or Register.
May 19, 2013, 4:36pm



Exist To Create

Transcendent Studios :: Coding Corner :: Coding Chat :: Making a mini profile?
« Page 2 of 5 » Jump to page   Go    [Search This Thread] [Share Topic] [Print]
 AuthorTopic: Making a mini profile? (Read 520 times)
Blind
Administrator
*****
Head Coder[M:0]
member is offline

[avatar]

Paper Wings


[homepage]

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.
Link to Post - Back to Top  IP: Logged

iDesign
Easter Winners
*****
[M:155]
member is offline

[avatar]

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.
Link to Post - Back to Top  IP: Logged

[image]
Blind
Administrator
*****
Head Coder[M:0]
member is offline

[avatar]

Paper Wings


[homepage]

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.
Link to Post - Back to Top  IP: Logged

iDesign
Easter Winners
*****
[M:155]
member is offline

[avatar]

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
Link to Post - Back to Top  IP: Logged

[image]
iDesign
Easter Winners
*****
[M:155]
member is offline

[avatar]

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.
Link to Post - Back to Top  IP: Logged

[image]
yilduz
Coding Moderator
*****
[M:15]
member is offline



[msn] [aim]
[homepage]

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.
Link to Post - Back to Top  IP: Logged


[image]


I am PHP's Einstein
$E = $m * pow($c,2);
iDesign
Easter Winners
*****
[M:155]
member is offline

[avatar]

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!
Link to Post - Back to Top  IP: Logged

[image]
yilduz
Coding Moderator
*****
[M:15]
member is offline



[msn] [aim]
[homepage]

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.
Link to Post - Back to Top  IP: Logged


[image]


I am PHP's Einstein
$E = $m * pow($c,2);
iDesign
Easter Winners
*****
[M:155]
member is offline

[avatar]

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?
Link to Post - Back to Top  IP: Logged

[image]
yilduz
Coding Moderator
*****
[M:15]
member is offline



[msn] [aim]
[homepage]

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
Link to Post - Back to Top  IP: Logged


[image]


I am PHP's Einstein
$E = $m * pow($c,2);
iDesign
Easter Winners
*****
[M:155]
member is offline

[avatar]

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!
Link to Post - Back to Top  IP: Logged

[image]
iDesign
Easter Winners
*****
[M:155]
member is offline

[avatar]

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?
Link to Post - Back to Top  IP: Logged

[image]
[T]wlžTïd
Transcendent Member
******
Chronic Spammer[M:-70]
member is offline



n000000b

[icq] [msn]

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 :P
Link to Post - Back to Top  IP: Logged

[image]
iDesign
Easter Winners
*****
[M:155]
member is offline

[avatar]

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.
Link to Post - Back to Top  IP: Logged

[image]
yilduz
Coding Moderator
*****
[M:15]
member is offline



[msn] [aim]
[homepage]

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.
Link to Post - Back to Top  IP: Logged


[image]


I am PHP's Einstein
$E = $m * pow($c,2);
« Page 2 of 5 » Jump to page   Go    [Search This Thread] [Share Topic] [Print]

Click Here To Make This Board Ad-Free


This Board Hosted For FREE By ProBoards
Get Your Own Free Message Boards & Free Forums!
Terms of Service | Privacy Policy | Notice | FTC Disclosure | Report Abuse | Mobile