Exciting examples of Dynamic HTML technology

Source: Internet
Author: User
Dynamic

To improve the visibility of your home page, you have to have a significant repeat customer, which requires a good impression of the home page, and Dynamic HTML (DHTML) technology produced by Dynamic Web pages, can produce stunning visual impact, so that your homepage is unforgettable.
Here are a few wonderful examples, readers.

One, the flight picture

Add the following code at the appropriate place in

<script language= "JavaScript" >

<!--

var left=0;

var top=200;

var stepx=2;

Function Jump ()

{

left=left+stepx;

if (left>710) stepx=-2;

if (-left>0) stepx=2;

Sign.style.left=left;

Sign.style.top=top;

Timeid=settimeout ("Jump ()", 100);

}

-->

</script>

<body> to <body, and then add the following code in the appropriate position after the body:

<div id= "sign" style= "position:absolute;left:0;top:200;width:135;" >

</div>

In this way, the selected picture will be in the upper part of the window from left to right, to the right edge of the left flight, continuous circulation.

Second, spring text

Add the following code at the appropriate place in

<script language= "JavaScript" >

<!--

var sizes=new Array (" -2px", " -1px", "0px", "1px", "2px", "3px", "4px",

"5px", "6px", "7px", "8px", "9px", "10px", "11px", "12px", "13px");

sizes.pos=0;

function Rubberband ()

{

var el=document.all.elastic;

if (null==el.direction)

El.direction=1;

else if ((sizes.pos>sizes.length-2) | | (0==sizes.pos))

El.direction*=-1;

El.style.letterspacing=sizes[sizes.pos+=el.direction];

}

-->

</script>

<body> to <body, and then add the following code in the appropriate position after the body:

<center>

<H2 id= "Elastic" > Spring text

</center>

Of course, in the above code to add text size and color, and so on, the text will be like a spring around telescopic.

Third, forced viewers to click on a link

Many of today's personal homepage are advertising, but the visitors are often not actively click on the ads link. If your homepage has a project to do well, such as "Software Download" column provides a lot of good software, users can download the software, do not give you a benefit. You can now force viewers to click on the ads and then go to the download page to download the software.

After the body, add the following code:

<script language= "JavaScript" >

<!--

var flag=0

-->

</script>

If your advertising link map is "http://www.webjx.com/htmldata/2005-02-20/1.jpg", the link URL is "http://www.webjx.com", you should use the following code:

<a href= "http://www.webjx.com" target= "_blank" >

</a>

Then you want to let the viewer into your page "download.htm", then add the following code:

<a href= "download.htm" target= "_blank";

> Software Downloads

</a>

Note: The contents of the above alert can be written without breaking the break, otherwise there will be an error.



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.