Newsgroup: it.comp.lang.javascript
Titolo: Pulldown Menu Target

I have a pulldown menu situated in a left frame.  The code for the page is
******************************************************************************
<SCRIPT LANGUAGE="JavaScript" FOR=jumpbar EVENT= "onscriptletevent(name, eventData)">
<!--
switch (name) {
  case "onnavigate":
  window.focus()
  window.location.href = eventData
  break;
  case "oncnavigate":
  eval(eventData)
  break;
}
//-->
</SCRIPT>
<base target="main">
<object ID=jumpbar STYLE="width: 0; height: 0" DATA="linkbar.html" TYPE="text/x-scriptlet">
 <A STYLE="font: 8pt verdana, arial, geneva, sans-serif" HREF="/cm.parker/INDEX.HTML">Quick Links</A>
 </object>
******************************************************************************
The right frame has both name="main" and id="main"
Linkbar.html code is as follows
******************************************************************************
<SCRIPT>
<!--
 function doBlur() {
  document.all.qj.style.display = "none"
  document.all.html.style.pixelHeight = document.body.scrollHeight
 }
 function dropDown() {
  document.all.qj.style.pixelTop = document.all.h.offsetTop + document.all.h.offsetHeight
  document.all.qj.style.pixelLeft = document.all.h.offsetLeft
  document.all.qj.style.pixelWidth = document.all.h.offsetWidth
  document.all.qj.style.display = ""
  document.all.html.style.pixelHeight = document.body.scrollHeight
 }
 function doNavigate() {
  if (event.srcElement.tagName=="A")  {
   if (event.srcElement.code!=null) {
    external.raiseEvent("oncnavigate",event.srcElement.code)}
   else {
    external.raiseEvent("onnavigate",event.srcElement.href);}
  }
  if (event.srcElement.tagName=="P")
   if (event.srcElement.children[0].tagName=="A")
    if (event.srcElement.children[0].code!=null)
     external.raiseEvent("oncnavigate",event.srcElement.children[0].code)
    else
     external.raiseEvent("onnavigate", event.srcElement.children[0].href);
 }
 function doLoad() {
  document.all.html.style.pixelWidth = document.body.scrollWidth
  document.all.html.style.pixelHeight = document.body.scrollHeight
 }
//-->
</SCRIPT>
<BODY ONBLUR="doBlur()" ONLOAD=doLoad() ONDRAGSTART="return false" bgcolor="#000000">
<base target="main">
<DIV STYLE="background: #0033CC"><SPAN STYLE="text-decoration: underline; font-size:8pt" ONCLICK="dropDown()" id="h">Quick Links
<SPAN STYLE="font-size: 12pt; cursor: hand;"><font face="wingdings">ò</font></SPAN></SPAN></DIV>
<DIV cellspacing=0 id="qj"  ONCLICK="return false" STYLE="display: none;color: white;  width: 0pt" ONMOUSEDOWN="doNavigate()">
<h2><A HREF="frmain.html" TITLE="BLOB Online Main Page" OnMouseOver='self.status="Main Page"; return true'>Main Page</A></h2> etc...
******************************************************************************
When a link is clicked on the pulldown menu,  the page appears in the left frame. I require it to appear in the right frame.  What
would need to be changed in order for this to happen?
Thanks in advance
Ade
___________________________________________
Website: 
http://freespace.virgin.net/cm.parker/
AOL Instant Messenger: ade681299     Zone: MAParker
___________________________________________

...
