karmapool Posted July 11, 2005 Share Posted July 11, 2005 ehllo all, I am trying to add javascript window status text for all the links. 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? This is the code <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> Any help, thoughts, or direction would be greatly appreciated. Thanks Billy Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.