.html?variable=value

well i got this script:

<html>
<head>
<title>gionex</title>

<style type="text/css"> 
<!-- 
body { 
height: 100%; 
width: 100%; 
margin: 0; 
} 
--> 
</style>

</head>
<body bgcolor="#6ECDF5">

<SCRIPT LANGUAGE="JavaScript">
<!--
var myQueryString=document.location.search;
if (myQueryString[0]='?') {
 myQueryString=myQueryString.substr(1, myQueryString.length-1);
}
document.write(   
   '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
'+
   ' codebase="http://macromedia.com/cabs/swflash.cab#version=6,0,0,0"
'+
   ' WIDTH="740" HEIGHT="560" id="main">
'+
   ' <PARAM NAME=movie VALUE="main.swf">
'+
   ' <PARAM NAME=FlashVars VALUE="'+myQueryString+'">
'+
   ' <PARAM NAME=quality VALUE=high>
'+
   ' <PARAM NAME=bgcolor VALUE=#6ECDF5">
'+
   ' <EMBED src="main.swf"
'+
   '  FlashVars="'+myQueryString+'"
'+ 
   '  quality=high bgcolor=#6ECDF5"  WIDTH="740" HEIGHT="560" NAME="main"
'+
   '  TYPE="application/x-shockwave-flash"
'+
   '  PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
'+
   '</OBJECT>'
);
//-->
</SCRIPT>

</body>
</html>

and it does what i want it to do, which is when you type your value after the .html it will recognise the value in flash. GREAT :smiley:
BUT this bit of css:

<style type="text/css"> 
<!-- 
body { 
height: 100%; 
width: 100%; 
margin: 0; 
} 
--> 
</style>

now does not work (so my flash is not nicely centred), at this point i think i should tell you that i know NOTHING about html and any of this stuff so any noob help is appreciated!
Thanks for your help
Dan

try adding

html{
height:100%;
width:100%;
}

if you know nothing about HTML then I’m concerned you’re using Flash, surely every web developer starts on HTML…unless you’re a designer I guess

try this site, designed especially for noobs
http://www.w3schools.com/

What he’s having trouble with is CSS, which is relatively new to HTML. I started on HTML in '95, but it took me a while to relearn it when CSS was introduced.

no it doesnt work
is there an easier way of getting the variable after the .html e.g. .html?page=range to get sent to flash in an easier, simpler way? Cos i dont get any of this and have not done serious coding in html/css/java
Thanks for your help
Dan

if your server supports php, i would use that. it’s easy to pass variables from urls to the page with php.