[newpage=home] ------------------------------------------------------------------------- help with html coding [frame=1] --------------------------------------------------------------------------- $ var colcode="blue"; var coltext="grey"; var colopt="green"; var coloptwb="purple"; $ function ShowCode(t) { $ t=replace("<","<",replace(">",">",t)); $ t=replace("#B","",t); t=replace("#/B","",t); $ t=replace("#I","",t); t=replace("#/I","",t); $ t=replace("<br>","
",t); $ t=replace("#C","",t); $ t=replace("#W","",t); $ t=replace("#O","",t); $ t=replace("#T","",t); $ t=replace("#N","",t); $ t=replace("#E","",t); $ t=replace("#[","",t); $ t=replace("#]","",t); $ t=replace("#align_code1", "left to align text to the left
center to center the text
right to align text to the right
justify to justify the text",10,20)+">[align code]
",t); $ t=replace("#align_code2", "left to align text to the left
center to center the text
right to align text to the right",10,20)+">[align code]
",t); $ t=replace("#valign_code", "top, middle or bottom",10,20)+">[align code]",t); $ t=replace("#width", "[width]",t); $ t=replace("#height", "[height]",t); $ t=replace("#padding", "[inside margin]",t); $ t=replace("#margin", "[outside margin]",t); $ t=replace("#border", "[thickness]",t); $ t=replace("#line_style", "solid, dashed, dotted, double, groove, ridge, inset or outset
Adding -left, -right, -top or -bottom after border will apply style only to the specified border",10,20)+">[line style]
",t); $ t=replace("#radius", "[radius]",t); $ t=replace("#color", "[color]",t); $ t=replace("#filetype", "pdf for PDF files, img for images or url for links",10,20)+">[file type]",t); $ t=replace("#language", "FR for french, UK for english or SP for spanish",10,20)+">[language]",t); $ return ""+t+""; $ } $ function FormatLine(t1,t2,t3,t4) { $ if (t1=="") { var addt1=""; } else { var addt1=":"; } $ document.write(""+t1+""+addt1+""+ShowCode(t2)+""+ShowCode(t3)+"

"); $ document.write(t4+"

"); $ } $ var exemple="";

Help with coding


Color codes: $ document.write(' '+ShowCode('#C'+colcode+'#N for code   #O'+colopt+'#N for parameters   #W'+coloptwb+'#N for options (details when mouse over)   '));
$ FormatLine("Special characters","#C&#171;#T = «    #C&#187;#T = »","",""); $ FormatLine("Text styles","#C#Tyour text#C#N for bold, #C#Tyour text#C#N for italics, #C

#Tyour text#C

#N for titles (style defined in configuration option), #C

#Tyour text#C

#N for subtitles (style defined in configuration option)","",""); $ FormatLine("Align the text","#C
#Tyour text#C
#N","",""); $ FormatLine("Paragraph position","#C
", "",""); $ FormatLine("Inserting an image","#C", "",""); $ exemple="
1.11.21.3
2.1 & 2.22.3&3.3
3.13.2
"; $ FormatLine("Creating table","#C#[#]#N(repeat)#C#N(...)#C
#Tfirst cell of row 1#C#Ta cell of the line#C
#Tfirst cell of row 2#C
","#C#N will extend the cell over x columns
#C#N will extend the cell over y lines
Exemple: #E"+exemple,exemple); $ FormatLine("Functions","","",""); $ exemple="[$iconlink(contenu/docs/doc.pdf,my doc,doc1,pdf,20)"; var seeex=iconlink ('contenu/image.jpg','my image','img1','img',20); $ FormatLine("","#B$iconlink#/B: write a link to a document with an icon indicating the type of file
#C[$iconlink(#O[document url]#C,#O[text displayed]#C,#O[unique id]#C,#filetype,#O[icons size (in px)]#C]", "Exemple: #E"+exemple,seeex); $ exemple="[$iconflaglink(contenu/docs/doc.pdf,my doc,doc2,pdf,20,UK)"; var seeex=iconflaglink ('contenu/docs/doc.pdf','my doc','doc2','pdf',20,'UK'); $ FormatLine("","#B$iconflaglink#/B: write a link to a document with an icon indicating the type of file a flag indicating the language
#C[$iconflaglink(#O[document url]#C,#O[text displayed]#C,#O[unique id]#C,#filetype,#O[icons size (in px)]#C,#language]", "Exemple: #E"+exemple,seeex);


$ center_page_end();