{"id":25759670,"url":"https://github.com/maechabin/jquery-slideshowad-js","last_synced_at":"2026-06-18T05:31:14.072Z","repository":{"id":84291563,"uuid":"55210455","full_name":"maechabin/jquery-slideshowad-js","owner":"maechabin","description":"複数のバナー広告を組み合わせて「スライドショー動画広告」を実装するためのjQueryプラグイン","archived":false,"fork":false,"pushed_at":"2016-04-04T13:24:24.000Z","size":565,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-26T17:44:18.712Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maechabin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-04-01T06:55:08.000Z","updated_at":"2018-06-17T05:56:15.000Z","dependencies_parsed_at":"2023-03-04T22:30:43.436Z","dependency_job_id":null,"html_url":"https://github.com/maechabin/jquery-slideshowad-js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/maechabin/jquery-slideshowad-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maechabin%2Fjquery-slideshowad-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maechabin%2Fjquery-slideshowad-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maechabin%2Fjquery-slideshowad-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maechabin%2Fjquery-slideshowad-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maechabin","download_url":"https://codeload.github.com/maechabin/jquery-slideshowad-js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maechabin%2Fjquery-slideshowad-js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34478105,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-18T02:00:06.871Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-26T17:37:45.832Z","updated_at":"2026-06-18T05:31:14.060Z","avatar_url":"https://github.com/maechabin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cb-slideshowad-js\n\n複数のバナー広告を組み合わせて`「スライドショー動画広告」`を実装するためのjQueryプラグイン。\n\n## About\n\n複数のバナー広告を組み合わせることによって、動画のように見せるスライドショー動画広告を手軽に実装できます。広告をリッチに見せることができ、広告のクリック率を向上させることができます。また静止画像では実現できなかった広告にストーリーを持たせるということが可能となり広告の訴求力を高めます。\n\n`「フェイドインフェイドアウト」`、`「フリップ（縦 / 横）」`、`「スライド（前 / 後 / 左 / 右）」`の3種類のスライドショータイプに対応しています（デフォルトはフェイドインフェイドアウトタイプ）。\n\n主にアフィリエイトサービスの広告を使用することを想定しているので、アフィリエイトサービスからそのまま広告をコピーして実装できるようになっています。\n\n\n## Demo\n\n[https://maechabin.github.io/cb-slideshowad-js/](https://maechabin.github.io/cb-slideshowad-js/)\n\n## Download\n\nこちらのページから[ダウンロード](https://github.com/maechabin/cb-slideshowad-js/archive/master.zip)するか、`[git clone]`コマンドでローカルにコピーします。\n\n```\n$ git clone git@github.com:maechabin/cb-slideshowad-js.git 任意のディレクトリ名\n```\n\nnpm経由でも入手可能です。\n\n```\n$ npm install --save slideshowad\n```\n\n\n機能の実装に使用するファイルは以下のjsファイルとなります。\n- ./dist/jquery.slideshowad.js\n\n## Usage\n\n### 1. jQueryと当プラグインの読み込み\n\njQuery本体とdistディレクトリ内の「jquery.slideshowad.js」をページに読み込みます。\n\n```html\n\u003cscript src=\"https://code.jquery.com/jquery-1.12.0.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"./dist/jquery.slideshowad.js\"\u003e\u003c/script\u003e\n```\n\n### 2. スライドショー動画広告を表示させる要素を準備\n\nhtmlファイル内にスライドショー動画広告を表示させる要素を作成し、任意のclass名またはid名を付けます。\n\n```html\n\u003cdiv class=\"slideshowad-images\"\u003e\n\n\u003c/div\u003e\n```\n\n作成した要素に対して、以下のスタイルを指定します。（ページ表示時に、設定した広告の画像が表示されるのを防ぐためです。）\n```css\n.slideshowad-images {\n  display: none;\n}\n```\n\n### 3. スライドショーさせる広告を設定\n\n上記で作成した要素内にスライドショーさせる広告タグ（リンク, 画像[, インプレッション計測用画像]）を順に貼り付けます。貼り付けた順番にスライドショーが実行されます。貼り付ける広告の数に制限はありません。（貼り付ける広告の画像はできるだけ同じサイズのものとすることを推奨します）\n\n```html\n\u003cdiv class=\"slideshowad-images\"\u003e\n  \u003c!-- 1つ目の広告 --\u003e\n  \u003ca href=\"http://example.com/\"\u003e\n    \u003cimg src=\"http://exapmle.com/example1.png\" width=\"300\" height=\"200\"\u003e\n  \u003c/a\u003e\n  \u003cimg src=\"http://example.com/img1.gif\" width=\"1\" height=\"1\"\u003e\n  \u003c!-- 2つ目の広告 --\u003e\n  \u003ca href=\"http://example.com/\"\u003e\n    \u003cimg src=\"http://exapmle.com/example2.png\" width=\"300\" height=\"200\"\u003e\n  \u003c/a\u003e\n  \u003cimg src=\"http://example.com/img2.gif\" width=\"1\" height=\"1\"\u003e\n  \u003c!-- 3つ目の広告 --\u003e\n  \u003ca href=\"http://example.com/\"\u003e\n    \u003cimg src=\"http://exapmle.com/example3.png\" width=\"300\" height=\"200\"\u003e\n  \u003c/a\u003e\n  \u003cimg src=\"http://example.com/img3.gif\" width=\"1\" height=\"1\"\u003e\n\u003c/div\u003e\n```\n\n設定する広告タグは以下の形式（`img要素`を持った`a要素`）となります。a要素には必ずhref属性、img要素にはwidth属性、height属性を設定するようにしてください（width属性、height属性がないと画像の表示サイズに不具合が生じる場合があります）。インプレッションを計測するためのimg要素はあってもなくても問題ありません。（多くのアフィリエイトサービスの広告タグは以下の形式となっていることが多いです）\n```html\n\u003c!-- スライドショーの対象となる広告タグの形式 --\u003e\n\n\u003c!-- 広告の飛び先URL（href属性必須） --\u003e\n\u003ca href=\"http://example.com/\"\u003e\n    \u003c!-- 広告の画像（width属性/height属性必須） --\u003e\n  \u003cimg src=\"http://exapmle.com/example.png\" width=\"300\" height=\"200\"\u003e\n\u003c/a\u003e\n\u003c!-- インプレッション計測用のimg要素（任意） --\u003e\n\u003cimg src=\"http://example.com/img.gif\" width=\"1\" height=\"1\"\u003e\n```\n\n### 4. プラグインを実行\n\nステップ2で作成した要素に対して、`.slideShowAd()`メソッドを実行します。\n\n```javascript\n$('.slideshowad-images').slideShowAd();\n```\n\n## Option\n\n**slideShowType {String}**\nスライドショー動画広告のスライドショーのタイプを以下より指定します。デフォルト値は、`fade`。\n- `'fade'`: フェイドインフェイドアウト\n- `'flipY'`: Y軸を軸に横方向へのフリップ\n- `'flipX'`: X軸を軸とする縦方向のフリップ\n- `'slideLeft'`: 左から右へのスライド\n- `'slideRight'`: 右から左へのスライド\n- `'slideTop'`: 上から下へのスライド\n- `'slideBottom'`: 下から上へのスライド\n\n**width {String}**\nスライドショー動画広告を表示させる要素の「幅」を指定します。CSSでwidthに指定できる値で指定します。デフォルト値は、1つ目の広告として貼り付けた画像のサイズの幅となります。\n\n**height {String}**\nスライドショー動画広告を表示させる要素の「高さ」を指定します。CSSでheightに指定できる値で指定します。デフォルト値は、1つ目の広告として貼り付けた画像のサイズの高さとなります。\n\n**interval {Number}**\nスライドショーの間隔を指定します。数値（単位はミリ秒)で指定します。デフォルト値は`5000`（5秒）。\n\n**targetBlank {Boolean}**\nリンク先を別ウィンドウで表示するかしないか指定します。trueにするとリンク先を別ウィンドウで表示します。デフォルト値は`false`。\n\nオプションの指定方法は以下の通りです。slideShowAd()メソッドの引数にオブジェクトリテラル形式でオプションを指定します。\n```javascript\n// 幅300px、高さ250px、スライドショーの間隔を8秒に設定\n$('.slideshowad-images').slideShowAd({\n  'width': '300px',\n  'height': '250px',\n  'interval': '8000'\n});\n\n// スライドショータイプを横方向のフリップタイプ、リンク先を別ウィンドウで表示させる設定\n$('.slideshowad-images').slideShowAd({\n  'slideShowType': 'flipY',\n  'targetBlank': true\n});\n```\n\n## 対応ASP（アフィリエイトサービス）一覧\n\nそのまま管理画面から広告タグをコピーして使えるアフィリエイトサービスの一覧です（調査中）。\n\n[A8.net](http://px.a8.net/svt/ejp?a8mat=2BYLM2+1C85JU+0K+10H0IQ) / [Moba8.net](http://px.moba8.net/svt/ejp?a8mat=2BU3YH+AFOK9M+3NY+6HU7L\u0026guid=on) / [リンクシェア](http://www.linkshare.ne.jp/scland/mgm/?id=69Bb10/Y2MU) / [TGアフィリエイト](https://www.trafficgate.net/) / [Amazonアソシエイト](https://affiliate.amazon.co.jp/gp/associates/network/main.html)\n\n## License\n\nMit License\n\n## Update\n\n### v1.3.0\n- オプションにスライドタイプ（前 / 後 / 左 / 右）を追加。\n\n### v1.2.5\n- X軸を軸とする縦方向のフリップタイプに対応。それに伴いflipタイプのオプションの指定方法に変更あり。\n\n### v1.2.0\n- オプションにslideShowTypeを追加し、横方向へのフリップタイプのスライドショーに対応\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaechabin%2Fjquery-slideshowad-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaechabin%2Fjquery-slideshowad-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaechabin%2Fjquery-slideshowad-js/lists"}