JS implementation of the Site home page random Notice Random Bulletin _ Typical special effects

Source: Internet
Author: User
Home Random Announcement Random notice


Search in default.html:
<div id= "blogfrm" ><!--log Plate frame--> Insert code here <div class= "Post Cate14 Auth6" >


<div class= "Pop1" ><script language=" JavaScript >
Tips = new Array (7);
Tips[0] = "The pain comes temporarily, do not always ask:" Why is it me? "You've never asked this question when you're----happy";
TIPS[1] = "Value lesson yi Scabbard owes 窀 ascarina yie ǎ scabbard ヒ  Ping Teman, and the rate of the" O ". nbsp. ----Western Philosophy ";
TIPS[2] = "It's not whether you can find an ideal partner, but whether you can be an ideal partner." ----The secret of a happy marriage ";
TIPS[3] = "A magnificent wedding may be a trade; an unadorned wedding often has true love." ----poor and poor couples more strong ";
TIPS[4] = "Say what you most want to say, do what you most want to do, and love the person you love most." ----the real living ";
TIPS[5] = "Some people always sigh to find love, the reason is that their lover's heart covered with moss." ----need to learn to love first ";
TIPS[6] = "Let your technology show in front of more people, and give him (her) to bring convenience and pleasure!" ----The greatest ideal of technicians ";

index = Math.floor (Math.random () * tips.length);
document.write (Tips[index]);
</script></a>
</div>
CSS file to add, this is needless to say, you can change their own style of liking
. pop1 {background-color: #FFFF00; border:1px solid #CBDFE9; color: #247CAB; text-align:left;
height:15px; line-height:15px; position:relative; margin-bottom:10px;}
. Pop1. blank {height:15px; width:0;}
It's generally universal, of course I don't have to test every program.

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.