Jump to content

tnd1000

Members
  • Posts

    54
  • Joined

  • Last visited

Everything posted by tnd1000

  1. I'm sorry, I obviously misunderstood the matter of the image sprites, as I did read that tutorial. I thought that since I was using JavaScript to operate the buttons, that jQuery would be the best way to go (I didn't want to inadvertently use a bad coding practice or something...). Honestly, I'm thankful that it wasn't. Thank you for your time, and for setting the record straight.
  2. Um....seriously? Go for it, dude..... *Walks away shaking head*
  3. Hey there. I've been reading up on this in the various tutorials, but I don't really know if I'm going about it the right way, so I guess I'm going to be asking yet another question... I made some playback buttons for my site's slideshow (which Don E. was kind enough to make, seen here: http://w3schools.inv...=0), and I would like to add a hover effect to them. I have another set of button-images to be used for the hover effect, so that the buttons would go from red (normal) to green (moused-over). The jQuery "mouseenter" function seems like it would do what I'm looking for, I just don't really know how to deal with images. This is the section of javascript that operates the buttons: function slide(){imgSlide.src = images[pic].src;if(pic < 1) // images.length - 1 can be used here{pic++;}else{pic = 0 }timer = setTimeout(slide, 5000);} function prev(){if(timer)stopSlide(); if(pic == 0){ pic = 1; imgSlide.src = images[pic].src;}else{pic--;imgSlide.src = images[pic].src;}} function next(){if(timer)stopSlide(); if(pic == 1){ pic = 0;imgSlide.src = images[pic].src;}else{pic++;imgSlide.src = images[pic].src;} } function stopSlide(){clearTimeout(timer);} The buttons themselves in the <body> tag (I shortened the URLs so that my site's name wouldn't show): <a href="JavaScript:stopSlide()" title="Stop"><img src="stop.png"></a> <a href="JavaScript:prev()" title="Previous"><img src="back.png"></a> <a href="JavaScript:slide()" title="Start"><img src="play.png"></a> <a href="JavaScript:next()" title="Next"><img src="next.png"></a> If anyone could point me in the right direction of how to do this, I'd really appreciate it.
  4. Man, you are awesome. I didn't expect you to actually build the thing, but thank you very much! I'll give it a try. -EDIT- It works great, and it's actually just what my client was looking for! I'll do a bit of tweaking and integration, and it'll be perfect. Can't quite thank you enough for your help.
  5. Hey there! I'm looking to build a slideshow for my site, and I was wondering what would be the best way to go about it. All I really need are the basic buttons (start, stop, forward, backward) and the capability to cycle through a LOT of pictures. Any advice would be greatly appreciated!
  6. Hey there. Since I don't know how much experience you have with CSS, I'll try to stick with the basics. If you need some help getting started with CSS in general, this is the start of the tutorial: http://www.w3schools.../css_intro.asp. I would also strongly suggest checking out CSS3 (http://www.w3schools...ss3/default.asp), as several of the practices have been updated. For the background color, I'd recommend something like this in your stylesheet: body {background-color: grey;} You might try these pages for choosing the color best suited for your needs: http://www.w3schools..._colornames.asp & http://w3schools.com...rhex=%23330033. The first is good for finding the color of your choice, and the second helps you choose a shade. (Remember that you can use either the color name or the hexadecimal value, i.e. #00000, in the stylesheet) W3Schools also has a tutorial on placing different elements in front of each other: http://www.w3schools...positioning.asp Tutorial for making a drop-shadow: http://www.w3schools..._box-shadow.asp As for the upper and bottom background images, I would suggest using divs (http://www.w3schools...ags/tag_div.asp). For example: <div id="top_background">[content goes here]</div> In fact, it would probably be a good idea to use divs for all of your main sections/areas of content. Just remember to give your div a unique id if you plan on applying specific styles to it, so that you can refer to it in your stylesheet, i.e #top_background {style;}. Hope this helped. If you have any more questions, don't hesitate to ask.
  7. Thank you very much for your help with the contact form!

  8. Ahh, thank you very much. I think it's actually starting to function correctly now. And I'm using SocialEngine software. The way it's set up, there are a lot of files in my public_html directory. Just wanted to make sure I was supposed to actually create the file before I went around adding things to their setup. EDIT Please excuse me for shouting, but...IT WORKED!!! Many thanks to all three of you for basically walking me through this (I'm not used to things working properly, especially when I'm involved).
  9. So you want the overflow:auto style to only apply to the <tr> ? I would suggest putting a style-sheet in your header, and assigning the <tr> style as follows: tr {overflow:auto;}
  10. @Don: Okay, thanks. I'll definitely try changing those to $_POST. And yes, I'm using a working email address that I created through my hosting company's control panel. @scientist: Ahh, I see. Yeah, that's generally a good way to go about it. Thank you for clarifying. @Gallery: Yep, I took out the MAILTO function, but I did want to clarify something: I'll have to first create the .php file that I call to in the 'action' spot, right? The only reason why I ask instead of just doing it, is because the software I'm using is iffy, and their customer support team won't help me if I mess up the software. I'll definitely do some testing to see where all I went wrong with this thing.
  11. The submit button still does nothing when I click on it. I may need to do some work on the site itself to incorporate the form into the software. Apologies. I have not debugged any of it yet, as I am only able to work with the program Notepad. I'm unable to download any programs with my current internet connection (dial-up), so I'll see if I can find an online debugger. I'll work with it until I figure something out. Thank you both for your help.
  12. It's still not working, for some reason.
  13. <?phpfunction spamcheck($field) { //filter_var() sanitizes the e-mail //address using FILTER_SANITIZE_EMAIL $field=filter_var($field, FILTER_SANITIZE_EMAIL); //filter_var() validates the e-mail //address using FILTER_VALIDATE_EMAIL if(filter_var($field, FILTER_VALIDATE_EMAIL)) { return TRUE; } else { return FALSE; } }if (isset($_REQUEST['email'])) {//if "email" is filled out, proceed //check if the email address is invalid $mailcheck = spamcheck($_REQUEST['email']); if ($mailcheck==FALSE) { echo "Invalid input"; } else {//send email $email = $_REQUEST['email'] ; $eventname = $_REQUEST['eventname'] ; $startdate = $_REQUEST['startdate'] ; $enddate = $_REQUEST['enddate'] ; $location = $_REQUEST['location'] ; $details = $_REQUEST['details'] ; mail("someone@example.com", "Event Name: $eventname", $details, "From: $email" ); echo "Thank you for submitting your event"; } }else {//if "email" is not filled out, display the form echo "<form method='post' action='mailform.php'> Email: <input name='email' type='text' /><br /> Event Name: <input name='eventname' type='text' /><br /> Start Date: <input name='startdate' type='text' /><br /> End Date: <input name='enddate' type='text' /><br /> Location: <input name='location' type='text' /><br /> Details:<br /> <textarea name='details' rows='15' cols='40'> </textarea><br /> <input type='submit' /> </form>";}?> Is there something I'm still doing wrong here? My button does nothing at all, and for some reason all of the symbols after </form> are rejected from the code and show up on the site as characters.
  14. Ah, thank you very much! I was afraid that I might be going about it in a haphazard way.
  15. Hey there. I'm trying to build a contact form from scratch (using the W3Schools tutorials pretty heavily), but I'm having some issues. First off, I'd like to write in a bit of code that grabs the username of the person submitting the form, and sends it along with the other submitted information. Also, if the person isn't signed in, they won't be able to use the form. I'm sure this will involve some PHP, which I will be more than happy to do, if someone could perhaps point me in the right direction? <div id="events"><form name="event-submit" action="MAILTO:someone@example.com" method="post" enctype="text/plain">Event Name:<br /> <input type="text" name="eventname" /><br />Start Date:<br /> <input type="text" name="startdate" /><br />End Date:<br /> <input type="text" name="enddate" /><br />Location:<br /> <input type="text" name="location" /><br />Description:<br /> <input type="text" name="description" size="50" /><br /><input type="submit" value="Submit" /></form></div> (And yes, I do have my actual email address for the MAILTO property, I just omitted it for this post.) My main problem right now is, the submit button isn't working. Buttons and I do not get along, it seems...Any suggestions as to what I'm doing wrong would be greatly appreciated. EDIT Okay, I apparently left off a rather important caret. The button is working just fine now, but is there any way to make the email not go through Outlook, and go directly to the email address?
  16. Hello, and welcome to the forums!

  17. Hey, folks. Another newb here (oh, the horror!). I'm relatively new to coding, and have taken a sink-or-swim approach to it...needless to say, I spend a lot of time swearing and gesturing violently at the computer screen. But this place has been a great help--where other support forums have failed, you guys actually step up and assist. Can't tell you how great it was to have my first question answered within half an hour, and with a lot more than just "you can't do that." I hope that soon I'll be at a point where I can effectively help others with their questions, as well...
  18. I love this site.

×
×
  • Create New...