begin process at 2012 02 15 01:37:22
  Trouver un code source :
 
dans
 

28 commentaire(s) de josselinbonnin sur des sources sur tout CodeS-SourceS

Déposé sur Hiérarchisation d'un tableau par fonction récursive

re salut

et puis juste un détail mais éviter de mettre des echo partout
juste un a la fin sa suffit

$newtab = recurs($tb,0,0,'');
$select.="<select name=\"choix_elements\">\n";
$select.="<option value=\"0\">S&eacute;lectionner</option>\n";

foreach($newtab as $key => $valnewtab) {

$nom=$valnewtab['nom'];
if($key==0){$lvl0=$valnewtab['niveau'];}
$style=10*$valnewtab['niveau'];

$select .="<option style=\"padding-left:".$style."px;\" value=\"".$valnewtab['id']."\"";

if($_GET['choix_elements']==$valnewtab['id']){echo "selected";}

$select.=">".$nom."</option>\n";

}
$select.="</select>";


echo $select;
Posté le : 24/02/2010 01:42:58

Déposé sur Hiérarchisation d'un tableau par fonction récursive

salut

moi perso jai pas les &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

donc jai fait :

$newtab = recurs($tb,0,0,'');
echo "
<select name=\"choix_elements\">
<option value=\"0\">S&eacute;lectionner</option>\n";

foreach($newtab as $key => $valnewtab) {

$nom=$valnewtab['nom'];
if($key==0){$lvl0=$valnewtab['niveau'];}
$style=10*$valnewtab['niveau'];

echo "<option style=\"padding-left:".$style."px;\" value=\"".$valnewtab['id']."\"";

if($_GET['choix_elements']==$valnewtab['id']){echo "selected";}

echo">".$nom."</option>\n";

}
echo "</select>";
Posté le : 24/02/2010 01:31:46

Déposé sur Défilement d'image (loadmovie ou loadclip)

timeline clip deplacement
Posté le : 10/06/2008 19:47:04

Déposé sur Flash,textfield,css,scroll

le fichier texte est monter comme ca

productInfo
&productInfo2
&productInfo3

donc , sa charge  productInfo1  au debut
les bouton prev et next font defiler la variable currentPainting
selon le nombre de texte

et charge le texte correspondant

currentPainting +  currentPainting

currentPainting+1
currentPainting+2

ect....

je m'absente  jusqua lundi a++
Posté le : 10/05/2008 14:31:23

Déposé sur Flash,textfield,css,scroll

var product_lv = new LoadVars();
product_lv.onLoad = function(success) {
if (success) {
productInfo_txt.htmlText = product_lv.productInfo0;
}
};
var product_ss = new TextField.StyleSheet();
product_ss.onLoad = function(success) {
if (success) {
productInfo_txt.styleSheet = product_ss;
product_lv.load("texte/galery.txt");
}
};
product_ss.load("texte/galery.css");
//-----------------------------------------------------------------------
var currentPainting = 0;
//----------------------------------------------------------------------------
prevButton_mc.onPress = function() {
currentPainting--;
if (currentPainting<0) {
currentPainting = 0;
} else {
productInfo_txt.htmlText = product_lv["productInfo"+currentPainting];
}
};
nextButton_mc.onPress = function() {
currentPainting++;
if (currentPainting>=3) {
currentPainting = 3;
productInfo_txt.htmlText = product_lv.productInfo2;
} else {
productInfo_txt.htmlText = product_lv["productInfo"+currentPainting];
}
};
Posté le : 10/05/2008 13:22:35

Déposé sur Défilement d'image (loadmovie ou loadclip)

regarde ce que veux dire attachMovie() et on en reparle
Posté le : 13/10/2007 19:02:57

Déposé sur Flash,textfield,css,scroll

http://wiki.mediabox.fr/documentation/flash/textfield/antialiastype
Posté le : 05/10/2007 17:51:51

Déposé sur Flash,textfield,css,scroll

j'aimerais bien le savoir!! moi aussi
Posté le : 05/10/2007 16:57:44

Déposé sur Défilement d'image (loadmovie ou loadclip)

menuContextuel = new ContextMenu();
menuContextuel.hideBuiltInItems();
this.menu = menuContextuel;

voire la dedans
Posté le : 26/06/2007 00:40:47

Déposé sur Défilement d'image (loadmovie ou loadclip)

pour l'instant j'ai pas encore vue ça

Posté le : 24/06/2007 23:38:39

1 2 3


Nos sponsors


Sondage...

CalendriCode

Février 2012
LMMJVSD
  12345
6789101112
13141516171819
20212223242526
272829    

Consulter la suite du CalendriCode

Photothèque

 
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 : 21,060 sec (4)

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