hello,
i'd like to know how to open a new window and have control of the size,i normally know how to do this, but this time i'm using a mouse over script for high lighting <tr> table rows.
here is my script:
<!--#include file="conn.inc"-->
<script language="JavaScript">
<!--
function ToggleAll(checked) {
len = document.messages.elements.length;
var i = 0;
for(i = 0; i < len; i++) {
document.messages.elements[i].checked = checked;
}
}
function setPointer(theRow, thePointerColor)
{
if (thePointerColor == '' || typeof(theRow.style) == 'undefined') {
return false;
}
if (typeof(document.getElementsByTagName) != 'undefined') {
var theCells = theRow.getElementsByTagName('td');
}
else if (typeof(theRow.cells) != 'undefined') {
var theCells = theRow.cells;
}
else {
return false;
}
var rowCellsCnt = theCells.length;
for (var c = 0; c < rowCellsCnt; c++) {
theCells[c].style.backgroundColor = thePointerColor;
}
return true;
}
//-->
</script>
<body bgcolor="C0C0C0">
<table width="100%" border="0" bgcolor="C0C0C0" cellspacing="2" cellpadding="1">
<%
sqlist = "select UserName from authentication"
set rslist = Myconn.Execute(SQList)
a = 1
do while not rslist.eof
%>
<tr onmouseover="setPointer(this, '#000080')" onmouseout="setPointer(this, '#C0C0C0')">
<td onClick="document.location.href='../acclog.asp?user=<%=rslist("UserName")%>'">
<font face=verdana color=FFFFFF size=2><b><%=a%>. <%=rslist("UserName")%></b></font><br>
</td>
</tr>
<%
a=a+1
rslist.movenext
loop
%>
</table>
so again would like to be able to click a row and have it open in a new window at the size that i have defined.
can any one help me with this?
thanks in advance for your time!