Файл: www/effect_text.php
Строк: 34
<?php
include_once"db_con.php";
echo'Пример Вашего текста <br />';
echo'<span class="ef1" onClick="effect_text(1)" style="cursor: pointer;">текст</span> ';
echo'<span class="ef2_p" onClick="effect_text(2)" style="cursor: pointer;">текст</span> ';
echo'<span class="ef3" onClick="effect_text(3)" style="cursor: pointer;">текст</span> ';
echo'<span class="ef4" onClick="effect_text(4)" style="cursor: pointer;">текст</span> ';
echo'<hr />';
echo'<script src="/JS/effect_nick/eff2_p.js"></script>';
?>
<script type="text/javascript" src="/JS/effect_text/colorpicker.min.js"></script>
Фон чата <br />
<style type="text/css">
#picker { width: 200px; height: 200px;}
#slide { width: 30px; height: 200px; position: relative; top: -200px; left: 200px;}
.p_col {height: 200px;}
</style>
<div class="p_col">
<div id="picker"></div>
<div id="slide"></div>
</div>
<script type="text/javascript">
ColorPicker(
document.getElementById('slide'),
document.getElementById('picker'),
function(hex, hsv, rgb) {
document.body.style.backgroundColor = hex;
});
</script>
<?php
/*Если поступил запрос на смену ника*/
if((int)$_POST['eff_id'])
{
mysql_query ("UPDATE `users` SET `text_eff`='".(int)$_POST['eff_id']."' WHERE `id`='".(int)$_SESSION['id']."'");
}
?>