Affiliate Marketing
Forum Search

Reply
 
LinkBack Thread Tools Display Modes

  #1 (permalink)  
Old 20-10-07
max99's Avatar
Affiliate Student Guy
 
Join Date: Jan 2006
Location: Manchester UK
Posts: 1,113
Thanks: 4
Thanked 4 Times in 4 Posts
max99 is an unknown quantity at this point
  Question Simple Expand/Contract Help :)

Im looking for a simple expand/contract script like used on Keiths Internet Marketing Blogs UK site, but I dont want it using feeds I want it just with extra info in it. Like that used on youtube in video description, where you can click "more info" or another word/button and the box expands and shows more info and then can be contracted.

If anyone could help would really appreciate it been trying/googling and messing around with 1 script i found for ages but with no success
__________________
OnlineCick.co.uk! - Young&Fresh Take On AM |Ebook Reader|Offset Co2 |Msn: My Username @ hotmail.co.uk
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 21-10-07
seekituk's Avatar
Registered User
 
Join Date: Jan 2006
Location: Sudbury UK
Posts: 260
Thanks: 0
Thanked 0 Times in 0 Posts
seekituk is an unknown quantity at this point
  Re: Simple Expand/Contract Help :)

Hi,

There is a tutorial in the latest .net mag (issue 169) using css.

Cheers

Jason
__________________
ClickOn Web Design
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 21-10-07
Registered User
 
Join Date: Jun 2006
Posts: 178
Thanks: 0
Thanked 1 Time in 1 Post
jonsp is an unknown quantity at this point
  Re: Simple Expand/Contract Help :)

Quote:
Originally Posted by max99 View Post
Im looking for a simple expand/contract script like used on Keiths Internet Marketing Blogs UK site, but I dont want it using feeds I want it just with extra info in it. Like that used on youtube in video description, where you can click "more info" or another word/button and the box expands and shows more info and then can be contracted.

If anyone could help would really appreciate it been trying/googling and messing around with 1 script i found for ages but with no success
The very simplest way would be
Code:
<script type="text/javascript">
function showIt(){
if(!document.getElementById)return;
document.getElementById('stuff').style.display=(document.getElementById('stuff').style.display=='none')?'':'none';
}
</script>
<a href="javascript:;" onclick="showIt(); return false;">Show Info</a>
<div id="stuff" style="display:none;">
<p>some stuff here....</p>
</div>
You might want to enhance this
1/ For accessibility. Anyone with js off would never be able to read the text. A better way would be to have the text visible then hide it with js onload.
2/ To look better. You could either change the link text from Show Info to Hide Info when the link is clicked and/or use 2 background images, say little arrows on the link and toggle them onclick.

Hopefully this will get you started

Cheers,
Jon
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
WANTED - Simple Feedback / Comments Script purple Widgets, Coding, AJAX, PHP - Technology & Affiliate Marketing 1 04-01-07 04:32 PM
Norwich Union Launch Simple Cover & Life Insurance with OMG OMG Network OMGUK.com, Online Media Group 0 17-10-06 04:42 PM
Simple Site launches eleni DGM Affiliates 1 23-08-06 11:18 AM
really simple newlsetter programme needed. Elaine Website Promotion 8 29-07-05 01:51 AM


Affiliate Marketing RSS Feeds - Contact Us - Affiliate Marketing - Archive - Privacy Statement - Top

Content Relevant URLs by vBSEO 3.2.0 RC7