ensuite que chaque mot puisse être actif pour revnoyer vers une autre page fiche du mot.
si vous pouviez m'ecrire un code exemple, ou m'envoyé un lien sur des cours ce sera super.
<!DOCTYPE html> <html> <head> <title>Carib-beans-plants</title> <meta name="author" content="jio" > <meta name="date" content="2015-12-29T10:06:16-0400" > <meta name="copyright" content=""> <meta name="keywords" content=""> <meta name="description" content=""> <meta name="ROBOTS" content="NOINDEX, NOFOLLOW"> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8"> <meta http-equiv="content-style-type" content="text/css"> <meta http-equiv="expires" content="0"> <script type="text/javascript"> $(document).ready(function() { $("#liste").tablesorter(); }); </script> <link rel="stylesheet" type="text/css" href="[https://cdn.datatables.net/s/dt/dt-1.10.10/datatables.min.css]"/> <script type="text/javascript" src="[https://cdn.datatables.net/s/dt/dt-1.10.10/datatables.min.js]"></script> </head> <body> <form id="liste" > <table id="liste" class="tablesorter"> <thead> <tr> <th>Last Name</th> <th>First Name</th> <th>Email</th> <th>Due</th> <th>Web Site</th> </tr> </thead> <tbody> <tr> <td>Smith</td> <td>John</td> <td>jsmith@gmail.com</td> <td>$50.00</td> <td>[http://www.jsmith.com</td>] </tr> <tr> <td>Bach</td> <td>Frank</td> <td>fbach@yahoo.com</td> <td>$50.00</td> <td>[http://www.frank.com</td>] </tr> <tr> <td>Doe</td> <td>Jason</td> <td>jdoe@hotmail.com</td> <td>$100.00</td> <td>[http://www.jdoe.com</td>] </tr> <tr> <td>Conway</td> <td>Tim</td> <td>tconway@earthlink.net</td> <td>$50.00</td> <td>[http://www.timconway.com</td>] </tr> </tbody> </table> <br> <br> </form> <script type="text/javascript" src="/path/to/jquery-2,1,4.js"></script> <script type="text/javascript" src="/path/to/jquery.tablesorter.js"></script> </body> </html>
EDIT : Ajout des balises de code (la coloration syntaxique).
Explications disponibles ici :ICI Merci d'y penser dans tes prochains messages. |
<head>
<meta charset="utf-8">
<title>jQuery plugin: Tablesorter 2.0 - Set an initial sort order direction</title>
<!-- jQuery -->
<script src="js/jquery-latest.min.js"></script>
<!-- Demo stuff -->
<link rel="stylesheet" href="css/jq.css">
<link href="css/prettify.css" rel="stylesheet">
<script src="js/prettify.js"></script>
<script src="js/docs.js"></script>
<!-- Tablesorter: required -->
<link rel="stylesheet" href="../css/theme.blue.css">
<script src="js/jquery.tablesorter.js"></script>
<script id="js">$(function() {
// call the tablesorter plugin
$("table").tablesorter({
theme : 'blue',
// change the default sorting order from 'asc' to 'desc'
sortInitialOrder: "desc"
});
}); </script>
</head>
27 déc. 2015 à 07:18