for (indexCounter = 3;indexCounter > 3; indexCounter--)
indexCounter > 3 ; this could never be true, if it is =3, how could it be great than 3?
So whatever in the for loop never get executed.
User Profile
Collapse
-
try this:
assign your link tag an id.
<link id="YourLinkID " href="" rel="stylesheet " type="text/css">
then in your function:
<script language="JavaS cript" type="text/javascript">
<!--
function css_style(css_c hoice) {
document.getEle mentById("YourL inkID").setAttr ibute("href", "css_styles/style"+css_choi ce+".css");...Leave a comment:
-
Then you can use <span> to replace your <div>, span is a inline item, div is a block box.
<span id="demodiv" class="demodiv" >
Do not link to other websites for promoting/traffic generation. Only link to helpful resources
</span>
take out blockquote, you don't need it there....Leave a comment:
-
It should be a html link's job. if you know the location of the pdf, then just link to it.
<a href="your pdf URL">download PDF</a>...Leave a comment:
-
using DOM scripting,
1. get the table id
2. loop through the table's child element tr, td.
3, extract every td's text node value while push them into an array....Leave a comment:
-
var high score=0; do you have a space between high and score? space is not allowed for naming a variable.
try this highScore oldScore....Leave a comment:
-
is it a bug or a feature?
Below is a testing code:
1. click the "change COL color", you will see the 2nd COL is red.
2. click the "change Row color", you will see the 2nd Row is blue, the lower right cell which was the red now changed to blue.
3. click the "change COL color" again, expecting to see the lower right cell changed back to red, but it keeps the blue color, can not be changed.
4. click the "change Row... -
Thanks for the reply,
I found the reason from MSND library, it is not applicable to TR.
http://msdn.microsoft. com/workshop/author/dhtml/reference/properties/bordercolor_0.a sp?frame=true...Leave a comment:
-
in this cell:
<td class="window2" >
Hallo en welkom op de website
</td>
you used window2 class.
then in the css, you defined:
.window2 {
background-color:#853333;
border: 1px solid black;
border-top-width:0px;
}
so, you set the border to 0 px; it is effectively hide the border. that is the reason why the top border did not show.Leave a comment:
-
CSS has no control on TR border?
Hi here is a simple html/css
<html>
<head>
<title>Untitled </title>
</head>
<body>
<table width="500">
<tr style="border: 2px solid red">
<td>A</td><td>B</td><td style="border-bottom: 2px solid green">Only the TD element has border control?</td></tr>
</table>...
No activity results to display
Show More
Leave a comment: