Логин:   Пароль:






Новости
Рассылки
Форум
Поиск


Java
- Апплеты
- Вопрос-ответ
- Классы
- Примеры
- Руководства
- Статьи
- IDE
- Словарь терминов
- Скачать

Мобильная Java
- Игры
- Примеры
- Статьи
- WAP, WML и пр.

JavaScript
- Вопрос-ответ
- Примеры
- Статьи

Веб-мастеринг
- HTML
- CSS
- SSI

Разминка для ума
Проекты
Книги
Ссылки
Программы
Юмор :)




Rambler's Top100
Rambler's Top100

JavaScript: ПримерыПостроение диаграмм

Построение диаграмм

<html>
<head>
<script language="JavaScript">
i=0
function d_rand() {
         for(j=0;j<10;j++) { 
	 for(i=0;i<10;i++) document.images[j+i*10].src = "white.jpg"
         y= Math.floor(Math.random()*10)
         for(i=9;i>9-y;i--) document.images[j+i*10].src = "blue.jpg"
         }
}
</script>
<body bgcolor=ffffff>
<center>
<table border=0>
<tr>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<tr>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20  height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<tr>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<tr>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<tr>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<tr>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<tr>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<tr>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<tr>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<tr>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<td><img src="images/white.jpg" width=20 height=10></td>
<tr><td colspan=10><img src="blue.jpg" width=250 height=2></td></tr>
</table>
<form name=diagram>
<input name=random type=button value=click onClick="d_rand()">
</form>
</center>
</body>
</html>

Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /pub/home/javaport/javaportal/books/show2b.php on line 11

Warning: mysql_db_query() [function.mysql-db-query]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /pub/home/javaport/javaportal/books/show2b.php on line 19

Warning: mysql_db_query() [function.mysql-db-query]: A link to the server could not be established in /pub/home/javaport/javaportal/books/show2b.php on line 19

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /pub/home/javaport/javaportal/books/show2b.php on line 30
Узнай о чем ты на самом деле сейчас думаешь тут.


[an error occurred while processing this directive]



Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /pub/home/javaport/javaportal/news/worldnews.php on line 91

Warning: mysql_db_query() [function.mysql-db-query]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /pub/home/javaport/javaportal/news/worldnews.php on line 93

Warning: mysql_db_query() [function.mysql-db-query]: A link to the server could not be established in /pub/home/javaport/javaportal/news/worldnews.php on line 93

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /pub/home/javaport/javaportal/news/worldnews.php on line 95