Jump to content

Chocolate570

Members
  • Posts

    1,550
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by Chocolate570

  1. Hey, that's not a bad idea! :) I never thought o that. But the problem is most sites are accessible through anonymous FTP if run on ameteur servers, so it would be pretty easy to try out most of the files. Server side code is better :) But still, great idea. :)Choco

  2. Here's a javascript sample:

    <script type="text/javascript">  function refresh() {	window.location.reload();  }  /*	In this, you'll have to have a function named "menuUp()" that	returns "true" or "false"	depending on whether your menu is up or not.  */  if(menuUp) { //checks if the function returned true	x=setTimeout(refresh,12000);  }  else {	x=setTimeout(refresh,5000);  }</script>

    Hope that helps.Choco

  3. I don't think its possible to make it so that the user gets a "save as" dialogue box for an image in firefox. (with javascript)But after a bit of research, the PHP code is as follows:<?phpheader('Content-type: image/jpeg');header('Content-Disposition: attachment; filename="name.jpg"');?>Save that as...whatever.php, and here's the javascript code:window.location="./whatever.php"And just put a redirect back to the previous page afterwards if a condition is fulfilled. Hope that helps :)Choco

  4. From what I know, JS is not capable of detecting IP addresses currently. Maybe in later versions. But right now, the only way to do this is use AJAX and a php page, rename your page to name.php and add the following line:<? echo $REMOTE_ADDR ?>where the IP should appear, or use an iframe. Oh, you can also use ASP and whatever, but it's most probable you have a server with php installed. As for emailing the IP to you, you'll definitely need server side code like PHP. Then you just use the mail() function inide the page. Hope that helps.Choco

  5. An explanation:All functions (like alert() and submit() and so on) can be either called through:1. A statement: alert("blah");2. A function, called through an event, or through #1: function myFun(){alert("blah")}So, if you want the page to alert without any trigger, just put alert(). If you want a trigger, put it in a for, if, while-else, or function.Hope that helps!

  6. I don't bother, two topics might catch the ones attention who are responsible for this issue more likely.
    Not a very smart idea to say that with me patrolling the forums. By searching, you grant us mods the privelage of not having to delete the extra topic. And you can save yourself the trouble of typing it, because within 48 hours, it'll have dissapeared into the mysterious place called "&mode=delete" :)
  7. Well then, we better call Sylvester along to kick THAT SITE'S BUTT!But leave it to him, ok guys? We don't want this forum to be associated with hacking. That makes us about as low as their forum. It's not the action, it's the reaction... :)

×
×
  • Create New...