Question about HTML button tag?

OiNeedAnAnswer

New member
How do you make a tag that does the following things (I'm using notepad):

A button thats says, "Click me for a spaceship!". When you click it, my marqueed image pops out. Which I saved as spaceship.bmp. The marquee would be <marquee behavior="alternate"><img src="spaceship.bmp"></marquee>
Now all I need is the button part that when you click it, the marquee appears. I do know that it uses the button tag, and inner html might be useful? Dunno..

PLEASE HELP

Gives thumbs up for everyone that tried his/her best.
The one who answers best gets best answer..
Edit: I need a button tag that when you click it an image can appear, in simplified words.
 
When you say 'pops out', I assume you want it to appear in on the page, not in a new window as Justin suggested.

You'll want to give your marquee an id, set it to not display, then have a button set the display property using javascript. Which would look something like this:

<marquee style="display:none" id="marq" ...>...</marquee>
<input type="button" onclick="document.getElementById('marq').style.display='block'" />
 
Back
Top