Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

pa_bruno

FCKeditor ou htmlArea

Recommended Posts

pelo amor de Deus... alguem aki sabe como q funciona um desses 2 scripts??? num to conseguindo por nada... tah sinistro... squem quiser meu MSN pa_bruno@ig.com.br to desesperado, tenho q terminar uma parada e com esses scripts seria a melhor forma, mais arrumada, mas tah dificil entender o funcionamento... falow ae galera...

Compartilhar este post


Link para o post
Compartilhar em outros sites

PHP

[*]

[*]<html>

[*]<head>

[*]<title>teste</title>

[*]<script language="Javascript1.2">

[*]<!-- // load htmlarea

[*]_editor_url = "htmlarea/"//COM A BARRA NO FINAL

[*]var win_ie_ver = parseFloat(navigator.appVersion.split("MSIE")[1]);

[*]if (navigator.userAgent.indexOf('Mac') >= 0) { win_ie_ver = 0; }

[*]if (navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; }

[*]if (navigator.userAgent.indexOf('Opera') >= 0) { win_ie_ver = 0; }

[*]if (win_ie_ver >= 5.5) {

[*]document.write('<scr' + 'ipt src="' +_editor_url+ 'editor.js"');

[*]document.write(' language="Javascript1.2"></scr' + 'ipt>');

[*]} else { document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>'); }

[*]// -->

[*]</script>

[*]</head>

[*]<body topmargin="0" leftmargin="0">

[*] <form name="form1" method="post" action="">

[*]<textarea name="corpo" style="width:50%; height: 400px"></textarea>

[*]

[*] <script language="javascript1.2">

[*]var config = new Object()// create new config object

[*]

[*]config.width = "90%"//90%

[*]config.height = "300px";

[*]config.bodyStyle = 'background-color: white; font-family: "Verdana"; font-size: x-small;';

[*]config.debug = 0;

[*]

[*]// NOTE: You can remove any of these blocks and use the default config!

[*]

[*]config.toolbar = [

[*]['fontname'],

[*]['fontsize'],

[*]['fontstyle'],

[*]['linebreak'],

[*]['bold','italic','underline','separator'],

[*]// ['strikethrough','subscript','superscript','separator'],

[*]['justifyleft','justifycenter','justifyright','separator'],

[*]['OrderedList','UnOrderedList','Outdent','Indent','separator'],

[*]['forecolor','backcolor','separator'],

[*]['HorizontalRule','Createlink','InsertImage','htmlmode','separator'],

[*]['about','help','popupeditor'],

[*]];

[*]

[*]config.fontnames = {

[*]"Arial""arial, helvetica, sans-serif",

[*]"Courier New""courier new, courier, mono",

[*]"Georgia""Georgia, Times New Roman, Times, Serif",

[*]"Tahoma""Tahoma, Arial, Helvetica, sans-serif",

[*]"Times New Roman""times new roman, times, serif",

[*]"Verdana""Verdana, Arial, Helvetica, sans-serif",

[*]"impact""impact",

[*]"WingDings""WingDings"

[*]};

[*]config.fontsizes = {

[*]"1 (8 pt)""1",

[*]"2 (10 pt)""2",

[*]"3 (12 pt)""3",

[*]"4 (14 pt)""4",

[*]"5 (18 pt)""5",

[*]"6 (24 pt)""6",

[*]"7 (36 pt)""7"

[*]};

[*]

[*]

[*]

[*]config.fontstyles = [ // make sure classNames are defined in the page the content is being display as well in or they won't work!

[*]{ name: "headline", className: "headline", classStyle: "font-family: arial black, arial; font-size: 28px; letter-spacing: -2px;" },

[*]{ name: "arial red", className: "headline2", classStyle: "font-family: arial black, arial; font-size: 12px; letter-spacing: -2px; color:red" },

[*]{ name: "verdana blue", className: "headline4", classStyle: "font-family: verdana; font-size: 18px; letter-spacing: -2px; color:blue" }

[*]

[*]// leave classStyle blank if it's defined in config.stylesheet (above), like this:

[*]// { name: "verdana blue", className: "headline4", classStyle: "" }

[*]];

[*]

[*]editor_generate('corpo',config);

[*]</script>

[*]  <input type="submit" name="Submit" value="Submit">

[*] </form>

[*]</body>

[*]</html>

[*]

 

foi mal, mas eh q sou leigo nisso.. hehehehe o fck num eh melhor naum??? falow...

Compartilhar este post


Link para o post
Compartilhar em outros sites

num eh possivel... uahuhauahuahua... pow, continua naum aparecendo nada... nem no i.e.por acaso tenho q habilitar alguma funcionalidade a maisno servidor, algo assim???

Compartilhar este post


Link para o post
Compartilhar em outros sites

tah naum... tah local mermo...pow, consegui aki com o FCK... mas a parte d upload d fotos naum tah dando certo... tah f***.. uahuahuhaua

Compartilhar este post


Link para o post
Compartilhar em outros sites

bom, como ainda naum coloquei configuração nenhuma de upload, naum tah cadastrando em BD, nem nada... to fazendo teste pradepois mandar ver... mas eu naum sei como q funciona esses esquemas do FCK de upload... sei q ele faz o upload de uma foto pra tal pasta... mas soh q ele naum tah fazendo isso... estranho... se eu colocar um endereço externo tipo http://www.site.com/imagem.jpg ele pega a imagem e depois qnd envio o form ele abre uma nova janela mostrando o codigo... agora soh preciso saber como q ele faz pra enviar imagens, onde ele cadastra os textos, onde vejo essas paradas... valew ae...

Compartilhar este post


Link para o post
Compartilhar em outros sites

outra coisa... eh possivel eu por exemplo mostrar somente parte do conteudo de um texto??? por exemplo, em uma matéria q tem 6 paragrafos, queria q nacapa soh mostra-se somente uma chamada da materia, um paragrafo soh, sei lah... tem como fazer isso???

Compartilhar este post


Link para o post
Compartilhar em outros sites

deu certo naum... como q seria... coloquei desse modo mas naum tah aparecendo a materia:

 

PHP

[*] for($t=1; $t <= mysql_affected_rows();$t++) {

[*] $row = mysql_fetch_array($rs);

[*] echo "{$row['nome']}<br />";

[*] substr("{$row['materia']}",0,88);

[*] }

 

tentei com echo, mas naum tava dando certo..

 

=============================================

 

consegui jah.. ;)

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.