User Name
Password

Go Back   Planetarion Forums > Non Planetarion Discussions > Programming and Discussion
Register FAQ Members List Calendar Arcade Today's Posts

Reply
Thread Tools Display Modes
Unread 2 Nov 2002, 18:44   #1
clarencetheclockworkcake
Fidel Cakestro
 
Join Date: Jan 2001
Location: Heiro's Garden.
Posts: 242
clarencetheclockworkcake is an unknown quantity at this point
Printing text on to a webpage.

What I would like is when the user clicks on an image,for some text to appear next to the image. i was wondering what language should i use,and how should i go about it?

Thanks.
clarencetheclockworkcake is offline   Reply With Quote
Unread 2 Nov 2002, 18:49   #2
Dave
Infallible
 
Join Date: Feb 2001
Location: Milton Keynes, UK
Posts: 604
Dave is an unknown quantity at this point
I would use javascript or some form of it, have a look on www.javascriptsource.com for some examples.
__________________
Free
Dave is offline   Reply With Quote
Unread 2 Nov 2002, 18:50   #3
Gayle29uk
Bitch
 
Join Date: Jun 2002
Location: North Yorkshire
Posts: 3,848
Gayle29uk is just really niceGayle29uk is just really niceGayle29uk is just really niceGayle29uk is just really nice
Re: Printing text on to a webpage.

Quote:
Originally posted by clarencetheclockworkcake
What I would like is when the user clicks on an image,for some text to appear next to the image. i was wondering what language should i use,and how should i go about it?

Thanks.
Depending on how much text we're talking here wouldn't it be easier to use the description part (can't remember offhand what it's called) of the IMG tag?
Gayle29uk is offline   Reply With Quote
Unread 2 Nov 2002, 18:51   #4
clarencetheclockworkcake
Fidel Cakestro
 
Join Date: Jan 2001
Location: Heiro's Garden.
Posts: 242
clarencetheclockworkcake is an unknown quantity at this point
alt tags? but thats only when you hover over the image. i would like it to be permantly displayed.
thanks dave.
clarencetheclockworkcake is offline   Reply With Quote
Unread 2 Nov 2002, 22:50   #5
Dudels
Guest
 
Posts: n/a
Webmonkey.com has an ace javascript tutorial.
  Reply With Quote
Unread 3 Nov 2002, 01:59   #6
Atamur
Ngisne
 
Join Date: Jul 2001
Location: right here
Posts: 79
Atamur is an unknown quantity at this point
the easiest thing to do is to have a hidden span right after the image and then unhide it when the image is clicked. something like this:
Code:
<img src=... onclick='this.nextSibling.style.visibility="visible"'>
<span style='visibility: hidden'>hello</span>
__________________
down with signatures
Atamur is offline   Reply With Quote
Reply



Forum Jump


All times are GMT +1. The time now is 19:40.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2002 - 2018