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.

Website Design Forum


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



Freelance Jobs

Reply
Old 05-15-2006, 05:57 AM collapsible script
Super Talker

Posts: 113
Trades: 0
I have done some google search and couldnt find a good script...

im basicaly after a script where users click on one line and a long text appears. then if clicked it disapears. IVe found few but thier not friendly enough so that i can add more...

can anyone point me at the right direction please

thanks in advance
checkmate is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-16-2006, 12:29 AM Re: collapsible script
mjm
Junior Talker

Posts: 4
Trades: 0
Hey checkmate,

I have seen several Javascripts that will do something similar to what you are describing. I am not sure about all the cross-browser issues today. I would suggest trying to browse through http://javascript.internet.com/ for something to your liking.

Alternatively, you could try improving on the code. What do you mean by not friendly enough? Post some code and describe what you want to do. I am a bit fuzzy with what you are asking. You could make text appear by adding a, "title," attribute to the link. That is a cross-browser safe mouseover. Additionally, it would load quickly on your pages and is user friendly imo.

Hope that helps out!
__________________
If it was given to you, would you appreciate it?

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

mjm is offline
Reply With Quote
View Public Profile
 
Old 05-16-2006, 01:21 PM Re: collapsible script
ExpressoDan's Avatar
Ultra Talker

Posts: 317
Name: This Space for Rent
Location: Georgia
Trades: 0
Here's one I found and tweaked

<edit>
If you want this script to work in reverse, just add display:none to the div id toggle and change only the text of the link to "show"

Quote:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<script language="javascript" type="text/javascript">
<!--
function showHide(obj,id){
var s=document.getElementById(id).style;
if (s.display=='none'){
obj.firstChild.data='Hide';
s.display='block'
}
else {
obj.firstChild.data='Show';
s.display='none'
}
}
//-->
</script>

</head>
<body>
<div style="width:400px; color:#666666; text-align:left; border:1px dotted #666666; font-weight:bold; padding:2px">
<a href="javascript:;" onclick="showHide(this,'toggle')">Hide</a>
</div>

<div id="toggle" style="width:400px; color:#666666; text-align:left; border:1px dotted #666666; padding:2px" >

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Fusce ac elit at neque interdum tempor. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nulla nulla erat, interdum accumsan, molestie vitae, eleifend non, mi. Sed posuere tortor. Quisque fermentum tincidunt odio. Praesent ultrices diam vitae libero. Quisque at risus eu sem blandit tincidunt. Morbi eleifend elit vel metus. Praesent aliquet libero nec velit. Maecenas augue est, sollicitudin ac, vehicula eu, egestas quis, purus. Nullam eleifend ante in felis.
</div>

</body>
</html>
__________________

Please login or register to view this content. Registration is FREE

"I think therefore I am, I think." <!-- George Carlin

Last edited by ExpressoDan; 05-16-2006 at 01:47 PM..
ExpressoDan is offline
Reply With Quote
View Public Profile Visit ExpressoDan's homepage!
 
Reply     « Reply to collapsible script
 

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.15037 seconds with 12 queries