pop-up windows NEEDED asap

matty2006

New Member
HIYA all im a beginner in all this HTML code stuff so wondered if u can help me il tell u want i want then u can tell me hopefully u can help me

i have a website right which has a jokes page on it but i dont want my visitors to see the ansers until they put the cursor over either a button or text or something. Or i want the visitors to click on a piece of text saying answer and a popup window appears stating what the answer is.

can anbody help me i need it ASAP
 
I don't know the code right off, but I do know plain HTML doesn't do pop-ups. You will have to look into Java or javascript...
 
You could use JavaScript... or you could just do something really basic and make the answers show up in a different window ("_blank"). It's not as nice as using Javascript, but it'll still do the same job. :D

E.G:
Code:
<a href="answer1.html" target="_blank">Click here for the answer!</a>
 
Yeah.. you can use HTML.. but its not like a nice pretty window or anything.. its like a whole new page.

Here are some steps to break it down for you said your learning it right now.

We'll use Elvellon's HTML. You will have to create a new page with the answer and upload it.

<a href=" "
In there, you'll put the link of the new page, that you uploaded to the server. Like for example.. http://www.theserver.com/youranswer.htm
Some servers.. you can just upload everything to a folder, and it'll recognize everything.. so instead of all the www.theserver.com/youranswer.htm.. you can just use youranswer.htm

target="_blank"
Don't change this.. this will make it pop up in that new window.

Click here for the answer!
That's the message you want the person to see so they know where to click for the answer.. so if you want a button or something else.. instead of the writing, you can embed a picture in it.
<img src="theLINK">
 
Back
Top