Forum Moderators: open
do I, in the mouseover event just do this?
onMouseOver="Div_id.visible" onMouseOver="Div_id.invisible" or is this to simple to work!
I admit to asking afor I look or try anything out but hey, I can offer thanks!
Any ideas?
i.e.
<%
vbvariable = request.querystring("testvariable")
%>
<script language = "javascript">
function showVBcode() {
var test1 = "some string here";
newvariable = test1 + <%=vbvariable%>;
alert(newvariable);
}
</script>
*code has not been tested*
-Matt
onMouseover="Javascript:ShowData('strAddressData')" onMouseOut="JavaScript:ShowData('')"
Where strAddressData is data built for each row. Now each time I add a row, this data is unique for this row i.e.
for rara
<TR onMouseover="Javascript:ShowData('strAddressData')" onMouseOut="JavaScript:ShowData('')">
<TD>
Add1
</TD>
<TD>
add2
</TD>
<TD>
town
</TD>
<TD>
state
</TD>
<TD>
postcode
</TD>
</TR>
Next rara
If you want I can post the actual code. As I said earlier; I have built the code to display static data. It works exellently. I don't know how to do this dynamically with ASP and database data. As a workaround, I have a showmodalwindow on the onClick event to open up a window showing the data, I just wanted to get a bit funvky and I think I will have to do it with Divs.
Unless you know different?!?! I am at a loss to work out how using my javascript function!
P
%>
<div id=<%= strtestertwo %> class=header style="position:absolute; top:300; left:400; visibility:hidden; z-index:1;">
<%= strData %>
</div>
<tr bgcolor="<%= strBackColour %>" onMouseover="showHideLayers('<%= strtestertwo %>','','show');this.style.cursor='hand';" onMouseOut="showHideLayers('<%= strtestertwo %>','','hide')">
<script type="text/javascript" language="JavaScript">
<!--
function OpeningRun(){
window.status = "Your address search results..."
}
function makevisible(cur,which){
strength=(which==0)? 1 : 0.2
if (cur.style.MozOpacity)
cur.style.MozOpacity=strength
else if (cur.filters)
cur.filters.alpha.opacity=strength*100
}
function findObj(n, d) {
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=findObj(n,d.layers[i].document); return x;
}
function showHideLayers() {
var i,p,v,obj,args=showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=findObj(args[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
obj.visibility=v; }
}
//-->
</SCRIPT>