Jump to content

Twango

Members
  • Posts

    174
  • Joined

  • Last visited

Everything posted by Twango

  1. Twango

    Clock?

    Hey, why isnt this repeating?<!--Simple clock that will be at the bottom right & left of the screen--><body onload="clock()"/><head><script type="text/javascript">var d=new Date();function clock(){var o=setTimeout("tad()",1000);var t=setTimeout("sp()",1001);clock();}function tad(){var day=d.getDay();var dy=["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"];var days=dy[day];var day2=d.getDate();var mon=d.getMonth() + 1;var yr=d.getYear() + 1900;document.getElementById('text1').innerHTML=days + " " + mon + "/" + day2 + "/" + yr + " ";} function sp(){var s=d.getSeconds();if (s < 10){s="0" + s;}else{}var m=d.getMinutes();if (m < 10){m="0" + s;}else{}var h=d.getHours;var sph=["NULL","1","2","3","4","5","6","7","8","9","10","11","12","1","2","3","4","5","6","7","8","9","10","11","12"];h=sph[h];var apm=["NULL","AM","AM","AM","AM","AM","AM","AM","AM","AM","AM","AM","NOON","PM","PM","PM","PM","PM","PM","PM","PM","PM","PM","PM","PM"]var ap=apm[d.getHours()];document.getElementById('text2').innerHTML=h + ":" + m + ":" + s + " " + ap;}</script></head><div id="clock1" style="background-color:black;color:white;position:fixed;left:0;bottom:0"><b id="text1">Please Wait...</b></div><div id="clock2" style="background-color:black;color:white;position:fixed;right:0;bottom:0"><b id="text2">Please wait...</b></div>
  2. Twango

    Weird

    Why isnt this working:<!--Simple clock that will be at chosen location on the screen.Please either enter top, bottom, left, or right.For example, if you set Pos1 to Bottomand Pos2 to center, it would be bottom center,--><head><script type="text/javascript">/*Configure Below here*/var pos1="Bottom";var pos2="Center;document.getElementById('clock').style.pos1="0";</script></head><div id="clock" style="background-color:black;color:white;position:fixed"><b id="text"></b></div>
  3. How do you do the 'copy to clipboard' function?
  4. Twango

    Background-image

    why isnt this working?<style type="text/css">body {background-image:url(http://4.bp.blogspot.com/_Ob8lDy6Ekbc/S2GXi0xV9tI/AAAAAAAABek/U50ZeoE32gM/s1600-h/caveclosing.jpg)}</style><body></body>
  5. <script type="text/javascript">function hh(){window.open("http://www.redcross.org","Help'>http://www.redcross.org","Help Haiti Now");document.title = "This";}</script><div style="position:fixed;bottom:0px;left:0px"><p style="background-color:darkgray" title="Help Haiti now" onclick="hh()"><b>Help Haiti. <a href="http://www.redcross.org" style="color:red;text-decoration:none" title="Click to help Haiti now" target="_blank">RedCross.org</a></p></b></div>*Updatemy incompetence has been noticed, i forgot to call the function. lol. sorry!
  6. not working. it doesnt do anything?so like <script>document.title = "This";</script>cause that isnt working?
  7. Twango

    <style>?

    Uhhhh i tried <style type="text/css"> and <style> and both work, why?
  8. how would i change the title of a window? document.write("<title>this</title"); isnt working. thanks!
  9. so.i'm trying to have random jokes appear. inside i will have a tag with the number of jokes. and the jokeshere's the js <script type="text/javascript" src="http://w3host.weebly.com/uploads/2/8/9/6/2896432/load.js"></script><script type="text/javascript">xmlDoc=loadXMLDoc("jokes.xml");nms=xmlDoc.getElentsByTagName("Num")[0]nc=Math.ceil( Math.random() * nms );x=xmlDoc.getElementsByTagName("s" + nc)[0]y=x.childNodes[0];m=y.nodeValue;alert(m);</script> and the xml:<jokes><num>1</num><joke category="No Order"><s1>When life gives you skittles Throw 'em at random people and scream EAT THE RAINBOW!</s1></joke></jokes> can you help? thanks!
  10. hmm, this isnt working. why? <html><body><script type="text/javascript">document.getElementById('a').disabled="false";</script></body></html><input type="checkbox" id="a" disabled="disabled"/>
  11. how do i enable a text-input that has been disabled?
  12. How do you check to see if a radio is selected
  13. Twango

    Adding Lines

    Hello, with javascript i am trying to add a line to a textarea, here is what im using: cs=document.getElementById('source').value;function showElement(id){document.getElementById(id).style.display="inline";}function hideElement(id){document.getElementById(id).style.display="none";}function us(content){document.getElementById('source').value=content;}function updatesource(){cs=document.getElementById('source').value;return cs;}function ac(content){us(updatesource() + content + "\n");}function acp(content){us("<p>" + content + "</p>");} why isn't this working?thanks!
  14. So. there is no way to make an <input> tag inside a <div> to be hidden without making the individual elements hide/show?
  15. How do you make content inside of a div tag not appear?i'm trying the display:none, but if i do that for the div tag it doesn't work.
  16. what i'm trying to achieve is simply a button that adds something to a text area,
  17. Thanks, also, any way to just 'write'? not edit the value?
  18. Hello, i'm using document.getElementById() to jump to a new line in a text area, for example, i want the text area to display:<p>hello</p>instead of <p>hello</p>document.getElementById('idhere').value="whatever" + <br/> is not working, why?thanks!
  19. Twango

    Iis Inetpub

    Windows 7, i dont know i am the first user ever on the pc?*UpdateAnd only
  20. thx, how do i become a mod?
  21. thanks, one more question, any way to round up to 2 decimals?
  22. Twango

    Iis Inetpub

    I cant, it says 'you do not have permission to edit this folder' i guess this would be more of a windows thing...
  23. Hi, i want to have an html input tag that is used to calculate things etc. i want to make the text string into numbers, how would i do that?
  24. Twango

    Iis Inetpub

    hey, i am trying to edit the default website 'localhost' i can't add things to the file, i dont know why, it says contact administrator. i am the administrator, i dont know why it says that?
×
×
  • Create New...