Jump to content


  • Posts

  • Joined

  • Last visited

SuperPaperSam's Achievements


Newbie (1/7)



  1. Yes. It was great. But I have totally redone my site and I have added some pretty cool effects. I did try changing the cookie to make it work with this one but I had no success I get confused when I get to the part when I want the sliders state to be the same. I don't know how to tell the difference between it hidden and visible.Are there any tutorials that you could point me to? I have read some but none cover how to use it with a slider.THANKS!
  2. Bellow I have some code that I use to move a table up and down. Then I have a div that hides the overflow so it looks like the table is partially gone. I wan't it to be displayed on every page if the user has already chozen to display it. I also want it to stay in the down state (partially hidden) if the lowered it on the previous page.I was hoping someone could show me a way to do this with a cookie.Ask me to clarify if this makes no since. Thanks. <!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"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Untitled Document</title><script src="jquery-1.2.6.min.js" type="text/javascript"></script><style type="text/css">#chatBoxHider { display:none; overflow: hidden; height: 300px; width: 230px; }#chatBox { width:230px; height:300px; }#chatHeader { height:10px; }#chatBoxContent { color: #333333; }</style><script type="text/javascript"> jQuery.fn.blindToggle = function(speed, easing, callback) { var h = this.height() + parseInt(this.css('paddingTop')) + parseInt(this.css('paddingBottom')); return this.animate({marginTop: parseInt(this.css('marginTop')) >0 ? 0 : +270 }, speed, easing, callback); }; $(document).ready(function() { var $box = $('#chatBox') $('#blind').click(function() { $box.blindToggle('slow'); }); });</script><script language="javascript"> function toggle() { var ele = document.getElementById("chatBoxHider"); var text = document.getElementById("displayChat"); if(ele.style.display == "block") { ele.style.display = "none"; } else { ele.style.display = "block"; }} </script></head><body><a id="displayChat" href="java script:toggle();">Togal</a><div id="chatBoxHider"> <table id="chatBox" cellpadding="0" cellspacing="0"> <tr> <td id="chatHeader">blaaaaaaaah <a id="blind"> blind </a> blah</td> </tr> <tr> <td id="chatBoxContent">bllllllahhhhhhhhhhhbbbbbbbbllah!</td> </tr> </table></div></body></html>
  3. I just tryed that and it's still not working.I'm pretty sure it has to deal with this line... <embed src="file()" width="width()" height="height()" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash"></embed> Can I insert the functions like this? src="file()" width="width()" height="height()" Any help would be very nice ;]
  4. I give you an A for effort :)I think I need to put "file(+file)"But that's not working :*(
  5. It should play the flash file that was selected but for some reason it's not working. :)Please tell me how to fix it (or at least point out the problem) :] <html> <head> <script type="text/javascript"> function file() { var file = document.getElementById("file").value; } function width() { var width = document.getElementById("width").value; } function height() { var height = document.getElementById("height").value; } </script> </head> <body> <form method="post" name="flashplayer"> <label>Flash Content: <input type="file" name="file" id="file"> </label><br><br> <label>Width: <input name="width" type="text" id="width" value="800"> </label><br><br> <label>Height: <input name="height" type="text" id="height" value="500"> </label><br><br> <input type="button" name="sender" value="Play Flash Content" onclick="file();width();height();"/> </form> <embed src="file()" width="width()" height="height()" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash"></embed> </body></html> Thanks a MILLION!
  6. You have a PHP File in your folder "jakem" its called "contact.php" Copy and Paste it in a new post.From what I looked at on http://livetest.200u.com/jakem/home.htm It looks as if you forgot to add id's to each field so your PHP is prob. trying to collect data from fields that aren't there...Your Code: <form action="contact.php" method="post" name="ContactForm" style="font-size:10pt"><table><tbody><tr><td>Name:<br><input size="30" name="name" type="text"></td><td>City:<br><input size="30" name="city" type="text"></td></tr><tr><td>Phone:<br><input size="30" name="phone" type="text"></td><td>Email:<br><input size="30" name="email" type="text"></td></tr><tr><td colspan="2">Comments:<br><textarea name="comments" rows="4" cols="62"></textarea><br><br><input value="Submit" type="submit"></td></tr></tbody></table></form> <input type="submit" name="send" id="send" value="Send">Should be... <table><tbody><tr><td><label for="Name"></label><br><input size="30" name="name" type="text" id="name"></td><td><label for="City"></label><br><input size="30" name="city" type="text" id="city"></td></tr><tr><td><label for="Phone"></label><br><input size="30" name="phone" type="text"id="phone"></td><td><label for="Email"></label><br><input size="30" name="email" type="text" id="email"></td></tr><tr><td colspan="2"><label for="Comments"></label><br><textarea name="comments" rows="4" cols="62"></textarea><br><br><input value="Submit" type="submit" id="submit"></td></tr></tbody></table></form>
  7. I posted a new topic (Look at it) on the AJAX website a few days ago. But I have not received a response yet .So I was hoping that one of you guys/girls could help me figure out how to accomplish this.Any help would be appreciated!Thanks,SuperPaperSam
  8. I'm placing hundreds of games on my site (and other flash content) and I'm looking for a faster way of embedding them.Currently I create a new HTML page and embed them using this code. <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="----------width----------" height="----------height----------"> <param name="movie" value="----------game.swf----------" /> <param name="quality" value="high" /> <embed src="----------game.swf----------" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="----------width----------" height="----------height----------"></embed></object> This way works fine but I spend a long time just pasting this code into pages and changing the width/height/srcIf possable I would like to have a code that makes the .swf as big as possable (staying within the div) while maintaining is width to height ratio. Then I would just have to change the src. (which is MUCH faster then finding the max width's and height's)I'm hopping this is possible because it would save me a lot of time.Does anyone know how to accomplish this or a better (faster) way of embedding all my games?Thanks,SuperPaperSam
  9. I would like to show a message after someone sends me a email. Stating whether there email was sent or not. Right now they are sent to a new page.I don't want the page to reload. And if possible I want to pick where the text would show up.This is the PHP I'm using now. <?php $emailsubject = 'Contact'; $webMaster = 'youwillnotsendmespam@blah.blah'; $nameField = $_POST ['name']; $emailField = $_POST ['email']; $messageField = $_POST ['message']; $body = <<<EOD <hr> Name: $nameField <br> Email: $emailField <br> Message: $messageField <br> <hr> EOD; $headers = "From: $emailField\r\n"; $headers .= "Content-type: text/html\r\n"; $success = mail($webMaster, $emailsubject, $body, $headers); $theResults = <<<EOD <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <div> <div align="left">Thank you for contacting me!</div> </div> </body> </html> EOD; echo "$theResults" ?> Would this code work without a reload? Or do I have to use AJAX? <?php $emailsubject = 'Contact'; $webMaster = 'youwillnotsendmespam@blah.blah'; $nameField = $_POST ['name']; $emailField = $_POST ['email']; $messageField = $_POST ['message'];</font> $body = <<<EOD <hr> Name: $nameField <br> Email: $emailField <br> Message: $messageField <br> <hr> EOD; $headers = "From: $emailField\r\n"; $headers .= "Content-type: text/html\r\n"; $success = mail($webMaster, $emailsubject, $body, $headers); if ($success) echo "Your message has been sent. I will get back to you as soon as possible."; else echo "There has been a error! Make sure you have a working internet connection and try again."; Any help would be very helpful.Thanks
  10. WOW. I just noticed that I should of put Field after it.... wow... im dumb...But thanks for the help
  11. I have a PHP form and it works fine but it says that it's from 'nobody' How can I fix this??? I want it to say it was sent from $emailFieldPHP Code <?php $emailsubject = 'Contact'; $webMaster = 'sorry w3schools i dont want everyone knowing my email'; $nameField = $_POST ['name']; $emailField = $_POST ['email']; $messageField = $_POST ['message']; $body = <<<EOD<br><hr><br>Name: $nameField <br>Email: $emailField <br><hr><br>Message: $messageField <br><br><hr><br>EOD; $headers = "From: $email\r\n"; $headers .= "Content-type: text/html\r\n"; $success = mail($webMaster, $emailsubject, $body, $headers); $theResults = <<<EOD<html><head><title>Email has been success fully sent!</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><style type="text/css"><!--body { background-color: #f1f1f1; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal; line-height: normal; font-weight: normal; color: #666666; text-decoration: none;}--></style></head><div> <div align="left">Thank you for contacting me I will get back to you soon!</div></div></body></html>EOD;echo "$theResults"?> Any help would be appreciatedThanks!
  12. My internet was vary laggy so i guess it triple posted. please delete this one.Sorry.
  13. My internet was vary laggy so i guess it triple posted. please delete this one.Sorry.
  14. Since I really don't want to deal with AJAX I want to compromise and use a javascript alert... <script language="javascript" type="text/javascript"> alert('Your message was successfully sent!'); </script> or <script language="javascript" type="text/javascript"> alert('Sorry but there has been a error. Make sure you have a working internet connection and try again.'); </script> But how would I put this in my PHP and make each javascript alert start when the email is sent or a error occurs.Please tell me exsactly what to do because im not to great with php.
  • Create New...