CBrown
06-08-2005, 07:46 PM
Hey guys,
I have a problem here, I have this code:
<object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" height="120" width="400">
<param name="movie" value="http://www.h2advanced.com/media/swf/signature_01.swf?playerName=VARIABLE">
<param name="quality" value="high">
<embed src="http://www.h2advanced.com/media/swf/signature_01.swf?playerName=VARIABLE" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" height="120" width="400">
</object>
that will display someone's halo 2 stats as long as the word VARIABLE is replaced with their gamertag. What I want to do is make a form with a text input field and a submit button so that a user can input their gamertag, push the button, and the thing comes up with their stats. All of my attempts have failed at this. Please help.
If you want to see what I tried to do on my own:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Frustrating little booger</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript">
function lookup(name)
{
document.write ('<object codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" height=\"120\" width=\"400\"><param name=\"movie\" value=\"http://www.h2advanced.com/media/swf/signature_01.swf?playerName=' + name + '\"><param name=\"quality\" value=\"high\"><embed src=\"http://www.h2advanced.com/media/swf/signature_01.swf?playerName=' + name + '\" quality=\"high\" pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" height=\"120\" width=\"400\"></object>');
}
</script>
</head>
<body>
<form name="form1" action="javascript:lookup(document.window.form1.text1.value);">
Gamertag:<input id="text1"></input><br>
<button type="submit" width="150" height"20">
</body>
</html>
</object>
thanks again,
Chris
I have a problem here, I have this code:
<object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" height="120" width="400">
<param name="movie" value="http://www.h2advanced.com/media/swf/signature_01.swf?playerName=VARIABLE">
<param name="quality" value="high">
<embed src="http://www.h2advanced.com/media/swf/signature_01.swf?playerName=VARIABLE" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" height="120" width="400">
</object>
that will display someone's halo 2 stats as long as the word VARIABLE is replaced with their gamertag. What I want to do is make a form with a text input field and a submit button so that a user can input their gamertag, push the button, and the thing comes up with their stats. All of my attempts have failed at this. Please help.
If you want to see what I tried to do on my own:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Frustrating little booger</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript">
function lookup(name)
{
document.write ('<object codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" height=\"120\" width=\"400\"><param name=\"movie\" value=\"http://www.h2advanced.com/media/swf/signature_01.swf?playerName=' + name + '\"><param name=\"quality\" value=\"high\"><embed src=\"http://www.h2advanced.com/media/swf/signature_01.swf?playerName=' + name + '\" quality=\"high\" pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" height=\"120\" width=\"400\"></object>');
}
</script>
</head>
<body>
<form name="form1" action="javascript:lookup(document.window.form1.text1.value);">
Gamertag:<input id="text1"></input><br>
<button type="submit" width="150" height"20">
</body>
</html>
</object>
thanks again,
Chris