Current location: Hot Scripts Forums » General Web Coding » JavaScript » mouse over <tr> script open new window?


mouse over <tr> script open new window?

Reply
  #1 (permalink)  
Old 07-30-03, 08:50 AM
angst angst is offline
Newbie Coder
 
Join Date: Jul 2003
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Question mouse over <tr> script open new window?

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!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking for a good review management script griz_fan Script Requests 10 07-29-07 05:08 AM
wanted: hrm / job seeker's help script .. open source PrettyPink Script Requests 1 03-24-06 01:34 AM
How do i get ASP code to open in a new window caffeine ASP 5 08-29-03 03:56 AM


All times are GMT -5. The time now is 10:26 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.