Good Morning,
I am transcluding the following script via the view template - would
this work better via a plugin?
**Requires InlineJavascriptPlugin **
<script>
/*Table Highlighting for Sortable TW Tables*/
/*add .evenRow {background-color: #333;} to StyleSheet for alternating
table row color*/
(function($) {
$(document).ready(function( ) {
$('table.sortable tbody tr').mouseover(function(){
$(this).addClass('highlight')
$(this).removeClass('evenRow');
});
$('table.sortable tbody tr').mouseout(function(){
$(this).removeClass('highlight');
$('table.sortable tr:even').addClass('evenRow');
})
});
})(jQuery);
</script><script>
/*Table Highlighting for TW Tables*/
/*add .evenRow {background-color: #333;} to StyleSheet for alternating
table row color*/
(function($) {
$(document).ready(function( ) {
$('table.twtable tbody tr').mouseover(function(){
$(this).addClass('highlight')
$(this).removeClass('evenRow');
});
$('table.twtable tbody tr').mouseout(function(){
$(this).removeClass('highlight');
$('table.twtable tr:even').addClass('evenRow');
})
});
})(jQuery);
</script>
Note: I tried just removing the script tags and tagging a tiddler with
systemConfig - and the highlighting did not work . . .
Thanks,
Mike
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---