My First JavaScript Script :-}

by Ben Ocean <lists(at)TheWebsons.com>

 Date:  Sun, 01 Oct 2000 12:13:18 -0700
 To:  hwg-languages(at)hwg.org
  todo: View Thread, Original
Hi;
I'm running into problems right out of the gate (imagine that). I'm hoping 
you JS gurus out there can trouble-shoot this pretty basic script. Knowing 
me, it probably has an error on every line (just teasing). Thanks in advance.
BenO

The following is in the body. The PHP works fine outside of the JS. A few 
notes:
**Periods added to keep your browser from freaking out
**myiframe is not an iframe (yet: it may be later)

<span class="whateverItWas">
<a href.="javascript.:myiframe.(bloomTimes)" 
onMouseOver.="myiframe.(bloomTimes)" onMouseOut.="myiframe.(plain)">Bloom 
Times</.a><.br>
<a href.="">Varieties</.a><.br>
<a href.="">Preferences</.a><.br>
<a href.="">Gift Shop</.a><.br>
</.center></.span>
<span class="frame">
<img src="../images/blank.gif" width=209 height=264 alt="">
<.script language="javascript1.1">
<!--
function myiframe.(this) {
	switch. (this) {
		case. "bloomTimes.":
			document.write. =
				"<.center>
				<input type.=hidden name.=olimit value.=0>
				<input type.=hidden name.=zid value.=<?php echo $zid?>>
				<input type.=hidden name.=lid value.=<?php echo $lid?>>
				<input type.=hidden name.=cartid value.=<?php echo $cartid?>>
				<?php if($zscat && !$showscat){	// subcats, first pass thru ?>
				<input type.=hidden name.=showscat value.=1>
				<?php }?>
				<?php  // display a select list of product categories
				$fcc.->query(
  				"select. catval,catdescr,catscata from bulbcat ".
  				"where. catact=1 and catval=2 and catlid=$lid and catzid=$zid order 
by catdescr");
				while.($fcc.->next_record()){
  				if.(!$zscat){
   				// no subcats ?>
				<a href.="./display.php3?cartid=<?php echo 
$cartid?>&cat=2:0&zid=1&lid=1 "><font style.="color: #000000">Early</font></a>
				<?
				}
				}
				$fcc.->free_result.();
				?>
				</.center><.br>"
			break
		case. "plain":
			document.write. = ""
			break.
		default.:
			document.write. = ""
	}
}
-->
</.script>

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA