Jump to content

Golanlan

Members
  • Posts

    29
  • Joined

  • Last visited

Everything posted by Golanlan

  1. Let's say I've got: hello<br>dog<br>cat<br> How do I detect the start of each line so I could make it automatly: {1}hello<br>{1}dog<br>{1}cat<br> ?
  2. I wish to remove the "Watch this deviant!" from http://golanlan.deviantart.com/ , using GreaseMonkey extension for firefox, that uses DOM for it's actions.aspnetguy, the script isn't working.. I guess you should had look at the source before writing this. sorry.
  3. let's say I've got <a href="http://blabla.meow.com">Meow</a><br><a href="http://rar.whoof.com">Whoof</a><br><a href="http://baa.cook.com">Cook</a> how can I put a username:password in the start of each link?
  4. Let's say I've got a link with this source: <a href="http://register.meow.com">Register</a> how can I remove this link from the page? It's should be with HTML DOM, to all of you who doesn't know greaseMonkey.
  5. I sometime see codes that looks like that: <br /> why isn't it <br> and that's it? S:
  6. Can be found easly on w3schools tutorials.. <script type="text/javascript">var str="meow *code*"document.write(str.replace(/*code*/,"foo"))</script> replace *code* with the code for "right parenthesis" on HTML ASCII Reference
  7. No problem mate, I'm glad I could help.
  8. Thanks for that!I meant that when entering the page for the first time, the text is shown.. I want it to be hidden, and when I press "Show", the texts is shown.. Like on a spoilers, that you don't want them to be shown right when you go on to the site.
  9. Ha! <html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1255"><title>New Page 1</title></head><body><form><input type="text" name="val" /><input type="button" value="Go Go Go!" onclick="location.href=val.value + '.html'" /></form></body></html>
  10. In the mean while, there's a script I wrote of a password log-in that could help you <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><title>box?</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head><body><script language="JavaScript" type="text/JavaScript">var val;val=prompt("Please write something to search for")if (val!==""){window.location = (val + ".html")}elsealert("You havn\'t wrote anything!");</script></body></html> the problem is that it isn't inline search. Yet.
  11. You guys know how to make the hiding function a default? Or how to toggle the value of the button to "Show" when hiding?
  12. <html><body><script type="text/javascript">var d = new Date()var hours = d.getHours()var minutes = d.getMinutes()if (minutes<=9){document.write("<form>")document.write("<input type='text' name='time' value=hours + ':0' + minutes>")}else{document.write("<form>")document.write("<input type='text' name='time' value=(hours + ':' + minutes)>")}</script></form></body></html> It isn't working so well, shows "Hours" in the text-field.
  13. Strange, I've never saw a good free hosting server with an anonymous FTP.. If someone wants a safe method in a non-anonymus FTP server, this is the safest method of the easy ones :)anyways, Congrats on the 1,000 post
  14. I've wrote a protected method for entering a page with a password COME ON IN!required:some_text.html with the following source: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><title>box?</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head><body><script language="JavaScript" type="text/JavaScript">var password;password=prompt("Please enter your password")if (password!==""){window.location = (password + ".html")}elsealert("No way dude! :P");</script></body></html> and some_password.html in the same directory.On my page, the password is it_r0cks_my_s0cks
  15. I just must say- IT IS NOT SAFE TO USE THIS METHOD!After entering the wrong password, try to take a look at the source. It gives you the password itself. Do not use this method.I'll work on a safe method.
  16. <html><head><script type="text/javascript">function disp_prompt(){var name=prompt("Please enter your name","") if (name=="God" || name=="god" || name=="GOD") { document.write("OMFG IS THAT YOU?!?") } else if (name!=="" && name!==" ") { document.write("Hello " + name + "! How are you today?") } else { document.write("wtf are you doing? Go backwords and FIX IT!") }}</script></head><body><form><input type="button" onclick="disp_prompt()" value="Display a prompt box"></form></body></html> Fixed, thanks :)By the way, would you know by any chance how can I keep with the banning of the spaces like here- else if (name!=="" && name!==" ") { document.write("Hello " + name + "! How are you today?") } automaticly that will forbit all numbers of spaces inserted?
  17. I was just messing around, and I can't find what's the reason for the error here. <html><head><script type="text/javascript">function disp_prompt(){ var name=prompt("Please enter your name","") if (name!=null && name!="" && name!="God" && name!="god") { document.write("Hello " + name + "! How are you today?") } else if (name="God" && name="god") { document.write("OMFG IS THAT YOU?!?") { else { document.write("wtf are you doing?") }}</script></head><body><form><input type="button" onclick="disp_prompt()" value="Display a prompt box"></form></body></html>
×
×
  • Create New...