07:05
Обновить
Четверг, 17.07.2025, 07:05
Реклама
Реклама
Реклама
Место свободно
Место свободно
Место свободно
  • Страница 1 из 1
  • 1
Таблица цветов html
PATRIOTДата: Пятница, 07.05.2010, 03:29 | Сообщение # 1
Генералиссимус

Сообщений: ( 1077 )

За создание сайта За 50 сообщений За 100 постов За 150 Постов За 200 Постов


Создаём файл блокнотом (.txt) пихаем туда код и меняем разрешение на .html

Code
<html>   
<head>   
<title>uWebber - таблица цветов html</title>   
    <Style>   
    A:Link{ Color: #000000; Text-decoration: underline}   
    A:Visited{ Color: #000000; Text-decoration: underline}   
    A:Hover{ Color: #000000; Text-decoration: none}   
    td, body {font-family: verdana, arial, helvetica; font-size:11px;}    
    </Style>   
<!-- HEAD START HERE -->   
<!-- HEAD END HERE -->   
</head>   
<body bgcolor="#EDEDED" text="#000000" link="#000000" topmargin="0" leftmargin="0">   
<center>   
<!-- BODY START HERE -->   
<center>   
<a href=http://uwebber.ucoz.com><img src=http://uwebber.ucoz.com/design/Untitled-1.png border= 0></a>   
<br>   
</center>   
<script LANGUAGE="JavaScript"><!--   

// create 6-element array   
var hex = new Array(6)   

// assign non-dithered descriptors   
hex[0] = "FF"   
hex[1] = "CC"   
hex[2] = "99"   
hex[3] = "66"   
hex[4] = "33"   
hex[5] = "00"   

// accept triplet string and display as background color   
function display(triplet) {   
    // set color as background color   
    document.bgColor = '#' + triplet   

    // display the color hexadecimal triplet   
    alert('Цифровой код цвета фона = ' + triplet)   
}   

// draw a single table cell based on all descriptors   
function drawCell(red, green, blue) {   
    // open cell with specified hexadecimal triplet background color   
    document.write('<TD BGCOLOR="#' + red + green + blue + '">')   

    // open a hypertext link with javascript: scheme to call display function   
    document.write('<A HREF="javascript:display(\'' + (red + green + blue) + '\')">')   

    // print transparent image (use any height and width)   
    document.write('<IMG SRC="place.gif" BORDER=0 HEIGHT=12 WIDTH=12>')   

    // close link tag   
    document.write('</A>')   

    // close table cell   
    document.write('</TD>')   
}   

// draw table row based on red and blue descriptors   
function drawRow(red, blue) {   
    // open table row   
    document.write('<TR>')   

    // loop through all non-dithered color descripters as green hex   
    for (var i = 0; i < 6; ++i) {   
    drawCell(red, hex[i], blue)   
    }   

    // close current table row   
    document.write('</TR>')   
}   

// draw table for one of six color cube panels   
function drawTable(blue) {   
    // open table (one of six cube panels)   
    document.write('<TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0>')   

    // loop through all non-dithered color descripters as red hex   
    for (var i = 0; i < 6; ++i) {   
    drawRow(hex[i], blue)   
    }   

    // close current table   
    document.write('</TABLE>')    
}   

// draw all cube panels inside table cells   
function drawCube() {   
    // open table   
    document.write('<TABLE CELLPADDING=5 CELLSPACING=0 BORDER=1><TR>')   

    // loop through all non-dithered color descripters as blue hex   
    for (var i = 0; i < 6; ++i) {   
    // open table cell with white background color   
    document.write('<TD BGCOLOR="#FFFFFF">')   

    // call function to create cube panel with hex[i] blue hex   
    drawTable(hex[i])   

    // close current table cell   
    document.write('</TD>')   
    }   

    // close table row and table   
    document.write('</TR></TABLE>')   
}   

// call function to begin execution   
drawCube()   

// --></script>   
<!-- BODY END HERE -->   
<br>   
</body>   
</html>





  • Страница 1 из 1
  • 1
Поиск:



Полная статистика сайта
Последние новости Самые отвечаемые темы Последние статьи Последние сообщения
Google ударит по пиратам ... 07.12.2010
Electronic Arts переходит... 07.12.2010
Поле битвы — браузеры 07.12.2010
Portal 2 опять отложили 07.12.2010
Скачал Ведьмка — иди под ... 07.12.2010
Заявка на вступление в ко... 9
Оцениваем не стисняесмя ... 2
Мини фотохостинг на вашем... 1
Мини Профиль 1
Новый мини-профиль серый 0
Словарь CSS 04.02.2010
Распрыг 04.02.2010
Что такое Steam 04.02.2010
Как создать свой сервер в... 04.02.2010
Valve Anti-Cheat (VAC) 04.02.2010
Тема Дата и Время Автор
Новый мини-профиль с... 17.06.2012 ; 14:02 Lookflaco
Радио онлайн для сай... 17.06.2012 ; 14:01 Lookflaco
Вид опроса - скрипт ... 17.06.2012 ; 14:00 Lookflaco
Красивый поиск по са... 08.05.2012 ; 15:53 Aninew
Очень красивый мини ... 08.05.2012 ; 15:53 Aninew
Прикольные флэш часы... 08.05.2012 ; 15:53 Aninew
флэш календарь 08.05.2012 ; 15:52 Aninew
Хороший изменённый м... 10.03.2012 ; 12:33 Batareyka
Поднятье страницы вв... 10.03.2012 ; 12:33 Batareyka
Мы Vконтакте.VK (ото... 10.03.2012 ; 12:32 Batareyka
Стилизация опроса uC... 10.03.2012 ; 12:32 Batareyka
Нужна помощ!!! 16.12.2010 ; 16:02 xlop4ik
Новые пользователи Активные пользователи Лучшие комментаторы
Bitfood 07.10.2013
greenpis 21.03.2013
startsmart 27.10.2012
laym 31.08.2012
Lookflaco 17.06.2012
Aninew 08.05.2012
PATRIOT 1077
---๖ۣۜDJ--- 6
Batareyka 4
Aninew 4
xlop4ik 3
Lookflaco 3
PATRIOT 12
Круис 5
0_o 1
-RUS-7 0
Red 0
Enclave 0

POS-CS.RU ©Все права защищены! Дизайн данного сайта полностью принадлежит Администратору Сайта Используются технологии uCoz Сайт оптимизирован под браузер FireFox Mozila. Sitemap | Sitemap-forum.