Sâmbătă, 25.07.2026, 11.32.35
[ Mesaje noi · Membrii · Regulamentului forumului · Cautare · RSS ]
  • Pagina 1 din 1
  • 1
Color HTML
hamsterDate: Miercuri, 28.04.2010, 18.46.03 | Message # 1
Administrator
Group: Admin
Messages: 55
Awards: 0
Reputation: 2196
Status:
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>

</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 -->

</body>
</html>
 
  • Pagina 1 din 1
  • 1
Căutare:



Tag-uri Levels 1-5 132794 кухни скидки скачать Кал оф ДЮти 2101 верхн. 20мм Самохин Дмитрий Беспорядочные бои! 2101-07 туры с детьми Тиждень психології та соціального з смс поздравления с 1 сентября FLEST 2101-09 New-Wave Шутова Ю. 2101-06 208л. 20W-50 208л 160967 обиженного 1082 Dove Gog 23016448 292 best headphones under 100 Growth 60444 2101-08 Master Freez камера бактерицидная misijās Упражнения для тренингов для управл 20944201 Хармель Хармель дверные ручки Харрис Питер Дудник лесной жонглер 202-142 акустический концерт как узнать свой ip алмаз в камне sas 3348952 (Glitch 21' 208 л. Մարիա Նալբանդյան дорожный блок цена 1300 примеров Патарушина Наталия (Yamaha lidot Fritt vilt 3 Izlasi 41960272 сезон 2013 2 шт.(с пыльниками) 2101--07 продажа торговой мебели интернет-магазин детских товаров لنا Таджикские клипы 2013 Алёна Козлова 2101-1306010-01 Escapee СКАЧАТЬ Песенка про пиво Арслан-Хан Fast and Furious 6 2013 6106053 165318 ремонт спутникового ресивера Тиогамма турбо инструкция по примен 2101 - 2107 20л. 100 лучших товаров 20х20х5 295605 китайские практики Daca as fi tu online rogueremover налог на баню пилинг без пилинговых гранул инструмент для удаления оплетки Непонятное искусство. От Моне до Бэ 2007- PREMIUM сжигатель жира бомба 2001-0433 2101 -07 влияние на кожу поснежники отдышка С/Х принадлежности Mobile Fuel Tank toolbar 2101-04 2101 (пр-во ДААЗ) Мастика ДШ-90 Брит