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...
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'...
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
_____________________________
| |
|...
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...
<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...
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")...
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")...
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...
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...
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...
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
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.