This is a forum where members new and old can come to ask questions and get info and opinions. It is not a place to advertise your business or have other forms of advertising, whether it be in your posts or signature.

All links in the forum will not be indexed by Search Engines and any unapproved forms of advertising or spam will be dealt with accordingly, deleted, and that member's account banned.

Forums

Overview » CSS » expand text on click
Reply

expand text on click

Iqbal Khaiy
Member



Since: 10 Dec 2008
Posts: 3
Posted 10 Dec 2008 18:09:47

I have a list of board members bios and like to create a hyperlink for each. When you click the text expands. I am using dreamweaver. please help.

I have a list of board members bios and like to create a hyperlink for each. When you click the text expands. I am using dreamweaver. please help.
Alan C
Total freaking Member



Since: 04 May 2006
Posts: 473
Replied 11 Dec 2008 15:00:59
easiest way to do this is have a javascript that changes the css for a containing element. You put the text into a hidden element, then make it visible
Iqbal Khaiy
Member



Since: 10 Dec 2008
Posts: 3
Replied 11 Dec 2008 17:09:14


thank you Alan. Do you know the javascript?


easiest way to do this is have a javascript that changes the css for a containing element. You put the text into a hidden element, then make it visible
Alan C
Total freaking Member



Since: 04 May 2006
Posts: 473
Replied 12 Dec 2008 19:22:15
easiest way to get this is run a search on google with

javascript show hide div

there are different ways of doing it, there is also one that slides the div open, that one is used on lakesuk.com/geocode/index.php

give it a try and see how the div slides open after you hit the geocode button, if you like it use firefox or your favourite browser to view source and lift the code off the page, it's in a file called something like slider.js

pick the code apart and see how it works, it's a great way to learn <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
Iqbal Khaiy
Member



Since: 10 Dec 2008
Posts: 3
Replied 12 Dec 2008 19:57:47
Many thanks! I will try it.

Reply to this topic

Message
Reply
Follow us on Facebook Follow us on twitter Subscribe to the RSS feed
Activate your free membership today | Login | Currency