Jump to content

kuran

Members
  • Posts

    51
  • Joined

  • Last visited

Everything posted by kuran

  1. Thank you, how do I make the line disappear the same time that the text appears?I'll have to do the inverse since I'm using a white background and black text.
  2. Hi, I'm trying to do something that seems simple, but I just can't get it to work. I have a list of links being displayed, and I want each link to be a solid, black horizontal line until a mouseover event reveals the text 'underneath'. What is the best way to do this besides using images? <ul><li><a href="#">LinkA</a></li><li><a href="#">LinkB</a></li><li><a href="#">LinkC</a></li></ul> Thanks for any help!
  3. Apologies for the cryptic topic title, I wasn't quite sure if there was any place on this forum to discuss Wordpress, or where.. I am starting to develop a website with reasonably simple, but dynamic functionality, and I would like to know if going for Wordpress is the right idea. I have worked with Wordpress before, but that concerned styling within the relative safe format of a 'standard' wordpress layout.I'm also relatively fluent in CSS and HTML. I have included a diagram of what I am going for, and I think that explains it best. Basically I want something close to your average 'online store' layout, where each new wordpress 'post' is displayed as a small square image preview. Once clicked that preview will lead to a different page showing the rest of the information contained in that post. (It won't be a real store as there will be no checkout process.) Is Wordpress right for this concept? How would I make it interpret my post data in this way? It would be great if someone could push me in the right direction.. thank you in advance.
  4. Please delete.
  5. Thank you Ingolme, I've wormed my way to the solution using your great advice.Using span to add 'nieuw' to the <li> element works out, however I can't seem to force the word 'nieuw' to appear on the same line as the <li> element. Right now it jumps to the second line, appearing below the <li> element..
  6. Please see the attached picture to see what I want to achieve.Right now I have the horizontal lines embedded as a .jpg image between each <li> element in the html. Is there a way to use CSS so it places these images in the same way? I would prefer to keep using bitmaps so the effect is as standardized as possible, if that makes sense. Also, is it possible to attach the 'nieuw' element in a clean CSS way to the final element in the list? I want it to be positioned so it matches the end of each line... right now I am doing it in a messy way with absolute positioning and its own separate div.Thanks for any help!
  7. They seem to have put their scripts into a seperate javascript.js file, I did not know that was possible... it's a good tip to keep your code clean!
  8. Thank you all for the elaborate replies.One more question, I found this list of possible hide/show effects: http://www.w3schools.com/jquery/jquery_effects.aspIs one of these the affect that this site? http://www.scribbletone.com/ (once you click on a project, a grey bar appears allowing you to switch between types of content.. ) I was wondering how they could get the animation to be so smooth.
  9. http://www.scribbletone.com/I tried to analyze the source, but as usual that is pretty hard to do if you do not know specifically what you are looking for.. I would like to learn how the system works where you can call specific div id's into being visible, whilst hiding others.And how hard is it to implement the jquery 'easing' effect into this, the way this site has done?Thanks for any help!
  10. Thank you chokk, and everyone else! I have learned a lot from this thread.
  11. Thank you, that makes sense. How would I go about changing my verify.php?
  12. Ah, I have modified the closing brackets, and now I get a different error. (Closer to the truth?) So the recaptcha code is preventing the regular checks from being executed...<?php require_once('recaptchalib.php'); $privatekey = "xxxxxxxxxxxxxxxxxxxx"; $resp = recaptcha_check_answer ($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); if (!$resp->is_valid) { // What happens when the CAPTCHA was entered incorrectly die ("The reCAPTCHA wasn't entered correctly. Go back and try it again." . "(reCAPTCHA said: " . $resp->error . ")"); } else { // Your code here to handle a successful verification /* Set e-mail recipient */$myemail = "info@test.com";/* Check all form inputs using check_input function */$fullname = check_input($_POST['fullname'], "Please enter your name.");$tel = check_input($_POST['tel']);$email = check_input($_POST['email']);$comments = check_input($_POST['comments'], "Please write your comments.");/* If e-mail is not valid show error message */if (!preg_match("/([\w\-]+\@[\w\-]+\.[\w\-]+)/", $email)){ show_error("It seems your E-mail address is not valid.");}/* Let's prepare the message for the e-mail */$message = "Hello!Your contact form has been submitted by:Name: $fullnameE-mail: $emailTel: $telComments:$commentsEnd of message";/* Send the message using mail() function */mail($myemail, $subject, $message);/* Redirect visitor to the thank you page */header('Location: thanks.php');exit();/* Functions we used */function check_input($data, $problem=''){ $data = trim($data); $data = stripslashes($data); $data = htmlspecialchars($data); if ($problem && strlen($data) == 0) { show_error($problem); } return $data;}function show_error($myError){?> <?php echo $myError; ?><?phpexit();} } ?>
  13. Hi Chokk, that is exactly where it is going wrong, let me show you the code and the subsequent error message on the bottom of this email.In my version I included the private and public keys, I should have been clear about that in my initial post.This is one of the errors I get, line 181 is the final line in the verify.php document.. so I am doing something wrong with just pasting my code in. Here is how it looks if I paste my existing verify.php contents into the reCaptcha line:<?php require_once('recaptchalib.php'); $privatekey = "xxxxxxxxxxxxxxxxxxxxxxx"; $resp = recaptcha_check_answer ($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); if (!$resp->is_valid) { // What happens when the CAPTCHA was entered incorrectly die ("The reCAPTCHA wasn't entered correctly. Go back and try it again." . "(reCAPTCHA said: " . $resp->error . ")"); } else { /* Set e-mail recipient */$myemail = "info@test.com";/* Check all form inputs using check_input function */$fullname = check_input($_POST['fullname'], "Please enter your name.");$tel = check_input($_POST['tel']);$email = check_input($_POST['email']);$comments = check_input($_POST['comments'], "Please write your comments.");/* If e-mail is not valid show error message */if (!preg_match("/([\w\-]+\@[\w\-]+\.[\w\-]+)/", $email)){ show_error("It seems your E-mail address is not valid.");}/* Let's prepare the message for the e-mail */$message = "Hello!Your contact form has been submitted by:Name: $fullnameE-mail: $emailTel: $telComments:$commentsEnd of message";/* Send the message using mail() function */mail($myemail, $subject, $message);/* Redirect visitor to the thank you page */header('Location: thanks.php');exit();/* Functions we used */function check_input($data, $problem=''){ $data = trim($data); $data = stripslashes($data); $data = htmlspecialchars($data); if ($problem && strlen($data) == 0) { show_error($problem); } return $data;}function show_error($myError){?> <?php echo $myError; ?><?phpexit();}?> Thanks for any help!
  14. I have been following these instructions: http://code.google.com/apis/recaptcha/docs/php.htmlI currently have this form on my website: <form action="verify.php" method="post"><fieldset class="two-col"> <p class="left"> <br/>Full name<span class="required"> *</span><br/> <input type="text" name="fullname" class="texta"/> <br/>Telephone number<br/><input type="text" name="tel" class="texta"/><br/><br/>Your message<span class="required"> *</span><br/><br/><textarea name="comments" rows="8" cols="1" class="textb"></textarea></p> <p class="right"> <br/>Email address<span class="required"> *</span><br/><br/> <input type="text" name="email" class="texta"/></p> <?php require_once('recaptchalib.php'); $publickey = "xxxxxxxxxxxxxxxxxxxxxxxx"; // you got this from the signup page echo recaptcha_get_html($publickey); ?></fieldset> <div class="submitbutton1"><br/><input value="Submit" type="image" src="images/submitbutton.png" width="102" height="43" ></p><br/><span class="required">*</span> indicates a required field.<br/>All Requests for quotations are confidential.</form> I have already implemented the reCaptcha information on this page.This form 'posts' in verify.php, and that is where I fail to include the required reCaptcha code. I just can't seem to integrate it. This is verify.php without the reCaptcha code: <?php/* Set e-mail recipient */$myemail = "xxxxxxxxxxxxx";/* Check all form inputs using check_input function */$fullname = check_input($_POST['fullname'], "Please enter your name.");$tel = check_input($_POST['tel']);$email = check_input($_POST['email']);$comments = check_input($_POST['comments'], "Please write your comments.");/* If e-mail is not valid show error message */if (!preg_match("/([\w\-]+\@[\w\-]+\.[\w\-]+)/", $email)){ show_error("It seems your E-mail address is not valid.");}/* Let's prepare the message for the e-mail */$message = "Hello!Your contact form has been submitted by:Name: $fullnameE-mail: $emailTel: $telComments:$commentsEnd of message";/* Send the message using mail() function */mail($myemail, $subject, $message);/* Redirect visitor to the thank you page */header('Location: thanks.php');exit();/* Functions we used */function check_input($data, $problem=''){ $data = trim($data); $data = stripslashes($data); $data = htmlspecialchars($data); if ($problem && strlen($data) == 0) { show_error($problem); } return $data;}function show_error($myError){?> <?php echo $myError; ?><?phpexit();}?> This is the bit of code that I need to splice into my content.php file: The guide tells me that 'The following code should be placed at the top of the verify.php file:', however in the case of my mail form it does not seem to be that simple. Unfortunately the reCaptcha website does not have a lot of documentation.. I hope someone would be nice enough to help me. Thanks in advance! <?php require_once('recaptchalib.php'); $privatekey = "your_private_key"; $resp = recaptcha_check_answer ($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); if (!$resp->is_valid) { // What happens when the CAPTCHA was entered incorrectly die ("The reCAPTCHA wasn't entered correctly. Go back and try it again." . "(reCAPTCHA said: " . $resp->error . ")"); } else { // Your code here to handle a successful verification } ?>
  15. I am working on a mostly static website for myself (html and some .php for web and contact forms), and i would like to have only one section of the website to rely on a CMS.Basically it should be a page where I can easily add both text and images, and nothing more.Would Wordpress be the best choice for this? Or can this also be done with Drupal? In the future I would like to get more familiar with a particular CMS system, but for now I just need a temporary 'quick fix' solution.
  16. http://www.threelittletrees.com.au/summer10/I am wondering how to get a result as the link above.I have a PDF published in Indesign, and Adobe Indesign exports a .swf in a similar fashion, except that it does not have any of the zoom/next page/print buttons. I am certain that the aforementioned url was auto-published from somewhere.. if anyone can tell me from where.. (Perhaps this is an export option in the current Flash app?)Also, what is the code to have a .swf auto-scale to the page width? Thank you for your help!PS. Preferrably I would like to use anything but Flash.. are there javascript/html5 'apps' that I can use to get roughly the same result?
  17. Every time I ask a question here, I learn so much. What an amazing community.
  18. Thank you everyone, for some reason the first suggestion did not give me any results.Although this code, input[type=image]{border:none;}, works perfectly.
  19. Apologies for the weird title, I tried to be as descriptive as possible.I made a simple web form, and for layout purposes I decided to have a 2px border around the input forms. The problem is that I want to use an image as my button graphic, and it automatically places a border around this image! Even if I specify 'border: 0' in the bolded part of the code.Here is what goes in the html: <div id="form"><form action="contact.php" method="post"><div class="columnleftform">Name<br> <input type="text" name="yourname" /> <br><br>E-mail<br> <input type="text" name="email" /><br><br>Subject<br> <input type="text" name="subject" /><br /></p></div><div class="columnrightform">Message<br /><textarea name="comments" rows="12" cols="70"></textarea></p><p>[b]<input value="Submit" type="image" src="images/submitbutton.png" width="104" height="46" >[/b]</p></div> This is the CSS associated: input {background-color: #F4EFE8;border: 2px solid #E2DCD7;font-family: georgia;font-size: 18px;color: #555555;}textarea {background-color: #F4EFE8;border: 2px solid #E2DCD7;font-family: georgia;font-size: 18px;color: #555555;} How do I fix this?Thanks for any help! If you need more information, or a link to the website, I will upload the current version.
  20. I am looking to see if there is a way to display PDF books in a nice way.Something like this, except not in Flash: http://www.threelittletrees.com.au/winter10/I am sure is it possible.. but are there available tools such as mootools that make it relatively easy?Thanks for any help!
  21. My girlfriend would like to have a mailing list, and on her site she would like to have a page where people can subscribe to it.Is there a way where I can have something really simple, where people leave their name, email and click submit? All I want that form to do is to send an automatic email to ourmailinglist@ourwebsite.com, so we can add it manually.I tried using a standard email form, but when you click submit it always takes you to your own email client and makes you send the message manually.. is there a way to hide this final step so the message is sent automatically when someone clicks on submit?Thanks for any help!
  22. Thank you for that! I managed to get everything working as I intended.One final question, is there ever a point where I should be worried that too many javascripts will bog down my site?Does it matter if there is only one script activated at a single time, on a single .html? I made it so that all of my content loads in a single .html page, using hidden divs that are shown by clicking on the interface.. but doing it this way, each div has a script associated to it..It seems a bit inefficient really, and my fear is that as the content grows, the site also becomes slower...
×
×
  • Create New...