Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Closed Thread
Old 10-31-2009, 03:01 PM Expanding text
Novice Talker

Posts: 8
Name: Rosilea Falgout
Trades: 0
Hello,

I would like to display testimonials on a web site. I have quite a few and would like to initially display part of the testimonial and give the user the option to click on the last word of the visible text and then the complete testimonial would appear. Also, when the user clicks off can the testimonial return to the partial text?

Thank you,

Rose
rosef is offline
View Public Profile
 
 
Register now for full access!
Old 10-31-2009, 03:45 PM Re: Expanding text
Banned

Posts: 315
Name: Doug
Trades: 1
Actually I can think of three ways to do this kind of affect.

1. Using a Javascript that would allow an expanded box ONCLICK or on
MOUSEOVER.

2. Using a "tab" that ONCLICK would expand to show the full comment.

3. Make the testimonials page a blog page and let users write their own
comments.

Testimonials are not considered a crucial element in most cases.
People pretty much always consider them to be faked.
marketingman100 is offline
View Public Profile
 
Old 10-31-2009, 11:49 PM Re: Expanding text
JAUB's Avatar
Novice Talker

Posts: 11
Location: Oregon
Trades: 0
here's an idea:

Credits: (very cool)

2) http://www.javascriptkit.com/script/...itscreen.shtml

-jaub

update: i also come across this while browsing the forum last night:

http://www.webmaster-talk.com/html-f...tml#post937737


Last edited by JAUB; 11-01-2009 at 12:20 PM.. Reason: came across additional relative info
JAUB is offline
View Public Profile Visit JAUB's homepage!
 
Old 11-01-2009, 01:53 AM Re: Expanding text
infotech rules's Avatar
Super Talker

Posts: 129
Name: Sidney shieldon
Trades: 0
The link provided to you by "Jaub" is the thing that you need for doing such a change. It is not difficult to do. If you are looking for an advice whether to show testimonials or not you can post them. They are harmless in return a few of the customers will trust them true.
__________________
Article Directory I Prefer
Please login or register to view this content. Registration is FREE



Please login or register to view this content. Registration is FREE
infotech rules is offline
View Public Profile
 
Old 11-01-2009, 05:24 AM Re: Expanding text
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,515
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Here's another couple of ways you could use.

disclaimer: Self promo links
http://www.modtalk.co.uk/_site/code/...oll-over-tabs/

http://www.modtalk.co.uk/article/c-a...gn/dhtml-tabs/
demo: http://www.modtalk.co.uk/_site/code/...ple-tab-boxes/
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
View Public Profile Visit chrishirst's homepage!
 
Old 11-02-2009, 07:32 PM Re: Expanding text
Junior Talker

Posts: 2
Trades: 0
Rosef -

The basic idea behind this concept is changing the display property of an element to none. Here is an example.

Code:
function pop_visibility(){
   var hide = "Hide";
   var show = "Show";
   var txt = document.getElementById('ipop').innerHTML;
   if(txt==hide){
    document.getElementById('controllerlink').innerHTML = "Show";
    document.getElementById('ipop').style.display = "none";
   }
   if(txt==show){
    document.getElementById('controllerlink').innerHTML = "Hide";
    document.getElementById('ipop').style.display = "block";
   }
}
Call it with....

Code:
<a onClick="pop_visibility()"id="controllerlink">Hide</a>
<div id="ipop>
     These contents will dissapear and reappear.
     And hide will switch to show accordingly.
</div>
thestranger is offline
View Public Profile
 
Closed Thread     « Reply to Expanding text
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.17086 seconds with 12 queries