Solved

Point for ddoyle

Posted on 1998-12-17
2
219 Views
Last Modified: 2013-12-25
Q:FORM elements appearing on top of higher Z-Indexed DIV.

A:
Use Scriptlet

Sample code:
<menupanecont.html>
<html>
<head>
<meta name="generator" value="Microsoft Scriptlet Wizard">
<meta name="content-type" value="text/html; charset=iso-8859-1">
<script language=javascript for=george event=onclick>
alert("george was clicked!");
george.Text = "Hi I\'m George";
</script>

<script language=javascript for=frank event=onclick>
alert("frank was clicked!");
frank.Text = "Hi I\'m Frank";
if (george.style.display=="none")
{
george.style.display="block";
}
else
{
george.style.display="none";
}
</Script>

<Script language=javascript for=frank event=onscriptletevent(eventname,eventobject)>
myText.innerHTML= "Frank received a: " + eventname;
</Script>

<Script language=javascript>
function init()
{
george.color="#CCCFFF";
frank.color="#00CC00";
}
</Script>

<script language=javascript for=frank event=onmousemove>
george.Text = "X:" + event.x + " Y:" + event.y;
</Script>
</head>

<body bgcolor="#FFFFFF" onload="init()">

<div style='z-index:0'>
<form>
  <select name=selblah>
  <option>blah blah
  <option>blah blah
  <option>blah blah
  </select>

  <input type=button value='click me' onClick='george.style.visibility=""'>
  <input type=button value='click me' onClick='frank.style.visibility=""'>
</form>
</div>

<object type="text/x-scriptlet" style="position:absolute;top:0;width:300;height:30;z-index:9999;visibility:hidden" id="george">
<param name=url value="MenuPane.html">
</object>

<object type="text/x-scriptlet" style="position:absolute;top:30;width:300;height:30;z-index:9999;visibility:hidden" id="frank">
<param name=url value="MenuPane.html">
</object>

<Span style="position:absolute;top:100" id=myText></Span>
</body>
</html>

<menupane.html>
<html>
<head>
<title>MenuPane Scriptlet</title>
</head>

<script language=JScript>

var description = new MenuPane;

function MenuPane()
{

this.get_Text = public_get_Text;
this.put_Text = public_put_Text;
this.put_color = public_put_color;
this.get_golor = public_get_color;

}

var Text;
var color;

function public_put_color(newValue)
{
color = newValue;
document.bgColor = color;
}

function public_get_color()
{
//return color;
return document.bgColor;
}

function public_get_Text()
{
return Text;
}

function public_put_Text(newValue)
{
Text = newValue;
headline.innerHTML = Text;
}

function blick()
{
headline.innerHTML = "This is a menu item";
external.bubbleEvent();
}

function bouse()
{
external.bubbleEvent();
}

function sendEvent(evt)
{
external.raiseEvent(evt,document);
}
</script>

<body language=JScript onclick=blick() onmousemove=bouse() onmouseover=sendEvent("mouseover") onmouseout=sendEvent("mouseout") bgcolor="#FFFCCC">
<DIV id=bigdiv style="position:absolute;top:0;width:400;height:50;">
<SPAN style="position:absolute;top:0;" id=headline></SPAN>
</Div>

</body>
</html>

Although buggy, it does work.
0
Comment
Question by:PBall
2 Comments
 
LVL 1

Accepted Solution

by:
ddoyle earned 450 total points
ID: 1857351
I am close to having a pretty good version of my nav bar.  I have implemented the object scriplet without problems, but because of the way I am generating the text for my dropdowns, I
am having difficulty getting the appropriate text to appear inside the object.  When I finish it, I will show it to you.

David
0
 
LVL 6

Author Comment

by:PBall
ID: 1857352
Great, thanks again.
0

Featured Post

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
app server have enough resources... 2 52
ebay api to see some data about my customers 2 40
CSS: Making responsive table look nicer 7 31
Why "Mobile First"? 5 18
Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question