View Full Version : Pointing on an image
2frogs
02-16-2005, 08:11 AM
I wonder if it is possible when only pointing on an image the name of the image can pop up in a little textfile.
TIA,
2frogs
If all you're asking is if it is possible, then the answer is Yes.
If you're asking how, then you need to provide a bit more information.
Are you displaying the image in an Image Object or some other object?
Is the image static?
What type of object do you want the name to show in, Input, Paragraph, etc.?
Be specific in what you want, and someone here will more than likely post code or a sample project that does what you want.
dthompson16
02-16-2005, 09:50 AM
Before you reply, 2 frogs, my guess is that you have an image and wish to display its caption on mouseover but not at any other time. If so, here is an easy way using a label object for the caption.
Let's call the image object Image1 and the label object Label1.
In the page's On Preload tab (script), type in: Label.SetVisible("Label1", false);
[this assures that caption will not be visible when returning to this page from some other page where Label1 may have been set to visible]
Copy above line and put it in Image1's On Leave tab.
Lastly, in Image1's On Enter tab, type in: Label.SetVisible("Label1", true);
Instead of a label object, you could use a paragraph object if you prefer--just change "Label" above to "Paragraph". Hope this helps.
2frogs
02-16-2005, 10:13 AM
Great, this is it. Thank you very much helping me out on this one. It does work perfect.
dthompson16
02-16-2005, 03:38 PM
Glad to be of assistance.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.