BetaMaster
Member
باسلام
در دستور زير :
بخش زير :
تگي بصورت زير ايجاد مي گكند :
در رشته دستوري ذكر شده چكاري بايد انجام دهم كه تگ بدون كوتيشن (") ايجاد كند (يعني بصورت زير ) ومشكل كار از كجاست كه با كوتيشن تگ مي سازد ؟
با تشكر
در دستور زير :
PHP:
//Size
if (document.getElementById("qualityselect").value != ""){
txt = "";
txt += "[align=center][b]";
if (document.getElementById("msize").value != ""){
txt += "[color=\"" + document.getElementById("firstcolor").value + "\"]Size: [/color] [color=\"" + document.getElementById("secondcolor").value + "\"]";
txt += document.getElementById("msize").value;
txt += " ";
txt += document.getElementById("sizeselect").value;
txt += "[/color] | [color=\"" + document.getElementById("firstcolor").value + "\"]Quality:[/color] [color=\"" + document.getElementById("secondcolor").value + "\"]";
txt += document.getElementById("qualityselect").value;
}else{
txt += "[color=\"" + document.getElementById("firstcolor").value + "\"]Quality:[/color] [color=\"" + document.getElementById("secondcolor").value + "\"]";
txt += document.getElementById("qualityselect").value;
}
if(document.getElementById("year").value != ""){
txt += "[/color] | [color=\"" + document.getElementById("firstcolor").value + "\"]Year:[/color] [color=\"" + document.getElementById("secondcolor").value + "\"]";
txt += document.getElementById("year").value;
txt += "[/color][/b][/align]\n";
document.getElementById("gen").value += txt;
}else{
txt += "[/color][/b][/align]\n";
document.getElementById("gen").value += txt;
}
}
بخش زير :
PHP:
[color=\"" + document.getElementById("firstcolor").value + "\"]
تگي بصورت زير ايجاد مي گكند :
PHP:
[color="#0044FF"]
در رشته دستوري ذكر شده چكاري بايد انجام دهم كه تگ بدون كوتيشن (") ايجاد كند (يعني بصورت زير ) ومشكل كار از كجاست كه با كوتيشن تگ مي سازد ؟

PHP:
[color=#0044FF]
با تشكر