Yahoo game profile

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Yahoo game profile
GoddsEgo
PayPal Donation
CZ Moderator
Status: Offline
Joined: Jun 26, 2003
0.15 posts per day
Posts: 1211
Points: 69,166
 Yahoo Messenger  
Hi all,

I have been working on a s c r i p t that I modified thats lets you input a yahoo ID and its pulls up the yahoo game profile of a player. As of right now the s c r i p t is working great but its only for pinochle.

What I would like is to have 2 input fields. One for the yahoo ID and one for the yahoo game.

So the part of the varible that says pinochle would need to be an input too but i can't figure out how to do it. Or if it can even be done this way or do i need to rewrite it making a id var and a game var?

Can any one help?

Here is what I am working with

<s c r i p t>
function ongpf(form) {
  if (form.gpf.value) {
    var OpenWindow=window.open ("http://profiles.games.yahoo.com/games/profile2?name=" +form.gpf.value+ "&intl=us&consolidater=pinochle.yahoo");
  }
  return false;
}
</s c r i p t>

<form name=gpf onsubmit="return ongpf(this)">
<table>
<tr>
<td align=center>
<font color=000000><strong>Yahoo ID</strong></font>
</td>
</tr>
<tr>
<td align=center>
<INPUT style="border-width:thin; FONT-SIZE: 14pt; WIDTH: 200px; FONT-FAMILY: Times; HEIGHT: 22px; BACKGROUND-COLOR: #000000; color:#FFFFFF; text-align:center; font-weight:bold" name=gpf>
</td>
</tr>
</table>
</form>



Back to top Reply with quote
#2   re: Yahoo game profile
Kelly_Hero
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 59
Gender: Female
Website:
Status: Offline
Joined: Aug 20, 2003
0.48 posts per day
Posts: 3765
Points: 351,412
   
Lemme play with it a bit and I'll see what I can come up with.

Kelly



Back to top Reply with quote
#3   re: Yahoo game profile
Kelly_Hero
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 59
Gender: Female
Website:
Status: Offline
Joined: Aug 20, 2003
0.48 posts per day
Posts: 3765
Points: 351,412
   
This works:
<s c ript>
function ongpf(form) {
  if (form.gpf.value) {
    var OpenWindow=window.open ("http://profiles.games.yahoo.com/games/profile2?name=" +form.gpf.value+ "&intl=us&consolidater=" +form.abc.value+ ".yahoo");
  }
  return false;
}
</s c ript>

<form name=gpf onsubmit="return ongpf(this)">
<table>
<tr>
<td align=center>
<font color=000000><strong>Yahoo ID</strong></font>
</td>
</tr>
<tr>
<td align=center>
<INPUT style="border-width:thin; FONT-SIZE: 14pt; WIDTH: 200px; FONT-FAMILY: Times; HEIGHT: 22px; BACKGROUND-COLOR: #000000; color:#FFFFFF; text-align:center; font-weight:bold" name=gpf>
</td>
</tr>
<tr>
<td align=center>
<font color=000000><strong>Which Game?</strong></font>
</td>
</tr>
<tr>
<td><INPUT style="border-width:thin; FONT-SIZE: 14pt; WIDTH: 200px; FONT-FAMILY: Times; HEIGHT: 22px; BACKGROUND-COLOR: #000000; color:#FFFFFF; text-align:center; font-weight:bold" name=abc> </td>
</tr>
<tr>
<td align="center"><input type="submit" value="Find It!"></td>
</tr>
</table>
</form>


One thing you might want to do is put in a drop down menu for the games instead of an input box though.

Kelly


Back to top Reply with quote
#4   
GoddsEgo
PayPal Donation
CZ Moderator
Status: Offline
Joined: Jun 26, 2003
0.15 posts per day
Posts: 1211
Points: 69,166
 Yahoo Messenger  
Omg TY Kelly Now u r my hero.

Ya know I tried putting the other varible in like you did but couldn't get it to return the results but i see what I needed was the submit button.

Great job ty again
Rob



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum