Jump to content

eek

Newbie
  • Posts

    7
  • Joined

  • Last visited

eek's Achievements

Explorer

Explorer (1/14)

0

Reputation

  1. Ещё раз спасибо за помощь с новой ошибкой
  2. Спасибо большое!!! Все хорошо, но.. когда просто заходить на страницу правила, оно почему то спускается на тот пункт. Как можно было бы сделать, чтобы при опускании на тот нужный пунут, подсвечивало каким то цветом на 4 - 6 секунд?
  3. Я не понимаю что и где они изменяют, у них там своя атмосфера
  4. Почему то не хочет анимироваться скролл страници, вот коды: <script type="text/javascript" src="js/jquery-1.8.3.min.js"></script> <script type="text/javascript" src="js/jquery.scrollTo-min.js"></script> <script type="text/javascript">*** $('#eek a').click(function(){*** var str=$(this).attr('href');*** $.scrollTo(str,500);*** return false;*** });*** </script> вот ссылка где прикреплён якорь: <h2 id="eek"><p>8.10 Запрещено использование игроков не заявленных на турнир за команду</p></a></h2> вот сайт, клацните на "(Важно! Смотрите пункт 8.10 в правилах)", там должно анимировано перенести на 8.10 пункт, но ничего не происходит
  5. а зачем ксс? это на js *{ font-family: tahoma, verdana, "sans-serif"; margin: 0; padding: 0; font-size: 95%; } body{ background: white; } a, a:hover{ text-decoration: none; color: #48f; } a:hover{ color: #33CCFF; } p{ font-size: 90%; margin-top: 1em; margin-bottom: 2em; color: #333; } h1 { color: #0099CC; font-size: 1.6em; } /* Form */ form { width: 400px; border: 1px solid #EEE; padding: 10px; margin: 40px auto; } label { display: block; margin-top : 8px; width: 100%; background-repeat: no-repeat; } .blue { color: #0099CC; font-weight: bold; } /* footer */ .dwnld { Display: block; padding: 10px; text-align: center; width: 400px; margin: 0 auto; border: 1px solid #EEE; background-color: white; color: #999; font-size: 1.4em; font-weight: bold; line-height: 50px; background: url(../images/download.gif) no-repeat 40px 10px; } /* footer */ .footer { Display: block; padding: 10px; margin: 40px auto; width: 400px; text-align: center; border: 1px solid #EEE; background-color: white; color: #999; } .footer p { color: #999; } /* Congratulation message */ .MsgSent { Display: block; padding: 10px; margin: 40px auto; width: 400px; text-align: center; border: 1px solid #EEE; background-color: white; } .MsgSent h1 { background: url(../images/MsgSent.gif) no-repeat 0 0; padding-left: 20px; height: 85px; line-height: 85px; } /* Error message */ .MsgError { Display: block; padding: 10px; margin: 40px auto; width: 400px; text-align: center; border: 1px solid #EEE; background-color: white; } .MsgError h1 { background: url(../images/MsgError.gif) no-repeat 0 0; padding-left: 20px; height: 85px; line-height: 85px; color: #CC0000; } .MsgSent p, .MsgError p { font-size: 1.3em; color:#999; } /***** FormCheck *****/ .tipsbox .tipsbox_top_left{ background : url('../images/top_left.png') no-repeat; _background : url('../images/top_left.gif') no-repeat; _background-position : 9px 8px; } .tipsbox .tipsbox_top{ background : url('../images/top.png') repeat-x; height : 17px; _background : url('../images/top.gif') repeat-x; _background-position : 0px 8px; } .tipsbox .tipsbox_top_right{ background : url('../images/top_right.png') no-repeat; _background : url('../images/top_right.gif') no-repeat; _background-position : 0px 8px; } .tipsbox .tipsbox_left{ background : url('../images/left.png') repeat-y; width : 17px; _background : url('../images/side.gif') repeat-y; _background-position : 9px 8px; } .tipsbox .tipsbox_right{ background : url('../images/right.png') repeat-y; width : 22px; _background : url('../images/side.gif') repeat-y; _width : 9px; } .tipsbox .tipsbox_bottom_left{ background : url('../images/bottom_left.png'); _background : url('../images/bottom_left.gif') no-repeat; _background-position : 9px 0px; } .tipsbox .tipsbox_mark{ background : url('../images/mark.png') no-repeat; height : 36px; _background : url('../images/mark.gif') no-repeat; } .tipsbox .tipsbox_bottom_right{ background : url('../images/bottom_right.png'); _background : url('../images/bottom_right.gif') no-repeat; } .tipsbox .tipsbox_inner, .tipsbox .tipsbox_inner_ie6{ background : url('../images/inner.png'); } .tipsbox .tipsbox_inner_ie6 { padding : 4px; } .tipsbox .tipsbox_error { background : url('../images/error.png') no-repeat; _background : url('../images/error.gif') no-repeat; width: 40px; height: 40px; margin-top: 5px; float: left; clear: left; } .tipsbox p, .tipsbox { font-size: 1em; font-family: tahoma, verdana, "sans-serif"; margin : 0; padding : 0; border : 0; color : #FFF; } .tipsbox p { padding-left: 55px; line-height: 15px; } .tipsbox p span { font-size: 1em; font-weight: bold; color: red; line-height: 35px; } .error_f { border : 1px dotted #666; margin-top : 5px; background-color : #EAEAEA; } .error_f p { margin : 5px; color : #A00; } .error_f p span { font-size : 1.1em; color : #000; margin : 5px 0px 0px 0px; } /***** Niceforms *****/ /*########################################## Name: Default styling for Niceforms v.1.0 Author: Lucian Slatineanu URL: http://www.badboy.ro/ ##########################################*/ /*General styles - NOT really related to the forms*/ * { margin:0; padding:0; } body { font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#404040; background:#fff; } img {border:0;} #container {padding:20px;} /*Forms defaults - change as needed*/ input, textarea { font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#404040; } label { color:#999; cursor:pointer; padding-left:2px; line-height:16px; } label.chosen {color:#333;} /*Transparent items*/ .outtaHere { position:absolute; left:-3000px; } /*Radio buttons*/ .radioArea, .radioAreaChecked { display:block; float:left; clear:left; width:15px; height:14px; font-size:0; cursor:pointer; } .radioArea {background:url(../images/radio.gif) no-repeat left top;} .radioAreaChecked {background:url(../images/radio.gif) no-repeat left bottom;} /*Checkboxes*/ .checkboxArea, .checkboxAreaChecked { display:block; float:left; clear:left; width:13px; height:13px; font-size:0; padding:0; margin:0; cursor:pointer; } .checkboxArea {background:url(../images/checkbox.gif) no-repeat left top;} .checkboxAreaChecked {background:url(../images/checkbox.gif) no-repeat left bottom;} .focused {border:1px dotted #ddd;} /*Text inputs*/ .textinput, .textinputHovered { height:15px; background:url(../images/input_bg.gif) repeat-x left top; border:none; padding:4px 0; vertical-align:middle; } .textinputHovered {background-position:left bottom;} .inputCorner { padding-bottom:0; vertical-align:middle; } /*Text areas*/ .txtarea .tr, .txtarea .tr_xon {background:url(../images/txtarea_tr.gif) no-repeat top right;} .txtarea .tr_xon {background:url(../images/txtarea_tr_xon.gif) no-repeat top right;} .txtarea img.txt_corner { width:5px; height:5px; display:block; } .txtarea .br, .txtarea .br_xon {background:url(../images/txtarea_br.gif) no-repeat top right;} .txtarea .br_xon {background:url(../images/txtarea_br_xon.gif) no-repeat top right;} .txtarea .cntr {background:url(../images/txtarea_cntr.gif) repeat-y right top;} .txtarea .cntr_xon {background:url(../images/txtarea_cntr_xon.gif) repeat-y right top;} .txtarea .cntr_l, .txtarea .cntr_l_xon { width:5px; background:url(../images/txtarea_l.gif) repeat-y left top; float:left; } .txtarea .cntr_l_xon {background:url(../images/txtarea_l_xon.gif) repeat-y left top;} .txtarea textarea { border:0; background:none; padding:0; margin:5px; } /*Selects*/ .selectArea { width:200px; height:21px; background:url(../images/select_bg.gif) repeat-x left top; } .selectArea .left { width:8px; height:21px; float:left; background:url(../images/select_left.gif) no-repeat left top; } .selectArea .right { width:21px; height:21px; float:right; background:url(../images/select_right.gif) no-repeat left top; } .selectArea .right a { display:block; width:200px; height:21px; margin-left:-179px; position:absolute; } .selectArea .right i {display:none;} .selectArea .center { width:160px; color:#FFF; padding-top:3px; overflow:hidden; white-space:nowrap; } /*Selects drop-down*/ .optionsDivInvisible, .optionsDivVisible { position:absolute; margin-top:-1px; margin-left:3px; width:172px; background:#6f7074; padding:2px; font-size:11px; z-index:20; } .optionsDivInvisible {display:none;} .optionsDivVisible {display:block;} .optionsDivVisible p { margin:0; padding:0; } .optionsDivVisible a { color:#F2F2F2; text-decoration:none; display:block; padding:1px 4px; border:1px solid #6f7074; } .optionsDivVisible a:hover { color:#FFF; background:#5F6062; border-color:#cfd0d6; } /*Button*/ .buttonsubmit, .buttonsubmitHovered { width:auto; height:26px; color:#FFF; font-weight:bold; padding:2px; background:url(../images/button_bg.gif) repeat-x left top; cursor:pointer; border:none; } .buttonsubmitHovered {background-position:left bottom;} .buttonImg {vertical-align:bottom;}
  6. Посмотрите, там где пункт: Вы оплатили взнос? Появляется ненужный текст. <?php //IMPORTANT!! //Put in your email address below: $to = 'email@11gallery.netai.net'; //User info (DO NOT EDIT!) $name = stripslashes($_POST['name']); //sender's name $email = stripslashes($_POST['email']); //sender's email $countries = stripslashes($_PIST['countries']); //The subject $subject = "РЕГИСТРАЦИЯ НА ТУРНИР "; //The default subject. Will appear by default in all messages. Change this if you want. $subject .= stripslashes($_POST['subject']); // the subject //The message you will receive in your mailbox //Each parts are commented to help you understand what it does exaclty. //YOU DON'T NEED TO EDIT IT BELOW BUT IF YOU DO, DO IT WITH CAUTION! $msg = "Название команды : $name \r\n"; //add sender's name to the message $msg .= "e-Mail : $email \r\n"; //add sender's email to the message $msg .= "Страна : $subject \r\n\n"; //add subject to the message (optional! It will be displayed in the header anyway) $msg .= "—Message— \r\n".stripslashes($_POST['message'])."\r\n\n"; //the message itself //Extras: User info (Optional!) //Delete this part if you don't need it //Display user information such as Ip address and browsers information... $msg .= "—User information— \r \n"; //Title $msg .= "User IP : ".$_SERVER["REMOTE_ADDR"]."\r\n"; //Sender's IP $msg .= "Browser info : ".$_SERVER["HTTP_USER_AGENT"]."\r\n"; //User agent $msg .= "User come from : ".$_SERVER["HTTP_REFERER"]; //Referrer // END Extras ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru" lang="ru"> <head> <title>Турнир по дисциплине cs 1.6</title> <link rel="shortcut icon" href="http://www.cyberforum.ru/images/favicon.ico"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="description" content="Ajax Contact form using CheckForm2 and NiceForms." /> <meta name="keywords" content="php, contact form, Ajax, mootools, checkform2, niceforms, Moo Floor, class, javascript, spamcheck, badboy.ro" /> <link rel="stylesheet" href="css/main.css" type="text/css" media="screen" /> <link rel="stylesheet" href="css/style_eek.css"> <script type="text/javascript" src="js/mootools.js"></script> <!-- jQuery and Modernizr--> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> <!-- Countdown timer and other animations --> <script src="js/jquery.countdown.js"></script> <script src="js/script.js"></script> <script src="js/script_1.js"></script> <!-- Formcheck2 / Moo.Floor.ch --> <!-- http://moo.floor.ch/?p=18 --> <!-- NiceForms / BadBoy.ro --> <!-- http://www.badboy.ro/articles/2005-07-23/niceforms_preview/ --> <script type="text/javascript" src="js/niceforms.js"></script> </style> <link rel="stylesheet" href="/css/validationEngine.jquery.css" type="text/css"/> <link rel="stylesheet" href="/css/template.css" type="text/css"/> <script src="../js/jquery-1.8.2.min.js" type="text/javascript"></script> <script src="../js/languages/jquery.validationEngine-en.js" type="text/javascript" charset="utf-8"></script> <script src="../js/jquery.validationEngine.js" type="text/javascript" charset="utf-8"></script> <script> jQuery(document).ready(function(){ // binds form submission and fields to the validation engine jQuery("#third").validationEngine(); }); /** * * @param {jqObject} the field where the validation applies * @param {Array[String]} validation rules for this field * @param {int} rule index * @param {Map} form options * @return an error string if validation failed */ function checkHELLO(field, rules, i, options){ if (field.val() != "HELLO") { // this allows to use i18 for the error msgs return options.allrules.validate2fields.alertText; } } </script> </head> <body> <!-- The contact form starts here--> <?php if ($_SERVER['REQUEST_METHOD'] != 'POST'){ $self = $_SERVER['PHP_SELF']; ?> <!-- Start HTML form --> <form name="form" method="post" id="third" action="<?php echo $self;?>" class="niceform"> <center><h1>РЕГИСТРАЦИЯ НА ЗИМНИЙ ТУРНИР ПО ДИСЦИПЛИНЕ CS 1.6</h1></center> <!-- Name --> <label for="name"><strong><span class="blue">*</span> Название команды : </strong></label> <input value="" data-validation-engine="validate[required]" id="name" name="name" type="text" class="validate['required','length[3,-1]','nodigit']" size="20" type="text"/> <!-- Email --> <label for="email"><strong><span class="blue">*</span> Email : </strong></label> <input value="" data-validation-engine="validate[required,custom[email]]" id="email" name="email" size="20" type="text"/> <!-- Subject --> <label for="subject"><strong><span class="blue">*</span> Страна / Город где проживаете : </strong></label> <input value="" data-validation-engine="validate[required]" id="subject" name="subject" type="text" class="validate['required']" size="20" /type="text" /> <!-- Website --> <label for="site"><strong><span class="blue">*</span> Оплата Webmoney U2312314122:</strong> <a href="http://arbitrage.webmoney.ru/asp/claims.asp?wmid=295369246845">(информация об аккаунте webmoney)</a> </label> <!-- Message --> <label for="msg"><strong><span class="blue">*</span> Вы оплатили взнос? : </strong></label><br /> <textarea id="message" name="message" type="text" value="" data-validation-engine="validate[required]" rows="10" cols="30" /></textarea> <!-- Spam Check --> <label for="spamcheck"><span class="blue">*</span> <acronym title="[ Spam prevention ]"><strong>Вы робот?</acronym> : <span class="blue">2 + 3 = ???</span></strong></label> <input value="" data-validation-engine="validate[required]" id="spamcheck" name="spamcheck" type="text" size="5" /> <!-- Spam Check --> <label for="Agree">С правилами согласен (*)<em></em></label> <input value="" data-validation-engine="validate[required]" class="cb" id="Agree" name="Agree" class="validate['required']" type="checkbox" type="text"/><br /><br /> <input type="submit" class="buttonsubmit" value="Отправить!" /> <!-- Niceforms: mouse over effect --> <!-- Do not remove the line below --> <div id="stylesheetTest"></div> </form> <div class="social-media-arrow"></div> <footer> <ul> <center><span class="blue">*</span>Свяжитесь с главным администратором <a class="skype" href="skype:ilyha1996?add"></a></center> </ul> </footer> </div> <?php } else { error_reporting(0); if (mail($to, $subject, $msg, "Content-Type:text/plain; Charset=utf-8\r\nFrom: $email\r\nReply-To: $email\r\nReturn-Path: $email\r\n")) //Message sent! //It the message that will be displayed when the user click the sumbit button //You can modify the text if you want echo nl2br(" <div class=\"MsgSent\"> <h1>Успех!</h1> <p>Ваша команда <b><?=$name;?></b>, будет рассмотрена!<br />.</p> </div> "); else // Display error message if the message failed to send echo " <div class=\"MsgError\"> <h1>Error!!</h1> <p>Sorry <b><?=$name;?></b>, your message failed to send. Try later!</p> </div>"; } ?> </body> </html>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy