begin process at 2010 03 11 16:40:06
  Trouver un code source :
 
dans
 
Accueil > 

Code

 > 

Graphique

 > AFFICHER LA PALETTE DES 216 COULEURS WEB

AFFICHER LA PALETTE DES 216 COULEURS WEB


 Information sur la source

Note :
5 / 10 - par 1 personne
5,00 / 10

  • 1

  • 2

  • 3

  • 4

  • 5

  • 6

  • 7

  • 8

  • 9

  • 10
Catégorie :Graphique Niveau :Débutant Date de création :25/04/2002 Date de mise à jour :25/05/2002 10:02:32 Vu :8 155

Auteur : kraven

Ecrire un message privé
Site perso
Commentaire sur cette source (0)
Ajouter un commentaire et/ou une note

 Description

Ce code permet d'afficher un petit tableau avec les 216 couleurs web et d'afficher son code hexadecimal a son survol.  

Source

  • <TABLE cellpadding="0" cellspacing="1">
  • <TR>
  • <%
  • Dim R, V, B, i, x
  • Dim TblColor(6)
  • TblColor(1) = "00"
  • TblColor(2) = "33"
  • TblColor(3) = "66"
  • TblColor(4) = "99"
  • TblColor(5) = "cc"
  • TblColor(6) = "ff"
  • R = 1
  • V = 1
  • B = 1
  • x = 1
  • i = 1
  • For i = 1 to 216
  • if x = 16 then
  • response.write "</TR><TR>"
  • x = 1
  • end if
  • %>
  • <TD bgcolor="#<%=TblColor(R) & TblColor(V) & TblColor(B)%>" width="10" height="10" title="#<%=TblColor(R) & TblColor(V) & TblColor(B)%>"></TD>
  • <%
  • x = x + 1
  • B = B + 1
  • if B = 7 then
  • V = V + 1
  • B = 1
  • if v = 7 then
  • v = 1
  • R = R + 1
  • end if
  • end if
  • next
  • %>
  • </TR>
  • </TABLE>
<TABLE cellpadding="0" cellspacing="1">
<TR>
<%
Dim R, V, B, i, x
Dim TblColor(6)
TblColor(1) = "00"
TblColor(2) = "33"
TblColor(3) = "66"
TblColor(4) = "99"
TblColor(5) = "cc"
TblColor(6) = "ff"

R = 1
V = 1
B = 1
x = 1
i = 1
For i = 1 to 216

	if x = 16 then
	response.write "</TR><TR>"
	x = 1
	end if
%>
<TD bgcolor="#<%=TblColor(R) & TblColor(V) & TblColor(B)%>" width="10" height="10" title="#<%=TblColor(R) & TblColor(V) & TblColor(B)%>"></TD>
<%  
x = x + 1
B = B + 1
	
	if B = 7 then
	V = V + 1
	B = 1
	
		if v = 7 then
		v = 1
		R = R + 1
		end if
	
	end if
next
%>
</TR>
</TABLE>  



 Sources de la même categorie

Source avec Zip Source avec une capture Source .NET (Dotnet) CLASS CHARTS, HISTOGRAMCHART ET SECTORCHART par The Red Man
EXTRACTION D'INFORMATIONS IPTC D'UNE IMAGE par teenage
Source avec Zip Source avec une capture Source .NET (Dotnet) MANIPULATION D'IMAGES EN TEMPS RÉEL - RÉDUCTION COMPRESSION ... par badrbadr
Source avec Zip Source avec une capture Source .NET (Dotnet) UTILISATION D’AJAX ET D’UN WEBSERVICE POUR LA GÉNÉRATION D’I... par tikrimi
REDIMENSIONNER UNE IMAGE - ASPIMAGE par Keneyda

Commentaires et avis

Aucun commentaire pour le moment.

 Ajouter un commentaire




Nos sponsors


Appels d'offres

Sondage...

Comparez les prix


HTC Hero

Entre 550€ et 550€

CalendriCode

Mars 2010
LMMJVSD
1234567
891011121314
15161718192021
22232425262728
293031    

Consulter la suite du CalendriCode

 
Développement réalisé par Nicolas SOREL (Nix) avec l'aide de : Cyril DURAND et Emmanuel (EBArtSoft), Merci à Vincent pour ses précieux conseils.
CodeS-SourceS.com© Toute reproduction même partielle est interdite sauf accord écrit du Webmaster
CodeS-SourceS.com© est une marque déposée tous droits réservés

Google Coop CodeS-SourceS Google Coop CodeS-SourceS
Temps d'éxécution de la page : 0,640 sec (3)

Nous contacter | Annoncer sur CodeS-SourceS | Mentions légales