mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
116 lines
3.0 KiB
HTML
116 lines
3.0 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
|
|
"http://www.w3.org/TR/html4/strict.dtd">
|
|
<html>
|
|
<head>
|
|
<title>px-color</title>
|
|
|
|
<script type="text/javascript">
|
|
|
|
i=0;
|
|
showal=false;
|
|
|
|
function changeStyleA(){
|
|
usecolor = (i%2)<1 ? "#f00" : "#00f";
|
|
|
|
document.getElementById("extable").style.borderColor=usecolor;
|
|
document.getElementById("extd").style.borderColor=usecolor;
|
|
document.getElementById("exdiv").style.borderColor=usecolor;
|
|
|
|
document.getElementById("pxtable").style.borderColor=usecolor;
|
|
document.getElementById("pxtd").style.borderColor=usecolor;
|
|
document.getElementById("pxdiv").style.borderColor=usecolor;
|
|
|
|
document.getElementById("pttable").style.borderColor=usecolor;
|
|
document.getElementById("pttd").style.borderColor=usecolor;
|
|
document.getElementById("ptdiv").style.borderColor=usecolor;
|
|
|
|
document.getElementById("emtable").style.borderColor=usecolor;
|
|
document.getElementById("emtd").style.borderColor=usecolor;
|
|
document.getElementById("emdiv").style.borderColor=usecolor;
|
|
|
|
i++;
|
|
|
|
if (showal) {
|
|
alert("document.getElementById('pxtable').style.borderColor = " +document.getElementById("pxtable").style.borderColor);
|
|
}
|
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
|
</head>
|
|
<body>
|
|
Change the border colors a few times, they all should change color<BR>
|
|
<p>
|
|
|
|
<table id="extable" style="border:1ex solid #0f0;">
|
|
<tr>
|
|
<td id="extd" style="border:1ex solid #0f0;">
|
|
This is a td with border:1ex solid #0f0; in a table with border:1ex solid #0f0;
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<p>
|
|
|
|
<div id="exdiv" style="border:1ex solid #0f0;">
|
|
this is a div with border:1ex solid #0f0;
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
<table id="pxtable" style="border:10px solid #0f0;">
|
|
<tr>
|
|
<td id="pxtd" style="border:10px solid #0f0;">
|
|
This is a td with border:10px solid #0f0; in a table with border:10px solid #0f0;
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<p>
|
|
|
|
<div id="pxdiv" style="border:10px solid #0f0;">
|
|
this is a div with border:10px solid #0f0;
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
<table id="pttable" style="border:10pt solid #0f0;">
|
|
<tr>
|
|
<td id="pttd" style="border:10pt solid #0f0;">
|
|
This is a td with border:10pt solid #0f0; in a table with border:10pt solid #0f0;
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<p>
|
|
|
|
<div id="ptdiv" style="border:10pt solid #0f0;">
|
|
this is a div with border:10pt solid #0f0;
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
<table id="emtable" style="border:1em solid #0f0;">
|
|
<tr>
|
|
<td id="emtd" style="border:1em solid #0f0;">
|
|
This is a td with border:1em solid #0f0; in a table with border:1em solid #0f0;
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<p>
|
|
|
|
<div id="emdiv" style="border:1em solid #0f0;">
|
|
this is a div with border:1em solid #0f0;
|
|
</div>
|
|
|
|
<hr>
|
|
<p>
|
|
<a onClick="changeStyleA();">>>>click here to change colors<<<</a>
|
|
<a onClick="showal=!showal;">>>>click here to (en|dis)able alert<<<</a>
|
|
|
|
</body>
|
|
</html>
|