ページに配置したh1, h2, h3要素などを抽出して、目次を自動生成するスクリプトをJanko At Warp Speedから紹介します。 Automatically generate table of contents demo: 3 デモでは、ページから抽出したh1, h2, h3要素の各目次はページ内アンカーとして機能します。 抽出する要素はh1, h2, h3以外にも、自由に変更できます。 スクリプトはjQueryのプラグインのため、実装にはjquery.jsが必要です。
Some time ago, I was debating with my friends on the topic: is there any use of generating table of contents automatically. The conclusion was that it can be useful in cases when the reading material is long enough and table of contents (TOC) has a fixed position on the screen. This tutorial will show you how to create such TOC in just a few lines of code. Extract information from HTML I will star
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く