If I understand correctly you want to have text change dynamically on the page when you mouse over items in a list. Using HTML, you cannot normally change text once the page is rendered. You'll can use DHTML elements to achieve that, but it will limit the accessibility of your page.
Another technique is to display the job title within a form field (type=text or textarea). Javascript can dynamically populate a form field. To pull the data from the database, you'll have to make the mouseover trigger a reload of a javascript file from the server which contains the job title as a javascript variable. A better (faster) alternative is to preload all the job titles on the page server side, stored in a javascript array. Then when the user rolls over each item, a javascript function extracts the corresponding entry in the array to populate the form field. If a bare form field looks ugly, you can use a stylesheet to disguise it so that it looks like normal text on a page (make borders zero width and colour same as your page background colour). Regards: Ayudh +--------------------------------------------------------------+ | Put money in your bank while you're on the road. | | Secure credit card payment by SMS messaging. | | VeriPay mPOS from Xilo Online: http://www.xilo.com/mpos | +--------------------------------------------------------------+ ----- Original Message ----- From: "Kylie Lindstrom" <[EMAIL PROTECTED]> To: "CFAussie Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, July 10, 2003 17:53 Subject: [cfaussie] Swaps/rollovers > Hello All, > > I have a page where I'd like to show a 2 row, 2 column table, with a list of > names from my query running down the right-hand side, bottom row. This is > fine. I've also put a swap image function on each name, so that the person's > image pops up in the left-hand side, bottom row when you roll over them. > Clicking on the name takes you to a detail page on the person in question. > > My problem is that I'd like to print their job title (which is another field > of the same record in the query) in the top row of my table - also on > rollover of the name. I can achieve this with another image - if I want to > create an image for each job title - but I'd rather use straight text. > > If page code would help, please let me know. > > Cheers & thanks to anyone with a suggestion, > > Kylie Lindstrom > Web Designer > > Liberty Financial > Telephone (61 3) 8635 8803 > Facsimile (61 3) 8635 9988 > Website www.liberty.com.au > > --- > You are currently subscribed to cfaussie as: [EMAIL PROTECTED] > To unsubscribe send a blank email to [EMAIL PROTECTED] > > MX Downunder AsiaPac DevCon - http://mxdu.com/ --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MX Downunder AsiaPac DevCon - http://mxdu.com/
