Click here to Skip to main content
15,887,175 members
Home / Discussions / Web Development
   

Web Development

 
NewsWeb Developer Saeed Malekpour scheduled for execution Pin
supernerf23-Jan-12 15:54
supernerf23-Jan-12 15:54 
AnswerRe: Web Developer Saeed Malekpour scheduled for execution Pin
thatraja4-Feb-12 17:16
professionalthatraja4-Feb-12 17:16 
QuestionI want a quick and simple E-commerce web site using a CMS. Pin
Brady Kelly22-Jan-12 16:35
Brady Kelly22-Jan-12 16:35 
AnswerRe: I want a quick and simple E-commerce web site using a CMS. Pin
Peter_in_278022-Jan-12 16:55
professionalPeter_in_278022-Jan-12 16:55 
AnswerRe: I want a quick and simple E-commerce web site using a CMS. Pin
herennow522-Jan-12 17:58
herennow522-Jan-12 17:58 
AnswerRe: I want a quick and simple E-commerce web site using a CMS. Pin
thatraja22-Jan-12 20:00
professionalthatraja22-Jan-12 20:00 
AnswerDotNetNuke Pin
David Mujica23-Jan-12 3:22
David Mujica23-Jan-12 3:22 
Questionneed help to add one class name Pin
jaanmaan20-Jan-12 4:42
jaanmaan20-Jan-12 4:42 
Hi, I have the following script, which is working fine. This is for more-less content. For more content, this is good, but when i click again, text becomes less again, but i want to add one class name for the less button.

This is from where i get the script.
http://shakenandstirredweb.com/playground/jquery-more-less-text/[^]
i just want to add different arrows for more and less. but there is always one class name. Can anyone help me in this to add a class name in the script. Thanks

<script type="text/javascript">

$(function(){

// The height of the content block when it's not expanded
var adjustheight = 170;
// The "more" link text
var moreText = "+ More";
// The "less" link text
var lessText = "- Less";

// Sets the .more-block div to the specified height and hides any content that overflows
$(".more-less .more-block").css('height', adjustheight).css('overflow', 'hidden');

// The section added to the bottom of the "more-less" div
$(".more-less").append('

[…]

');

$("a.adjust").text(moreText);

$(".adjust").toggle(function() {
$(this).parents("div:first").find(".more-block").css('height', 'auto').css('overflow', 'visible');
// Hide the [...] when expanded
$(this).parents("div:first").find("p.continued").css('display', 'none');
$(this).text(lessText);
}, function() {
$(this).parents("div:first").find(".more-block").css('height', adjustheight).css('overflow', 'hidden');
$(this).parents("div:first").find("p.continued").css('display', 'block');
$(this).text(moreText);
});
});

</script>
AnswerRe: need help to add one class name Pin
R. Giskard Reventlov20-Jan-12 5:06
R. Giskard Reventlov20-Jan-12 5:06 
QuestionInputs needed for a naive web developer to develope a website. Pin
Vijay Rajanna20-Jan-12 4:32
Vijay Rajanna20-Jan-12 4:32 
AnswerDon't reinvent the wheel Pin
David Mujica20-Jan-12 4:51
David Mujica20-Jan-12 4:51 
GeneralRe: Don't reinvent the wheel Pin
Vijay Rajanna20-Jan-12 5:24
Vijay Rajanna20-Jan-12 5:24 
AnswerRe: Inputs needed for a naive web developer to develope a website. Pin
R. Giskard Reventlov20-Jan-12 5:10
R. Giskard Reventlov20-Jan-12 5:10 
GeneralRe: Inputs needed for a naive web developer to develope a website. Pin
Vijay Rajanna20-Jan-12 5:25
Vijay Rajanna20-Jan-12 5:25 
AnswerRe: Inputs needed for a naive web developer to develope a website. Pin
cjoki30-Jan-12 9:35
cjoki30-Jan-12 9:35 
Questionmy Webservice dont work, what can be the problem ? Pin
goldsoft18-Jan-12 20:19
goldsoft18-Jan-12 20:19 
AnswerRe: my Webservice dont work, what can be the problem ? Pin
Gerben Jongerius19-Jan-12 0:00
Gerben Jongerius19-Jan-12 0:00 
QuestionIs it Possible to Bind .Net web Service Result to Flex XmlList object? Pin
jeanlustria18-Jan-12 4:58
jeanlustria18-Jan-12 4:58 
QuestionHow to match the height of my sidebar to my content area? Pin
flashery16-Jan-12 17:56
flashery16-Jan-12 17:56 
AnswerRe: How to match the height of my sidebar to my content area? Pin
Peter_in_278016-Jan-12 19:36
professionalPeter_in_278016-Jan-12 19:36 
GeneralRe: How to match the height of my sidebar to my content area? Pin
flashery17-Jan-12 1:13
flashery17-Jan-12 1:13 
AnswerRe: How to match the height of my sidebar to my content area? Pin
aakash_9-Feb-12 19:03
aakash_9-Feb-12 19:03 
QuestionA Question about Inline CSS Pin
BobInNJ13-Jan-12 5:41
BobInNJ13-Jan-12 5:41 
AnswerRe: A Question about Inline CSS Pin
Peter_in_278013-Jan-12 10:03
professionalPeter_in_278013-Jan-12 10:03 
AnswerRe: A Question about Inline CSS Pin
Satheesh154615-Jan-12 21:14
Satheesh154615-Jan-12 21:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.