Bonjour,
Je suis contente d'avoir trouvé votre forum en francais.. sur fckeditor.. j'aurais besoin de votre aide..
Je voudrais qu'en sélectionnant une image dans une listbox changer le background de mon area.
j'ai integré fck avec php de cette facon (tout fonctiionne tres bien)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| <?php
$sBasePath = 'http://localhost/cpanel/';
$oFCKeditor = new FCKeditor('FCKeditor1') ;
$oFCKeditor->BasePath = $sBasePath ;
$oFCKeditor->Config['SkinPath'] = 'http://localhost/cpanel/editor/skins/office2003/' ;
$oFCKeditor->ToolbarSet = 'Default';
$oFCKeditor->Height = 86;
$oFCKeditor->Weight = 1024 ;
$oFCKeditor->Config['ToolbarLocation'] = 'Out:xToolbar' ;
$oFCKeditor->Value = $sValue;
$oFCKeditor->Create() ;
?> |
ma listbox appelle unee fonction en passant l'image selectionne:
<select size="1" name="D1" id="D1" onChange="update_picture(this.options[this.selectedIndex].value)">
et la fonction:
1 2 3 4 5 6 7 8
| <script language="JavaScript" type="text/javascript">
function update_picture(newimage) {
document.frames[0].objContent.DOM.body.style.backgroundImage = "http://localhost/cpanel/editor/userfiles/image/entete/" + newimage;
}
</script> |
ca ne fonctionne pas... merci de m'aider
Partager