Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
Дай ми точен код трябва ми само заGalli каза:Само такова за код или повече.
http://web-tourist.net/login/login/view.php?st=963
<script type="text/javascript" >
var c = 2;
function tag(v, tagadd, newbut, tagclose, oldbut, name) {
if (eval(v)%2 == 0) {
eval("window.document.editform."+name+".value = newbut;");
var post = window.document.editform.post.value;
window.document.editform.post.value = post + tagadd;
window.document.editform.post.focus();
} else {
eval("window.document.editform."+name+".value = oldbut;");
var post = window.document.editform.post.value;
window.document.editform.post.value = post + tagclose;
window.document.editform.post.focus();
}
eval(v+"++;");
}
</script>
<?php
function bbcode($text){
$text=preg_replace("/\[code\](.+?)\[\/code\]/s",'<table cellspacing="1" width="100%" border="0"><tr><td>Code:</td></tr><tr><td width="100%" style="border:solid 1px black">$1</td></tr></table>',$text);
$text = nl2br($text);
return $text;
}
$htmlcode = $_POST['post'];
if (!$htmlcode){
?>
<form action="bbcode_form.php" method="post" name="editform" onsubmit="return checkForm(this)">
<input type="button" class="button" value="code" name="code" onclick="javascript:tag('c', '[code]', 'code*', '
<script type="text/javascript" >
var c = 2;
function tag(v, tagadd, newbut, tagclose, oldbut, name) {
if (eval(v)%2 == 0) {
eval("window.document.editform."+name+".value = newbut;");
var post = window.document.editform.post.value;
window.document.editform.post.value = post + tagadd;
window.document.editform.post.focus();
} else {
eval("window.document.editform."+name+".value = oldbut;");
var post = window.document.editform.post.value;
window.document.editform.post.value = post + tagclose;
window.document.editform.post.focus();
}
eval(v+"++;");
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
<form action="" method="post" name="editform" onsubmit="return checkForm(this)">
<input type="button" class="button" value="code" name="code" onclick="javascript:tag('c', 'zaza', 'Цъкни ме :P', 'zaza', 'O6te vednuj :)', 'code');" />
<hr>
<textarea rows="10" cols="56" name="post" class="form_elements_text"></textarea>
<hr>
<input type="submit" name="Post" value="Пусни" class="button"/>
<input type="reset" value="Започни наново" class="button" onclick="javascript:confirm_reset();"/>
Да такова чудо ми трябва значи цялата раота е че ще си го направя после с javascript но само аз ще го използвам това чудо да е като цитат нали и в него ще си слагам кодове и примерно като цъкна на javascripta то ми пише тага който ако можеш ще направиш и аз в него си пиша там каквото ми трябва и после ще се indexira на 1 страница само тага ми остана :wink:hellfire каза:$text=preg_replace("/\[code\](.+?)\[\/code\]/s",'<table cellspacing="1" width="100%" border="0"><tr><td>Code:</td></tr><tr><td width="100%" style="border:solid 1px black">$1</td></tr></table>',$text);
за html не става само за php виж тук как е кажи какво точно ти трябва и може би (ако стане) ще го направя