This has been answered hundreds....

admin

Administrator
Staff member
of times in the forum, but I'll ask just once more. :D

Alright, I have gotten my js running pretty well, but I need to pass the variables of my selected function (SOLVED) to the following script.


--------------------------------------------

</head>

<script>
var name= "Unknown";
var type= "Unclassified";
var AccMul= "0";
var AttMul= "0";
var DefMul= "0";
var IntMul= "0";
var PriMul= "0";
var SpeMul= "0";
var VitMul= "0";
var WilMul= "0";

</script>

<body>

<table width="100%" border="0">
<TR>
<TD>

Race:

</TD>
<TD>

<script>

document.writeln(name);

</script>

</TD>
</TR>
<TR>
<TD>

Class:

</TD>
<TD>

<script>

document.writeln(type);

</script>

</TD>
</TR>
<TR>
<TD>

Accuracy Multiplier:

</TD>
<TD>

<script>

document.writeln(AccMul);

</script>

</TD>
</TR>
<TR>
<TD>

Attack Multiplier:

</TD>
<TD>

<script>

document.writeln(AttMul);

</script>

</TD>
</TR>
<TR>
<TD>

Defense Multiplier:

</TD>
<TD>

<script>

document.writeln(DefMul);

</script>

</TD>
</TR>
<TR>
<TD>

Intelligence Multiplier:

</TD>
<TD>

<script>

document.writeln(IntMul);

</script>

</TD>
</TR>
<TR>
<TD>

Pride Multiplier:

</TD>
<TD>

<script>

document.writeln(PriMul);

</script>

</TD>
</TR>
<TR>
<TD>

Speed Multiplier:

</TD>
<TD>

<script>

document.writeln(SpeMul);

</script>

</TD>
</TR>
<TR>
<TD>

Vitality Multiplier:

</TD>
<TD>

<script>

document.writeln(VitMul);

</script>

</TD>
</TR>
<TR>
<TD>

Will Multiplier:

</TD>
<TD>

<script>

document.writeln(WilMul);

</script>

</TD>
</TR>
</TABLE>
</body>

--------------------------------------

Not a fun task, I can get the page to change, so it's not a big deal that I solve this little diddy, but I really just wanted the variables to change the corrosponding script, not the entire page, which is what I'm actually getting. .:Sigh:.


So, that's really it I just want to transfer those variables from my function to this page setup.

Any help is very much appreciated thanks.
 
Back
Top