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 gkittelson 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. GiddyRob

    using a variable outside of a function

    fixed thanks. innerHTML
  2. GiddyRob

    using a variable outside of a function

    ? ok so how do I output the variable? Can I run a line of code in the function to output to the div class?
  3. GiddyRob

    using a variable outside of a function

    sorry typo. even if i put the variable outside of the if statements it still wont change when i click on a link. I have set the variable with var outside to make it global and without var in the function so it should be global. The function is executing just doesn't seem to update the variable...
  4. GiddyRob

    using a variable outside of a function

    Hi, I am having a little trouble displaying a variable that's created in a function. I am using an onclick to pass a value from 1-4 depending on the link clicked. I have made the function check to see if the value is 1-4 then created 4 variations of the same variable. So: if(a=1){ para='text'...
  5. GiddyRob

    image rotator with selection

    Thanks :) wondered what it was called :)
  6. GiddyRob

    image rotator with selection

    Hi, does anyone know how to make an image rotator that looks like a banner with little buttons overlaid on the images so you can select which image you want to look at? see below _____________________________ | | |...
  7. GiddyRob

    jquery word limit in text area

    but the maxlength field is still counting the words" *"but the maxlength value is still counting the characters" :)
  8. GiddyRob

    jquery word limit in text area

    Hey, I am trying to set the word limit for a text area. I am nearly there, but can't quite get it to work. I can get it to count down the words, but the maxlength field is still counting the words so if there is a limit of 200 words it stops allowing input at 200 characters. The message on the...
  9. GiddyRob

    getElementByID and hidden field

    Oh! I thought it would show up in the source code :( doh! thanks for your help though. I understand more how this works now :)
  10. GiddyRob

    getElementByID and hidden field

    <body> <input type="hidden" name="newsdate" id="newsdates" value="" /> <SCRIPT LANGUAGE="Javascript"> <!-- // Array of day names var dayNames = new Array("Sunday","Monday","Tuesday","Wednesday", "Thursday","Friday","Saturday"); // Array of month Names var monthNames = new...
  11. GiddyRob

    getElementByID and hidden field

    thanks for the reply :) I have now change the code to this: <body> <input type="hidden" name="newsdate" id="newsdates" value="" /> <SCRIPT LANGUAGE="Javascript"> <!-- // Array of day names var dayNames = new Array("Sunday","Monday","Tuesday","Wednesday", "Thursday","Friday","Saturday")...
  12. GiddyRob

    getElementByID and hidden field

    Hey, can someone please tell me why the code below will not add a value to a hidden field, but it will output to screen: <SCRIPT LANGUAGE="Javascript"> <!-- // Array of day names var dayNames = new Array("Sunday","Monday","Tuesday","Wednesday", "Thursday","Friday","Saturday")...
  13. GiddyRob

    Image to swf onclick

    Hi, I was just wondering how I can have an image that when it is clicked it is replaced by a flash swf? The problem I have been having is that I have embedded quite a lot of youtube videos on a webpage and it kills the computer trying to load them all. I would like it so that it only loads the...
  14. GiddyRob

    z-index rollover

    Hi, I am currently doing a site and I am not sure how to do a role over when one of the layers has text and a picture. The page is laid out using css. Basically I want the bottom layer to just be an image but when the mouse rolls over it it makes the z-index visible. The z-index should output...
  15. GiddyRob

    passing same variable through url

    Thanks for your answer but I am a little unclear what you mean. I am having trouble doing it cos I can't use php but I don't want to use cookies. I would normally use php to do this. when the page is loaded font has a value but I need it to keep its value on every page accessed. In php I can...
  16. GiddyRob

    passing same variable through url

    hmmm, i cannot use php so that is out of the window really. Is there any way of doing what I described above? I would like to avoid using cookies if possible. Cheers Rob
  17. GiddyRob

    passing same variable through url

    Hi, Im putting together a site and I want to know how to pass a variable across the url that already has a value. The reason for this is that the site is for visually impaired people so it has a selection of four different text sizes. I have a javascript variable called font and I want to pass...
  18. GiddyRob

    Resizing images from the web (keep correct ratio)

    I am fairly new to javascript but I dont really think thats what I want. Thanks anyhow :) Does anyone else have any ideas? Cheers Rob
  19. GiddyRob

    Resizing images from the web (keep correct ratio)

    Hi, if I have an image on my website coming from a different location: src="http://www.thehobbitguy.com/tutorials/polymodeling/images/tut15i.jpg" How do I get the images width or height, depending which is greater, to be no more than 120px. Basically I want the image to have the correct ratio...
  20. GiddyRob

    Make first letter uppercase

    Cheers I will give it a go Rob

Part and Inventory Search

Back
Top