Color HTML - Forum
Marţi, 06.12.2016, 02.52.54
[ Mesaje noi · Membrii · Regulamentului forumului · Cautare · RSS ]
Pagina 1 din 11
Forum » Scripturi » Scripturi ucoz » Color HTML
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>
 
Forum » Scripturi » Scripturi ucoz » Color HTML
Pagina 1 din 11
Căutare:



Tag-uri google apple facebook HTC One X HTC Titan II iPhone 4S Nokia 808 PureView Nokia Lumia 900 Samsung GALAXY S II sample robot download movie Faster Sims 3 rame romantic templates Frame Photo Frame spring Frame free Frame descarca DOWNLOAD Aiseesoft PDF Babylon Studio Ashampoo Burning Creator logo Flash Website SecureUninstaller Moo0 RightClicker Artisteer 1Click Flash Player Burlesque Deadly Crossing RocketDock Acoustica Mixcraft dvd photo jocuri 2011 film 2010 documentar Dirty Movie love Romantics photoshop AIO Rosetta Stone AKVIS ArtSuite Anti-Trojan Elite castiga bani online optimizare google Aeon Flux filme 2005 Inside Job filme 2006 portable Artweaver Hallmark CorelDRAW Graphics Maker photo calendar SmartSound ScreenHunter antivirus avast CamPaper Abstract backgrounds Mosaic Backgrounds free frame rame gratis 3d Jazler RadioStar Nod32 Disk Cleaner Cleaner CleanMyPC filme 2008 filme 2010 filme 2009 filme 2001 nature wallpapers filme 2011 Dream House (2011) Casa de vis Immortals Dawn of the Dragon Slayer Skeleton Lake Children of the Corn Genesis Never Back Down 2 Rabbit Hole final destination 5 2011 Fright Night Poster Friends with Benefits Love Birds