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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by Jonnn

  1. Jonnn

    Add checkbox values and display total in plain text!

    Is it me, I always thought variables could not start with a Capital letter. I am referring to the variable 'Total' Correct me if I am wrong here. --------------------------------------- Thanks for your help, Jon http://www.freewebs.com/jonsbikes
  2. Jonnn

    Regular expression problem

    :-) <input type="text" name="name1" id="name1" value=""/> --------------------------------------- Thanks for your help, Jon http://www.freewebs.com/jonsbikes
  3. Jonnn

    Regular expression problem

    This will work... <script language="javascript"> function validate() { eNo = document.getElementById('name1').value; eNo_length = document.getElementById('name1').value.length; if((eNo_length < 8) || (eNo_length > 8)) { alert("Not Valid"); } else {...
  4. Jonnn

    Showing the time

    Thanks guys! Kaht - I guess I need to start using them type of statements more regularly. They do the same job, with less lines. Thanks for your comments and advice on indenting my code. I will definitely put this to use. And, I have made an error on my FAQ, I have forgotten to put in my...
  5. Jonnn

    Trying to navigate with onclick event

    Bloody hell ... 3 replies already.. True.. you dont need javasript: unless dealing with links. --------------------------------------- Thanks for your help, Jon http://www.freewebs.com/jonsbikes
  6. Jonnn

    Trying to navigate with onclick event

    Try providing a full link to the page <input type='button' value='Click Me' onclick="javascript:window.location='http://www.PAGELINK.com/default.asp?page=2'"> --------------------------------------- Thanks for your help, Jon http://www.freewebs.com/jonsbikes
  7. Jonnn

    Showing the time

    Do you mean like this? function show_time() { var todays_date = new Date(); // gets current time and date var get_month = todays_date.getMonth(); var month_string = month[get_month]; // Month in a string var get_dom = todays_date.getDate(); var dom_string = day_of_month[get_dom]; //...
  8. Jonnn

    Showing the time

    why indent my code? I understand that you have to in other languages but why JavaScript. Thanks for the advice on the rest, I never really got the chance to simplify it. Just made it and it worked well :-) Apart from that? what do you think? --------------------------------------- Thanks...
  9. Jonnn

    Showing the time

    What do you guys mean. Im so confused :-) Do you mean to make the variable a string? How else could I have done it? That was just off the top of my head... You guys would have pissed yourself laughing if you had seen what I had programmed in before that. It was like nearly a page long. Then...
  10. Jonnn

    Showing the time

    Can I call myself a programmer if i only deal with scripts :P --------------------------------------- Thanks for your help, Jon http://www.freewebs.com/jonsbikes
  11. Jonnn

    Showing the time

    I have the following script to show the time on my webpage function show_time() { var todays_date = new Date(); // gets current time and date var get_month = todays_date.getMonth(); var month_string = month[get_month]; // Month in a string var get_dom = todays_date.getDate(); var...
  12. Jonnn

    Pinpointing your stylesheet through JS

    No problem now. The master has sorted it. Damn im good :) --------------------------------------- Thanks for your help, Jon http://www.freewebs.com/jonsbikes
  13. Jonnn

    Pinpointing your stylesheet through JS

    How do i locate my stylesheet throught JS? Can you use JavaScript in your stylesheet? I would like to make my background of my image highlight blue when i put my mouse over it. I have alot of images. Is there any way that can save me defining the function for the onmouseover for every image...
  14. Jonnn

    Measurements double in I.E?

    I am defining measurements such as the margin-left attribute of a div. It is doubling in I.E therefore making it 2x the size. Is this meant to be happening? Does I.E handle measurements differently to FF? I have also noticed that "Headings" seem to be much bigger in I.E than FF...
  15. Jonnn

    Recommeneded Tutorial / Book for learning CSS

    Thanks for all your posts. Tracy, thanks for your link to a wonderful learning environment. --------------------------------------- Thanks for your help, Jon http://www.freewebs.com/jonsbikes

Part and Inventory Search

Back
Top