0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

webサイトに簡単に広告をつける方法 ⑥広告編

Last updated at Posted at 2025-06-28

前回までの記事を読んでない人はこちら

忍者admaxというサービスを使用します。

1 アカウントを作成

2 広告枠を追加

推奨サイズを選び、サイトのドメインや情報を入力

スクリーンショット 2025-06-28 095331.png

3 配布されるコードをphpファイルに埋め込む

image.png

これをphpファイルのhtmlのbodyタグの中に埋めます

例 login.php
<!DOCTYPE html>
<html lang="ja">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>じゃんけんギャンブル - ログイン</title>
	<link rel="stylesheet" href="style_login.css">
</head>
<body>
<!-- admax -->
<script src="https://adm.shinobi.jp/s/ahj1343jka2tc2531f5kq"></script>
<!-- admax -->

    <div class="login-container">
        <h1 class="game-title">🎲 じゃんけんギャンブル 🎲</h1>
        <p class="subtitle">運試しの時間だ</p>
#以下略

image.png

このように他のファイルにも広告をつければ完成です。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?