Solved

a alterable caption

Posted on 1998-10-19
2
152 Views
Last Modified: 2010-04-09
i'd like to have a caption that i can send different text strings to on the moseover event.  right now i use images but this is too slow for some people... if you would like to see how i did what i am trying to achieve with images go to 'http://www.shasta.cc.ca.us'  i would like to do this so that something besides the image cahnges.. i've tried  a textarea but the '3d control' aspect of it make it look weird and i don't like the scroll  bars. i want something similar to a visual basic label control... any ideas?
0
Comment
Question by:hess
2 Comments
 
LVL 4

Accepted Solution

by:
chewymon earned 50 total points
ID: 1838865
Try it in JavaScript.  Define a document.writein function to write what you need.  Call the function with the onMouseover event.  This should work.


0
 
LVL 8

Expert Comment

by:jbirk
ID: 1838866
One way to do this nicely is using Layers.  They can do a nice job of displaying text that changes.  But it will only work in Netacape4+ and IE 4+, whereas the imag swapping also works in Netscape 3 and the form element text changing works in all javascript enabled browsers.

Layers can get pretty complex but I can help with it.  It's not too hard if you know what you are doing.  The only hard things are getting the layer to be positioned correctly and getting it to work in both Netscape and IE.

-Josh
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
HowTo set a global variable in javascript or jQuery 4 40
Copying table data to one another 15 36
Link not working 6 41
Why is my $_POST not going to results page 10 35
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
This article discusses four methods for overlaying images in a container on a web page
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question