User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 373,930 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,258 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting

AJAX -- should not be too difficult

Join Date: Jul 2007
Posts: 12
Reputation: 3xxx is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
3xxx 3xxx is offline Offline
Newbie Poster

AJAX -- should not be too difficult

  #1  
Sep 5th, 2007
I like the sample here

http://dev.portalzine.de/index?/Hori...cordion--print

try to click show 1 , show 2, .... (grey / green)

==== but I don't know how to display different content for different show --- so please help === it should be p (for 1 2 3 and 4)
[[ just have to read the very last line of the following code ]]

$(".handle").bind("click",function() {

if($('.handle[@id*='+$(this).attr("id")+"]").attr("rel") != "selected"){
$('.handle').attr("rel","");

$('.handle').css({background:"url(images/blade.png)"});
$(this).css({background:"url(images/blade_sel.png)"});


$('div[@id*=content]').animate({className:"content"},500,"backin");

$('div[@id*=hdiv]').animate({className:"start"},500,"backin");
$('#hdiv'+$(this).attr("id")).animate({className:"end"},500, 'easein');

$('#content'+$(this).attr("id")).animate({className:"endcontent"},500,'easein');

$('.handle[@id*='+$(this).attr("id")+"]").attr("rel","selected");
}

});

// $(".content p").html("Lorem ipsum...CONTENT here.");


====

if the question is not clear, please let me know, I will put all the code download source here , thanks
AddThis Social Bookmark Button
Reply With Quote  
All times are GMT -4. The time now is 5:58 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC