Golanlan
-
Posts
29 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by Golanlan
-
-
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.
-
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?
-
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.
-
Well, thanks mate<br /> is in XHTML, which applies to the rules of XML (all tags must close). -
I sometime see codes that looks like that:
<br />
why isn't it
<br>
and that's it? S:
-
Sure, glad I could help.Thank you golanlan, the HTML ASCII ref was the bit I was after. -
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
-
No problem mate, I'm glad I could help.Thank you so much Mr Golanlan!!!My problem resolved.Thanks also to others who assist me all this while.Thanks again all. -
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.
-
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>
-
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.
-
You guys know how to make the hiding function a default? Or how to toggle the value of the button to "Show" when hiding?
-
nobody can help here?
-
<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.
-
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 postHey, 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. :blink:Choco -
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
-
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.
-
<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?
-
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>
How do I add the same string before each line?
in JavaScript
Posted
Let's say I've got:
How do I detect the start of each line so I could make it automatly:
?