Ok, this may be a double post, but the first time I did this it didn;t show up...
Does anyone know of a code that can reload an image onclick? I would like to make a button that repeats an animated gif when a button is clicked, so I figured reloading the image would do the trick. Can anyone show me a code to do this and/or show me a better way to accomplish this task?
Thank you kindly.
User Profile
Collapse
-
Another Guess A Number question
Ok so I am making a simple guess a number game (ya know, guess a number I'm thinking of between 1 and 5) And I have one problem, If the number is between 1 and 5 and correct, or isnt between 1 and 5 it says the right message, but if it is between 1 and 5 and is wrong it says nothing. Could I have help? Here is my script:
<html>
<head>
<script language="Javas cript">... -
My guess would be to write
<a href="your URL">your URL untill it gets too long and then you put ...</a>Leave a comment:
-
Thanks guys, A mistype, but could you help me with one more thing?
I've edited it a little more so it looks like this
[HTML]<html>
<head>
<script language="Javas cript">
function get_random()
{
var ranNum1= Math.floor(Math .random()*4+1);
return ranNum1;
}
function match_random()
{
var the_answer=get_ random()
...Leave a comment:
-
Guess A Number
Hi I am making a basic "guess what number I'm thinking of" script and I cant figure out what I'm doing wrong. When I enter my number it changes it to the right number and says correct.
(p.s. kinda new so could be dumb mistake)
heres my script:
<html>
<head>
<script language="Javas cript">
function get_random()
{
var ranNum1= Math.floor(Math .random()*4+1);... -
-
Placing something in a random location on a page
Does anyone know how to place a picture on a random location on a page? I know how to specify where it goes but do you know how to make that random? Could you combine javascript and CSS to make a random number for the pixel location?
(P.S. If you can combine javascript and CSS plz tell it would help me a ton!)
THANKS!Leave a comment:
-
Placing a picture on a page randomly
Does anyone know how to place a picture on a random location on a page? I know how to specify where it goes but do you know how to make that random? Could you combine javascript and CSS to make a random number for the pixel location?
(P.S. If you can combine javascript and CSS plz tell it would help me a ton!)
THANKS! -
Random location on a page?
Is there any way to make a picture apear on a random location on a page? I was thinking 2 random variables to represent the x and y location, but I dont know if thats possible, and if it is, I have no idea how to do it.
THANKS FOR YOUR HELP!Leave a comment:
-
Placing something in a random location on a page
Ok, I'm trying to make something appear in a random location on a page. I have an idea how to do it, make a random variable to represent its pixel hieght and width on a page, but I'm not sure how to assign a pixel height or width for a picture. Help plz?
(by the way I may be completely wrong about this)
THANKS! -
Text Boxes Unchangeable
Dear whoever cares:
Do you guys know on all websites that provide code for you? They always have these boxes that are like text boxes only they have unchangeable text. You can select it and copy, but not change. I was wondering, How do you make those? -
Text saver
Again, a probaby newby question. (javascript)
Ok, I want people to sumit their sites to me so I can post them. I want an input box and a button and when you hit the button the text inputed is sent to the bottom of the screen and saved there forever as a link.
I have no idea in heck how to do this, Thanks! -
Links on the same line?
Newby question but how do you get links to be on the same line as each other.
I put the two links on the page with nothing in between like this:
"<a href="http://suudsu2200.goog lepages.com/script1.html">< h3>Home Page :: <h3></a>
<a href="http://suudsu2200.goog lepages.com/Script2.html">< h3>Stuff to Do :: <h3></a>" -
Hey, thanks, but what do you mean by take the "passed value (a) and compare with b" Do just mean do what I did before "(a==b)"
-Thanks...Leave a comment:
-
"...Code:<HTML> <HEAD> function boxchoose(){ if (a==b){ document.write("That is the Correct box!") } else{ document.write("That is not the correct box") } } </HEAD> <BODY> var b=Math.floor(Math.random()*6); Can you guess which is the correct box? <P> <IMG SRC="images-4.jpeg" NAME="box1"Leave a comment:
-
(adding on)
Like, I wanted to make this thing where you click on a box and if its the right box (its random) then it tells you that your'e right. So i'd make it so when you click the "box 1" it sets "a" to 1 and then if "a" matches the random number it says, your right! How do I get it so whwn I click the box, it sets "a"to 1?Leave a comment:
-
Asigning variable using the onmousedown event
Hi, I am really, really new at javascript, but I was looking for some help. Does anyone know how to set a variable w/ "ONMOUSEDOW N"? thanks
No activity results to display
Show More
Leave a comment: