|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
So Fucking Banned
Join Date: Feb 2001
Posts: 1,104
|
I want to include a self rotating daily picture in my html page code (index.shtml). I will name the pictures according to the dates and upload them on my server, say 051202.gif for 5th December 2002 etc.
What code do I insert in my html to automatically fetch that day's picture? Some kind of javascript. I cant use php I supposed since the index page extension is not php but shtml? |
|
|
|
|
|
#2 |
|
Confirmed User
Join Date: Feb 2001
Location: Orlando FL
Posts: 3,014
|
email me [email protected], and i'll help you out
|
|
|
|
|
|
#3 |
|
Confirmed User
Join Date: Jul 2001
Location: Pac-land
Posts: 858
|
You can create a seperate PHP page and include it on your SHTML page like this:
[!--#include file="random_img.php"--] The PHP file would look like this: [?php $date = date("dmY"); echo("[img src='/dailypics/$date.jpg']"); ?] Remember to replace [ and ] with < and >. Hope that helps. |
|
|
|
|
|
#4 |
|
Registered User
Industry Role:
Join Date: Mar 2002
Location: San Diego, CA
Posts: 935
|
The easiest way is to have a "default" picture (default.jpg) and use a crontab to copy a picture to that filename every night at midnight.
|
|
|
|