Text from small to large display

Source: Internet
Author: User
Tags eval visibility

<title> Web Effects | linkweb.cn/js|---Text from small to large display </title>
<style type= "Text/css" >
<!--
Body {font-family: "XXFarEastFont-Arial"; font-size:9pt; margin-top:0px; margin-left:0px; margin-right:0px}
A {color:black; font-size:9pt; font-weight:400; Text-decoration:none}
a:hover {color:red; font-size:9pt; font-weight:400; Text-decoration:underline}
a:active {font:9pt "song body"; Cursor:hand color: #FF0033}

-->
</style>
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
<body bgcolor= #fef4d9 text=black onload= "init ()" background= ". /images/bg.gif ">
<br>
<center><font color=red face= "Official script" size=6> text from small to large </font></center>
<br>

<style type= "Text/css" >
Body
{
Background-color: #fef4d9;
font-family:arial;
font-size:10pt;
}


</style>

<script>


Text=new Array (' www ', ' txgz ', ' com ', ' Web Effects ningbo ')

var numtext=4

Color=new Array (' #000000 ', ' #2F2F2F ', ' #4F4F4F ', ' #7F7F7F ', ' #408080 ')

var numcolors=5

var endsize=70

var zspeed=30

var cspeed=200

var ' Arial Black '

var hide=false

var size=10

var gonum=0

var ie, n;

if (document.all) {

N=0

Ie=1

zoomtext= ' document.all.zoom.innertext=text[num] '

Zoomsize= ' Document.all.zoom.style.fontsize=size '

Closeit= ""

Fadecolor= "Document.all.zoom.style.color=color[num]"

}

if (document.layers) {

N=1;ie=0

Zoomtext= ""

Zoomsize= "Document.zoom.document.write (' <p align=" center "style=" font-family: ' +font+ '; font-size: ' +size+ ' px; Color: ' +color[0]+ ' "> ' +text[num]+ ' </p> ')"

Closeit= "Document.zoom.document.close ()"

Fadecolor= "Document.zoom.document.write (' <p align=" center "style=" font-family: ' +font+ '; font-size: ' +endsize+ ' px Color: ' +color[num]+ ' "> ' +text[numtext-1]+ ' </p> ')"

}


function Zoom (NUM,FN) {

if (size<endsize) {

Eval (ZoomText)

Eval (zoomsize)

Eval (Closeit)

size+=5;

settimeout ("Zoom" ("+num+", "" +fn+ ")", Zspeed)

}else{

Eval (FN);

}

}


function Fadeit (num) {

if (num<numcolors) {

Eval (Fadecolor)

Eval (Closeit)

Num+=1;

settimeout ("Fadeit" ("+num+"), Cspeed)

}else{

Hideit ()

}

}


function Hideit () {

if (hide) {

if (ie) document.all.zoom.style.visibility= "hidden"

if (n) document.layers.zoom.visibility= "hidden"

}

}


function init () {

if (IE) {

DOCUMENT.ALL.ZOOM.STYLE.COLOR=COLOR[0]

Document.all.zoom.style.fontfamily=font

}

if (ie | | n) GO (0)

}

function Go (num) {

Gonum+=1

size=10

if (Num<numtext) {

Zoom (num, ' Go (' +gonum+ ') ')

}else{

Fadeit (0)

}

}

</script>
<div id= "Zoom" align= "center" style= "Position:absolute"; top:150 ">
</DIV>

<body bgcolor= "#fef4d9" onload= "init ()" >
<p>
<br>
<br>
</p>
</body>

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.