Home Design Archives javascript 2006年11月

2006年11月アーカイブ

The MTPaginate tag only works within PHP documents!
Make sure that the document extension is .php and that your server supports PHP documents.
1, '1991' => 1, ); $paginate_page_selector = 'page'; $paginate_page_section_selector = 'page_section'; $paginate_current_page_section = @$_GET[$paginate_page_section_selector]; if($paginate_current_page_section) $paginate_current_page = @$paginate_section_ids[$paginate_current_page_section]; else $paginate_current_page = @$_GET[$paginate_page_selector]; // Pin page selector to a valid number (or 'all') if($paginate_current_page=='') $paginate_current_page = '1'; if($paginate_current_page != 'all') { if($paginate_current_page == 'first') $paginate_current_page = 1; elseif($paginate_current_page == 'last') $paginate_current_page = 1; elseif($paginate_current_page < 1) $paginate_current_page = 1; elseif($paginate_current_page > 1) $paginate_current_page = 1; $paginate_sections = array( 0 , 3); $paginate_top_section = $paginate_sections[$paginate_current_page-1]+1; $paginate_bottom_section = $paginate_sections[$paginate_current_page]; } else { $paginate_top_section = 1; $paginate_bottom_section = 3; } if(isset($_SERVER['QUERY_STRING'])) { $paginate_self = '&' . $_SERVER['QUERY_STRING'] . '&'; $paginate_self = preg_replace("/&page=[^&]*&/", "&", $paginate_self); $paginate_self = preg_replace("/&page_section=[^&]*&/", "&", $paginate_self); $paginate_self = substr($paginate_self, 1, strlen($paginate_self) - 1); if($paginate_self == '&') $paginate_self = ''; else $paginate_self = htmlentities($paginate_self); } else { $paginate_self = ''; } $paginate_self = basename($_SERVER['PHP_SELF']) . "?${paginate_self}page"; ?>

Ajaxを利用して外部サービスを利用する

  • 編集
  • 2006年11月23日

BlogPeople 等のリンクリストによる表示の遅延を解消する(その2:Ajax編):小粋空間より。

BlogPeople やドリコム RSS がサービスとして提供しているリンクリスト。ご自身のページに直接HTMLでリンク集を作成するより、表示件数のカスタマイズやサイトの更新状況がわかる等、大変便利なサービスなので利用されている方はかなり多いと思います。

しかしながら、リンクリストはサーバに一旦アクセスしてから表示される仕組みになっているため、少なからずタイムラグが発生します。

そこで、Ajax(+cgi)を利用しようというアプローチ。素晴らしい。

さっそく101Blogの方に実装。来訪者への見えない心配りですね。

highslideのMTへの実装

  • 編集
  • 2006年11月22日

Highslide JS用アトリビュート追加-Movable Type(ムーバルタイプ)埋め込み画像カスタマイズ - WEBデザイン BLOG:より。

このカスタマイズをすることでMovable Type(ムーバルタイプ)で簡単にHighslide JSを使えるようになります。

CMS.pmファイルのコードを変更してというので、もう少しスマートな方法をご提案。IDはMTEntryIDを利用します。

2007&#24180;7&#26376;

ページの先頭に戻る