thanx imar for ur reply. but i have cracked it ..istead of links i placed buttons on the layer(floating menu) and now its working..the prblm tht i was facing was that the code for saving the data from the form to the database was written in
vb script..and the floating menu was creatd in javascript..so i was not able to call the vbscript function for saving the data..also was not able to save the data with javascript alone.so now with the help of buttons i was able call the vbscript function..the correct code is given below..this is working but if u find any flaw do give a reply and yes thanx for ur guidance on the statement label thing.i have read the thing and will definitly use it properly in future.
<script language=javascript>
if (!document.layers)
document.write('<div id="divStayTopLeft" style="position:absolute">')
</script>
<layer id="divStayTopLeft">
<table border="1" width="130" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" bgcolor="black">
<p align="center"><b>Menu</b></td>
</tr>
<tr>
<td width="100%" bgcolor="beige">
<p align="center">
<INPUT name=jsadd <%=addbutton%> type=submit value=ADD <%=Session("disabledadd")%> LANGUAGE=javascript onclick="return jsadd_onclick()">
<INPUT name=jssave <%=jssavebutton%> type=submit <%=Session("disabledjsSave")%> value=SAVE LANGUAGE=javascript onclick="return jssave_onclick()">
<INPUT name=jsedit <%=jseditbutton%> type=button <%=Session("disabledjsEdit")%> value=EDIT LANGUAGE=javascript onclick="return jsedit_onclick()">
<input name=close type=button value=CLOSE LANGUAGE=javascript onclick="document.location.replace('../academicmodule/masters.asp')">
<input name=jssaveall <%=jssaveall%> type=submit <%=Session("disabledjsSaveAll")%> value="SAVE FOR ALL CLASSES" LANGUAGE=javascript onclick="return jssaveall_onclick()">
</td>
</tr>
</table>
</layer>
<script type="text/javascript">
var verticalpos="frombottom"
if (!document.layers)
document.write('</div>')
function JSFX_FloatTopDiv()
{
var startX = 520;
startY = 400;
var ns = (navigator.appName.indexOf("Netscape") != -1);
var d = document;
function ml(id)
{
var el=d.getElementById?d.getElementById(id):d.all?d.a ll[id]:d.layers[id];
if(d.layers)el.style=el;
el.sP=function(x,y){this.style.left=x;this.style.t op=y;};
el.x = startX;
if (verticalpos=="fromtop")
el.y = startY;
else{
el.y = ns ? pageYOffset + innerHeight : document.body.scrollTop +
document.body.clientHeight;
el.y -= startY;
}
return el;
}
window.stayTopLeft=function()
{
if (verticalpos=="fromtop"){
var pY = ns ? pageYOffset : document.body.scrollTop;
ftlObj.y += (pY + startY - ftlObj.y)/8;
}
else{
var pY = ns ? pageYOffset + innerHeight : document.body.scrollTop +
document.body.clientHeight;
ftlObj.y += (pY - startY - ftlObj.y)/8;
}
ftlObj.sP(ftlObj.x, ftlObj.y);
setTimeout("stayTopLeft()", 10);
}
ftlObj = ml("divStayTopLeft");
stayTopLeft();
}
JSFX_FloatTopDiv();
</script>
rgds,
rok