如何在一年中的每一天加载新页面? [英] How do I load a new page each day of the year?

查看:106
本文介绍了如何在一年中的每一天加载新页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有很多脚本根据每周,每月或随机的

天将html加载到页面中,但我想加载一个

一年中的每一天都有不同的页面。


我想给脚本一个365 html页面的列表并拥有它

加载一个新页面每天页面


提前致谢

解决方案

11月12日,12:33 am,nico ... @ sympatico.ca写道:


有很多脚本根据

将html加载到页面中星期几,月份或随机,但我想在一年中每天加载一个

不同的页面。


我想给一个脚本365个html页面的列表并且有它

每天在该页面加载一个新的


提前预订


你做了什么尝试。来吧,做一些我们可以帮助你的事情,这是我们只是在这里等待完成任务的事情。

not

人们可以提供帮助,但是它不会是b $ b不应该是b $ b预计他们会为你做的一切。


干杯


11月11日,20:59,Darko< darko.maksimo ... @ gmail.comwrote:


11月12日上午12:33,nico ... @ sympatico.ca写道:


有很多脚本可以将html加载到页面中基于每周,每月或随机的

天,但我想在一年中的每一天加载一个

的不同页面。


我想给脚本一个365个html页面的列表并拥有它

加载一个新的每天页面


提前付款



您还尝试了什么?来吧,做一些我们可以帮助你的事情,这是我们只是在这里等待完成任务的事情。

not

人们可以提供帮助,但是它不会是b $ b不应该是b $ b预计他们会为你做的一切。


干杯



嗨Darko,


你根本不需要做任何事情我真的没想到任何人/>
做任何事情。我只是希望有人会读到这个并且

知道我在哪里可以找到这样的sript,也许他们处于我所处的相同的状态。我本来可以记下我读过的所有搜索结果的网址,但我认为这不会有帮助。


ni*****@sympatico.ca 在2007年11月11日下午10:25说了以下内容:


11月11日20:59,Darko< darko.maksimo ... @ gmail.comwrote:


> 11月12日上午12:33,nico ... @ sympatico.ca写道:


>>有很多脚本将html加载到基于星期几,月份或随机日期的页面中,但我想在一年中的每一天加载一个不同的页面。
我想要给脚本一个365个html页面的列表并将其加载到该页面中每天



这将在每两年2月29日休息。


>>提前致谢


你做了什么尝试。来吧,做一些我们可以帮助你的事情,这不是说我们只是在这里等待任务去做。人们可以提供帮助,但是不应该期望他们为你做的一切。

干杯



嗨Darko,


你根本不需要做任何事情,我真的不希望任何人

做任何事情。我只是希望有人会读到这个并且

知道我在哪里可以找到这样的sript,也许他们处于我所处的相同状态。我在可以写下我读过的所有搜索结果的网址,但我不认为这会有所帮助。



我怀疑你是否会为它找到一个现成的脚本。最简单的

方式是按日期命名所有文件。使用基于零的月份数字

因为这是JS使用的,它使它更简单。使用getMonth()给你

你的月号,getDate()给你月份的那一天。


dayOfMonth = new Date()。 getDate()

monthOfYear = new Date()。getMonth()

现在,你可以按照Darko的建议。尝试一下,发布你的最佳尝试。


-

兰迪

机会有利于预备心灵

comp.lang.javascript常见问题 - http://jibbering.com/faq /index.html

Javascript最佳实践 - http ://www.JavascriptToolbox.com/bestpractices/


There are plenty of scripts that load html into a page based on the
day of the week, month, or randomly, but I would like to load a
different page every day of the year.

I would like to give a script a list of 365 html pages and have it
load a new one into that page each day

Thanks in advance

解决方案

On Nov 12, 12:33 am, nico...@sympatico.ca wrote:

There are plenty of scripts that load html into a page based on the
day of the week, month, or randomly, but I would like to load a
different page every day of the year.

I would like to give a script a list of 365 html pages and have it
load a new one into that page each day

Thanks in advance

What did you try yet. Come on, do something we can help you with, it''s
not
that we are just waiting here for tasks to do. People can help, but it
shouldn''t
be expected they do everything for you.

Cheers


On 11 Nov, 20:59, Darko <darko.maksimo...@gmail.comwrote:

On Nov 12, 12:33 am, nico...@sympatico.ca wrote:

There are plenty of scripts that load html into a page based on the
day of the week, month, or randomly, but I would like to load a
different page every day of the year.

I would like to give a script a list of 365 html pages and have it
load a new one into that page each day

Thanks in advance


What did you try yet. Come on, do something we can help you with, it''s
not
that we are just waiting here for tasks to do. People can help, but it
shouldn''t
be expected they do everything for you.

Cheers

Hi Darko,

You don''t have to do anything at all and I really don''t expect anyone
to do anything. I was just hoping that someone would read this and
know where I can find such a sript, perhaps they were in the same
situation that I''m in. I could have written down all the urls of the
search results I read through, but I didn''t think that would help.


ni*****@sympatico.ca said the following on 11/11/2007 10:25 PM:

On 11 Nov, 20:59, Darko <darko.maksimo...@gmail.comwrote:

>On Nov 12, 12:33 am, nico...@sympatico.ca wrote:

>>There are plenty of scripts that load html into a page based on the
day of the week, month, or randomly, but I would like to load a
different page every day of the year.
I would like to give a script a list of 365 html pages and have it
load a new one into that page each day

That will break on Feb 29th every four years.

>>Thanks in advance

What did you try yet. Come on, do something we can help you with, it''s
not
that we are just waiting here for tasks to do. People can help, but it
shouldn''t
be expected they do everything for you.

Cheers


Hi Darko,

You don''t have to do anything at all and I really don''t expect anyone
to do anything. I was just hoping that someone would read this and
know where I can find such a sript, perhaps they were in the same
situation that I''m in. I could have written down all the urls of the
search results I read through, but I didn''t think that would help.

I doubt you are going to find a ready made script for it. The simplest
way is to name all your files by the date. Use zero based month numbers
as that is what JS uses and it makes it simpler. Use getMonth() to give
you the month number, getDate() to give you the day of the month.

dayOfMonth = new Date().getDate()
monthOfYear = new Date().getMonth()
Now, you can follow Darko''s advice. Give it a try, post your best attempt.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/


这篇关于如何在一年中的每一天加载新页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆