Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. nolachrymose

    xml database javascript search

    ROFLMAO. Doesn't even sound like you want to program.
  2. nolachrymose

    JavaScript "Cheat" sheet

    Whoops - little typo! Change this line: if(typeof(document[i]=="function") document.write("()"); ...to this: if(typeof(document[i])=="function") document.write("()"); Happy coding! :)
  3. nolachrymose

    JavaScript "Cheat" sheet

    Why not do it yourself? for(var i in document) { document.write("document."+i); if(typeof(document[i]=="function") document.write("()"); } You might also want to consider buying the JavaScript Bible. Hope that helps! Happy coding! :)
  4. nolachrymose

    Work about the height of the visible screen

    <table style=&quot;width: 100%; height: 100%;&quot;> Hope that helps! Happy coding! :)
  5. nolachrymose

    Need to force only numbers in the. Help

    Use this function: function validInput(val,evt) { var e=new Object(); e.which=(evt)?evt.which:event.keyCode; return (e.which>=48||e.which<=57); } In conjuction with this onkeydown event handler: onkeydown=&quot;return validInput(this.value,event);&quot; Hope that helps! Happy coding! :)
  6. nolachrymose

    Layer = screen.width

    Wouldn't it be easier to just use CSS? <style type=&quot;text/css&quot;> #fullscreen { position: absolute; left: 0px; top: 0px; width: 100%; height: 100%; } </style> Then, just assign the ID of the layer to fullscreen. Hope that helps! Happy coding! :)
  7. nolachrymose

    Listing files from a directory

    You cannot do this with JavaScript (or any other client-side language). You must use a server-side language. I recommend you use PHP or ColdFusion. Hope that helps! Happy coding! :)
  8. nolachrymose

    How to find Screen Resolution by JavaScript

    Use the screen.height and screen.height properties. Hope that helps! Happy coding! :)
  9. nolachrymose

    Get DIV's true size

    Use offsetWidth/offsetHeight (it is a property of the object, not of the style object). Hope that helps! Happy coding! :)
  10. nolachrymose

    Getting &quot;More...&quot; functionality working

    I have an error in my previous post. Change this line: e.hit=(evt)?e.target:event.srcElement; ...to this: e.hit=(evt)?evt.target:event.srcElement; Hope that helps! Happy coding! :)
  11. nolachrymose

    Getting &quot;More...&quot; functionality working

    You could use CSS along with a JavaScript function. For example, here's the CSS: p:first-line { display: block ! important; } p { display: none; } Then, use this JavaScript code: function chgShow(evt) { var e=new Object(); e.hit=(evt)?e.target:event.srcElement...
  12. nolachrymose

    centering div tags

    As a reference to my previous post, the code was incorrect (I just wasn't thinking). Here is the correct code. function center(obj) { var x=screen.availWidth/2-obj.offsetWidth; var y=screen.availHeight/2-obj.offsetHeight; obj.style.left=x; obj.style.top=y; } Hope that helps! Happy coding! :)
  13. nolachrymose

    Opacity change?

    That script will only work in IE4+. I'm pretty sure you'd have to use different images in NN4. To make it compatible with IE5.5+, NN6+, and Mozilla 1.0+, use SVG. Unfortunately, your users will have to download the SVG viewer plug-in to view it. Hope that helps! Happy coding! :)
  14. nolachrymose

    centering div tags

    function center(el) { var x=screen.availWidth-el.offsetWidth; var y=screen.availHeight-el.offsetHeight; el.style.left=x; el.style.y=y; } Hope that helps! Happy coding! :)

Part and Inventory Search

Back
Top