Jump to content

ownage

Members
  • Posts

    18
  • Joined

  • Last visited

ownage's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. ownage

    Page resize?

    correctly? where do i use the percentages, for the body width?
  2. how do i open multiple popups? like in a while loop, it will only re-open it if it is closed, i want it to keep popping up millions
  3. ownage

    id tag

    do i leave the value field as value? where u have used value
  4. ownage

    id tag

    if i do this <form><input type="password" value="" id="tfield" / ><br /><input type="button" value="Submit" onclick="chooseme()" /></form> and i make a fuction do this function chooseme(){var a = document.getElementById("tfield").document.write(a)} why wouldnt it work? also the part after getElementById("tfield") can i put functions such as tfield.funcname()
  5. ownage

    questions

    hahah, i must have somehow thought it was onclose, thanks for teh help lol,
  6. ownage

    questions

    question 1 :okay i wrote a bunch of stuff but for some reason it didnt send.. any way i got chooseme to run with mouseover which would trigger a text message and an alert box, but if i have onclose="choseme()" in the body it wont work, i actually want choose me to open another function depending on what the pword was. i dont think it can do this much calculating on close =(. any suggestiongs?question 2also is there a way to get value into a variable from a form, i mucked around with no success <form><input type="text" width="10" name="bob"><input type="button" onclick="" value="submit"></form> tried using onclick to make a=value and a=input and a=bob and all this other stuff, im geussing i might have to use a method in the form tag or somethingquestion3i know this is easily done in the body by: while(a<100){document.write(a)a++} but can u do it in a functon, i used this as the function, function matha(k){k=0;while(k!="5000000"){k++;document.write(k);return k}} and this in the body in js tages, while(k<500){document.write(k) but all i got was 0 then 10 10 10 10 amillion times, is there any way to trigger that function to document.write with an event or any other possible way, ithough my way would work becuase every time it loops the function returns k with being updated by ++, any way if that did work that isnt really a quiker option}question 4also im just curios, how would u make a window.open urself?
  7. ownage

    What now?

    in the .net section it says microsoft is trying to standadize something or other, any way why dont people just use php and js as the standard instead of asp and vb script? the syntax of php and javascript are like the same as c & c++ so if u could get php to run c++ it would own, on w3schools at the end of js section they say to learn asp. so is there any other benifets of it?
  8. ownage

    What now?

    i think, perl, php and asp are all server side scripts, what are there +'s and -'s, ppl say php is for linux users coz they cant use asp, but then y is asp so much more expensive? i was leaning towards php but im not so sure now..., i read from .net asp section that it supports c++ so im thinking woot, im geussing the others dont? also can some one clarify what html dom is. and why not just stik e4x as an update for js?
  9. what do u mean by adress, sounds like a pointer 2 me
  10. they should have called em structures like in c++ its 2 easy to get confused coz they both start with function
  11. 1. im not sure just try it, variables created in a case will probable only exist in that case, having them exist for the others isnt logical (if u wanted to just use a global variable). break will get u out of the loop and continue with the code after that if any, for instance if u had case 1: case 2: and case 3:, and the variable = 1 {statment, break} it would skip case 2 and 32. depends on what you want to get done, seems like ur only letting some one in if they know the correct value, 3. not to my knowledge4. hmm, cant think of any atm, 5. u have to declare the parameters when u create a function other wise that function has no parameters, it just has to use global variables, if u do use them you have to put something in when u make a call to that function otherwise ur function variales wouldnt have any value and would do the same stuff, it might just make the variables null or 0, im not sure6.again not usre
  12. i have a variable which is global, not in any funtions or whateva, straight at the top of the page. this is saved in a external file with a function. the page that is linked to this js page should onload open a function inside the external script and open a prompt box which then stores the input into my variable, then i want to use the variable input in another function which uses if etc,i have this code in my html page<code><body onclose="chooseme(a)" onload="prompta(a)"></code>this in my external file for prompta, i want to have the input sent to the global variable a in the end and im not sure how to do this and i think x=a isnt working ..., in c++ you use a ampersand before it and any modifications that are done get applied to that variable directly, its called passing the variable by refference, so function my(&x) would make all changes made to x in the function happen to the variable that was sent to it. <code>function prompta(x){x = prompt("What is the Password","get it right ")return x=a}</code>can some one tell me if this is correct, im wondering if you need to have {} around the statement after the if, and else if and else, you have to in c++ if u have more than one statement,<code>function chooseme(a){if(a="pword") closealert(a)else if(a="pword2") closealert2(a)elsedocument.write("<br /><br /><style="align: center">you have not got access =P</style>")}</code>variable is stated at top as<code>var a</code>i could have played around with my assumptions to see if it worked but i don't know if thats the error.im doubting the ability of external scripts...
  13. ownage

    <div>

    can u give me some elements u can stick inside it?
×
×
  • Create New...