Jump to content

adamfr

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by adamfr

  1. OK.. I have a page that refreshes every 5 second, I have a td that if u dbl click it u open a menu and when u do I want the page not to refresh for 12 seconds so whoever opens that menu will have time to do what he needs..my first idea was a META tag that refreshes the page but I can't change it in any way :) I really wanna know if its possible to change it.. nd GetElementById or ByTagName are no gooa cause it dosen't works with META as I've seen so I tried to make a funciton with setTimeout and still no good..does anyone has any idea how to do it without making to page to reload b4 the value changes? or maybe how to change the content of a mETA tag????? :)

  2. 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>

    as I've seen u have few mistakes... and I didn't saw everything so u might have even more...first.. when u have few statements in if u should have it like that if ((one!="")&&(two!="")||(three="s"))and second if u wanna check if something equals to something u dont use = but == cause with only 1 = u put the value ur comparing to in the variable and check nothing...fix those and see if everything's ok :)
×
×
  • Create New...