English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Hi,
I found a Javascript to use so images change daily but I don't know where to put the days or the date so it changes automatically. I know how to add the images from the server to it but no idea how to make the days change. Here is an example




Maybe you guys input the date or days and paste it here. I would appreciate it a lot!

2007-01-20 07:48:19 · update #1

4 answers

// This line creates a new Date object. By default, a Date represents the current Date
var mydate=new Date()

// This line gets the day of the week for the current day (1 = monday, 2 = tuesday, etc.)
var today=mydate.getDay()

// This line and the rest of the script put one of the image URLs you set at the top (mondayimg, tuesdayimg, etc.) into the page.
if (today==1) document.write(' src="'+mondayimg+'">')

----

So, just put the seven images you want to rotate in the quotes after "mondayimg=" and the rest (in place of http://www.yourwebsite.com/yourgraphic.gif), and this script will make sure the visitor's browser displays the right one for that day.

2007-01-20 07:54:11 · answer #1 · answered by watsonc64 3 · 0 0

it may be appropriate to do in own living house page... yet... Seed a random with the time ((days / 7)*month) and have it look in array for the image. The random may be the comparable till the week is over.

2016-11-25 22:33:22 · answer #2 · answered by akkash 4 · 0 0

JavaScript Spell Check is the spell checking component for JavaScript. JavaScript Spell Check. Extends your Website with :

Spell Check Website Forms and Variables
Ajax Spell Checking
Real-Time Spelling Valiation.
JavaScript Spell Check - JavaScriptSpellCheck is a comprehensive spell checking component for JavaScript. You can add custom spell-checking capabilities to your websites in minutes. JavaScriptSpellCheck provides 3 powerful spell checking features:

Pop-Up Spell Checker Window similar to that in Microsoft Word. This is ideal for spell checking website forms and data entry.
Ajax Spell Check. A fully featured Ajax Spellcheck API so you to develop your own rich spellchecking applications.
A New SpellCheck() function added to JavaScript JavaScriptSpellCheck installs easily onto almost all modern Microsoft web hosting. Just upload and go... Compatible with: - HTML (W3C Compliant) - XHTML (W3C Compliant) - ASP - ASP.

2007-01-22 15:43:19 · answer #3 · answered by Anonymous · 0 1

You need to look at www.dasolutions.com They have the perfect answer.

2007-01-20 07:50:30 · answer #4 · answered by Pelican 2 · 0 0

fedest.com, questions and answers