I have told you so much about CSS...
Now share with you some DHTML stuff...
....................................................
DHTML is composed of script+DOM+CSS+HTML...
DOM refers to document object model...
DHTML begins to have some shadows of objects....
For example, various properties of CSS, script events, and the concept of DOM...
I have talked about the properties of CSS before...
script takes vbscript as an example...
The more commonly used events are:
onclick...
ondbclick...
onmouseover..
onmouseout..
onmousemove..
onkeydown..
onkeypress..
onkeyup..wait...
As for how to combine 4 things together...
Give a simple example
When the mouse moves over "Asp Headquarters in Taiwan", the font changes color...
<html>
<head>
<meta content="text/html; charset=big5" http-equiv=Content-Type>
<title></title>
</head>
<body text="blue">
<div align="center">
<span id="a" onmouseover="a.style.color='red'"
onmouseout="a.style.color='blue'">Asp headquarters in Taiwan</span>
</div>
</body>
</html>
I first named the <span>...</span> tag a...
Using the methods onmouseover and onmouseout in script...
Onmuseover will be triggered when the mouse moves over the <span>...</span> component.
In this way, the text in <span>...</span> will change....
This is probably the understanding of DHTML...
If there is any error or problem with the above content...
You are welcome to email me...