Click to See Complete Forum and Search --> : window status text, link inside <tr> link???
karmapool
07-11-2005, 12:44 PM
Howdy all,
I am trying to add javascript window status text for all the links on my site. Where I am running into problems is when there is a table row link with another link inside that row. The table row link’s window status is displayed not the link within that row?
Any help, thoughts, or direction would be greatly appreciated.
Thanks
Billy
karmapool
07-11-2005, 01:09 PM
thought the code might help,
<tr class="moduleRow" onmouseover="rowOverEffect(this, '<?PHP echo $addresses['firstname']; ?>')" onmouseout="rowOutEffect(this, '<?PHP echo $status_source; ?>')" onClick="document.location.href='<?php echo tep_href_link(FILENAME_ADDRESS_BOOK_PROCESS, 'edit=' . $addresses['address_book_id'], 'SSL'); ?>'" title="Edit Address Book Entry">
<td class="main"><b><?php echo tep_output_string_protected($addresses['firstname'] . ' ' . $addresses['lastname']); ?></b><?php if ($addresses['address_book_id'] == $customer_default_address_id) echo ' <small><i>' . PRIMARY_ADDRESS . '</i></small>'; ?></td>
<td class="main" align="right"><?php echo '<a href="' . tep_href_link(FILENAME_ADDRESS_BOOK_PROCESS, 'edit=' . $addresses['address_book_id'], 'SSL') . '" onmouseover="self.status=\'Order #\'; return true;" onmouseout="self.status=\'' . $status_source . '\'; return true;" title="Edit Addrss Book Entry">edit</a> <a href="' . tep_href_link(FILENAME_ADDRESS_BOOK_PROCESS, 'delete=' . $addresses['address_book_id'], 'SSL') . '" onmouseover="self.status=\'Delete Address Book Entry\'; return true;" onmouseout="self.status=\'' . $status_source . '\'; return true;" title="Delete Address Book Entry">delete</a>'; ?></td>
</tr>
<script language="javascript"><!--
function rowOverEffect(object, order) {
if (object.className == 'moduleRow'){
object.className = 'moduleRowOver';
self.status= ( 'Edit Address Book Entry');
}
}
function rowOutEffect(object, page) {
if (object.className == 'moduleRowOver'){
object.className = 'moduleRow';
self.status= page;
}
}
//--></script>
again thacks,
billy
ray326
07-11-2005, 07:50 PM
Nope. Didn't help.