Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Need help with this script
Old 02-21-2006, 12:04 PM Need help with this script
barbara's Avatar
Skilled Talker

Posts: 79
Trades: 0
i am trying to figure out what this script is or does(it is at the head):
----------------------------------------------------------------------------

<!INPUT type="button" value="Go" onClick="doMoveBrowser(this.form,destForm)">

<! function doMoveBrowser(form,chc) {

parent.frames[1].location.href = form.choice.options[getSelectedValue(chc)].value + prd() + ".html";
} >

<script language="JavaScript">
function doMoveBrowser(form,chc) {
parent.frames[1].location.href = form.choice.options[getSelectedValue(chc)].value + prd() + ".html";
}
function getSelectedValue(chcc) {
return chcc.choice.selectedIndex;
}
function prd() {
if (document.periodForm.period[0].checked == true)
{return document.periodForm.period[0].value;}
else { if (document.periodForm.period[1].checked == true)
{return document.periodForm.period[1].value;}
else { if (document.periodForm.period[2].checked == true)
{return document.periodForm.period[2].value;}
else { if (document.periodForm.period[3].checked == true)
{return document.periodForm.period[3].value;}
else {return document.periodForm.period[4].value;}
}
}
}
}
function CreateWindow(urlq, row, col){
qWindow = window.open(urlq,"questionWindow",
"toolbar=no,width=" + col + ",height=" + row)
qWindow.focus()
}
</script>

.....<body>
INSIDE THE BODY; IT HAS THREE FORM AS FOLLOW:

FORM 1

<form name="periodForm" method="post" action="">
<b> Period</b><br>
Export detail:<br>
<input type="radio" name="period" value="01Q4" Checked>2001 Q4<br>
<input type="radio" name="period" value="01">2001<br>
<input type="radio" name="period" value="00">2000<br>
<input type="radio" name="period" value="99">1999<br>
<input type="radio" name="period" value="98">1998<br>
</form>

FORM 2

<form name="destForm" >
<p><b>Industry <br>
detail</b><br>
<INPUT type="button" value="Go" onClick="doMoveBrowser(this.form,destForm)">
<font face="helvetica, arial" size="2" color="#FFFF00">
<input type="reset" name="reset_button2" value=" Reset ">
</font> <br>
<br>
<font face="helvetica, arial" size="2" color="#FFFF00">
<select name="choice">
<option value="tradeind/NC_TotI_">Total</option>
<option value="tradeind/NC_Canada_">Canada</option>
<option value="tradeind/NC_Japan_">Japan</option>
<option value="tradeind/NC_Mexico_">Mexico</option>
<option value="tradeind/NC_Germany_">Germany</option>
<option value="tradeind/NC_Belgium_">Belgium</option>
<option value="tradeind/NC_China_">China</option>
<option value="tradeind/NC_HongKong_">Hong Kong</option>
<option value="tradeind/NC_Brazil_">Brazil</option>
<option value="tradeind/NC_Saudi_">Saudi Arabia</option>
<option value="tradeind/NC_EU_">European U.</option>
<option value="tradeind/NC_FAREAST_">Far East</option>
<option value="tradeind/NC_LA_">Latin America</option>
<option value="tradeind/NC_Afr_">Africa</option>
</select>
</font> </p>
</form>

FORM 3
<form name="indusForm" >
<b>Destination <br>
detail </b><BR>
<INPUT type="button" value="Go" onClick="doMoveBrowser(this.form,indusForm)">
<INPUT type="reset" NAME="reset_button" value=" Reset ">
<br>
<br>
<select name="choice">
<option value="tradeind/NC_TotC_">Total</option>
<option value="tradeind/NC_Comp_">Computers</option>
<option value="tradeind/NC_Mach_">Machinery</option>
<option value="tradeind/NC_Tran_">Transport.</option>
<option value="tradeind/NC_Elec_">Electrical</option>
<option value="tradeind/NC_Tex_">Textiles</option>
<option value="tradeind/NC_App_">Apparel</option>
<option value="tradeind/NC_Chem_">Chemicals</option>
<option value="tradeind/NC_Crop_">Crops</option>
<option value="tradeind/NC_Tobc_">Tobacco</option>
<option value="tradeind/NC_Pmet_">Prim. metal</option>
<option value="tradeind/NC_Fabm_">Fabr. metal</option>
<option value="tradeind/NC_Furn_">Furniture</option>
<option value="tradeind/NC_Papr_">Paper</option>
<option value="tradeind/NC_Rubb_">Rubber</option>
<option value="tradeind/NC_EU_">European U.</option>
<option value="tradeind/NC_FAREAST_">Far East</option>
<option value="tradeind/NC_LA_">Latin Am.</option>
<option value="tradeind/NC_Afr_">Africa</option>
</select>
</form>
</body>

You can still view the result at: https://www.ncwta.org/trade_index.html. the person who design it is no longer available to answer questions. the zip copy that i have is not the most current, so i went online and copy & paste all of the files.

on FORM 2 & FORM 3 above where the "<option value="tradeind/NC_FAREAST_">"; is tradeind/NC_FAREAST_ the file name?

many thanks

barbara is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to Need help with this script
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.29894 seconds with 12 queries