Javascript script for randomly displaying classical sentences or poems

Source: Internet
Author: User

Copy codeThe Code is as follows:
<SPAN id = shi> random xianshi: </SPAN>
<SPAN id = down> [
<SCRIPT src = "shi. js" type = text/javascript> </SCRIPT>
] </SPAN>


Shi. js
Copy codeThe Code is as follows:
Function text (){
};

Text = new text ();
Number = 0;

// TextArray
Text [number ++] = "the mind is positive, the body is positive, the eye is positive, and the walk is positive. "
Text [number ++] = "everything in the world is a sub-skill, and the essence is the Dharma. "
Text [number ++] = "for thousands of years, truth, goodness, and endurance are the only criteria to measure quality. Everyone should abide by them. "
Text [number ++] = "no intention is positive, and no coincidence is inevitable. This site is open without asking the customer why. "
Text [number ++] = "ages of heaven and earth, a hundred years of life. How many autumn after generations and rounds of reincarnation? We have been looking for a long time, just for the present, opportunity. -Google English"
Text [number ++] = "You have no idea what you want to do, but you have no idea. I am a good reader who has benefited, so I can't help but clear this moment. "
Text [number ++] = "How long have you been? Why? Today, we are here to share our memories. "
Text [number ++] = "no matter how dark the world is, how can we save the real image of all beings. I am a fairy when I wear the sleeves. "
Text [number ++] = "when a person is resting his body, his/her prime position and safe as you may encounter it, his/her mind is peaceful, and his/her spirit is relaxed. -Waterstone chatting · Zhang Sanfeng"
Text [number ++] = "dust and dust outside the window, dream in the window. Knowing the body is a dream, and one task is like a dust. "
Text [number ++] = "watching the cloud in the day, sleeping in the rain in the autumn. My brow is nothing, and my pen is a thousand years old. "
Text [number ++] = "the past has passed, so you don't have to worry about it in the future. Only the current sentence is the present sentence, and the plum blossom is fragrant when it is ripe. "
Text [number ++] = "Eye Kong, lake, sea, and air Lingyun, outstanding jungle thinking. Who is me from the ages? It is not surprising. "
Text [number ++] = "Wan zhanghan Tan Jing Qing, Jing Xiang Guang Xing. With the hook up, the water is vast. "
Text [number ++] = "Spring Festival, and Spring Festival. Tian xiao is not encouraged by the clock, and Yue Ming is not a night pedestrian. "
Text [number ++] = "The Name Of The World's Best guest, I am awake in the middle of the road. He decided to see the sky go up and clear the sky. -Daoshi Chongyang zhenren"
Text [number ++] = "no trace is found when it comes to current affairs. Why should we ask more questions? This is just a dream. "
Text [number ++] = "is like a dream in the cloud. I don't know what else it is. He is not allowed to share his things. "
Text [number ++] = "flowers and plants, fog and fog, midnight, and tomorrow. When there were so many spring dreams, it seemed like there was no place to go to the cloud. "
Text [number ++] = "It looks like a crane, and has two classics: One thousand lines from Panasonic. Let me ask, "the cloud is in Qingtian water. "
Text [number ++] = "mo Xiaofeng is full of face disease, this is why there is no room. Xushu lotus leaves are hard to wet at the end, and it is a kind of idle to live in the cloud. "
Text [number ++] = "what is the battle on the snail bait? This is the life of Shi huozhong. With poverty and wealth and happiness, don't laugh is crazy. "
Text [number ++] = "hao tianfeng is full of buildings, and Lin Qiu is surging during the peak. When the rain was everywhere, the eaves were mixed with bells, and the fang zhangxiaoran courtyard autumn. -Qiu Changchun, Yue yunlou, who has passed the Autumn Festival"
Text [number ++] = "the heart is like a snow Bell, and it looks like a frost day. In the depths of the white clouds, you can see the xianjia. -Self-complimentary Zhang ziqiong"
Text [number ++] = "Qian Kun is like a Qiong pot, and he is a husband. The wind and rain of Chang 'an spring has been twilight, and the flowers are full. -Guanzhong digelian sentence-han, lan, CaO, he"
Text [number ++] = "if you want to be a gold and fine-looking character, you must begin from the fire. Think of the power to reveal the ground, and you must perform it on thin ice. -Cai gentan"
Text [number ++] = "opens the dust in the world, and the chest is self-built with no flame ice competition; it is not in our hearts, and there is a month to the wind. -Cai gentan"
Text [number ++] = "I think the result of hongfurnace Daye cannot be pottery. I am a giant sea of the Yangtze River, and it cannot be accommodated. -Cai gentan"
Text [number ++] = "if you want to change without warehouse busy, you must always read it carefully. If you want to die without greed, you must look down on current affairs. -Cai gentan"
Text [number ++] = "when it is easy to save at any time, if the wind is hot, it can be refined in the vulgar, like the light moon. -Cai gentan"
Text [number ++] = "fame and wealth. If you look at the truth from the point of destruction, you will be greedy for yourself. If you go from the beginning to the point of poverty, you will be especially angry. -Cai gentan"
Text [number ++] = "in the quiet view of things, looking at people busy in the idle place, is super fun. In case of busy areas, they will be idle, and they will be able to get quiet in the busy area, it's a ready-to-live job. -Cai gentan"
Text [number ++] = "when there are no things, be careful to avoid unexpected changes. When there are things that often do not have things, the calm party can eliminate the danger of the situation. -Cai gentan"
Text [number ++] = "if you hold your health, if you don't move your feet, then you will be less than yourself. If the water passes slowly, you will have a lot of fun. -Cai gentan"
Text [number ++] = "in case of a problem, you can only calm down and calm down. If there is a mess in the dark, you will eventually be ready. If there is no half-correction or false deception, although it is like a mountain ghost, we are also offering sincerity. -Cai gentan"
Text [number ++] = "in the dream, Jin peiyu is suspended, and everything is lifelike. Although sleeping, it is true or false. When you are idle, you can talk about yuan, just like what you say. -Cai gentan"
Text [number ++] = "Honor and Disgrace:" Do you need to seek honor if you are not tired of humiliation? Be born and die with the same root, and be greedy without fear. -Cai gentan"
// Keep adding items here...

Increment = Math. floor (Math. random () * number );

Document. write (text [increment]);


<! -- // Random shengxian poetry, which is made by qingping jianke. for reprinting, please keep this information updated on www.9941.cn // -->

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.