Posted on 水曜日, 21st 1 月 2009 by admin
概要
指定されたフォルダの中に存在する画像の中から1枚をランダムに選択し表示します。
設置方法
randomimage.phpをテキストエディタで開いて、デフォルト値の設定を行います。 設定中の「ベースとなるディレクトリ」はrandomimage.phpファイルから、画像のあるディレクトリへの相対位置となります。慣れない方は、ランダムに画像を表示したいファイルをimageにすれば書き換える必要は無くなります。
├index.html
├randomimage.php
└[image]
└ 画像ファイル
上記のような構成で、index.html上にimageフォルダ内のイメージを表示したい場合、「ベースとなるディレクトリ」の設定は、$folder = “image”; と設定します。ファイル上の、イメージを表示させたい箇所に、randomimage.phpをincludeする構文を記述します。<img src=”randomimage.php”> と記述します。
Tags: Script
Posted in Free Script | Comments (3)




6 月 26th, 2010 at 7:14 AM
Pillspot.org. Canadian Health&Care.Special Internet Prices.No prescription online pharmacy.PillSpot.org. Herbal-supplements@buy.online” rel=”nofollow”>.…
Categories: Womens Health.Skin Care.Stomach.Anti-allergic/Asthma.Antidiabetic.Weight Loss.Eye Care.Anxiety/Sleep Aid.Antibiotics.Vitamins/Herbal Supplements.Mens Health.Antidepressants.Mental HealthAntiviral.Blood Pressure/Heart.Stop SmokingPain R…
7 月 21st, 2010 at 5:33 PM
Buy:Prevacid.Valtrex.Mega Hoodia.Petcam (Metacam) Oral Suspension.Zovirax.Lumigan.Synthroid.Human Growth Hormone.100% Pure Okinawan Coral Calcium.Actos.Prednisolone.Retin-A.Arimidex.Nexium.Accutane.Zyban….
7 月 22nd, 2010 at 5:11 AM
Buy:Actos.Retin-A.Zovirax.Synthroid.Zyban.100% Pure Okinawan Coral Calcium.Prevacid.Arimidex.Lumigan.Petcam (Metacam) Oral Suspension.Human Growth Hormone.Valtrex.Nexium.Accutane.Prednisolone.Mega Hoodia….