1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Ajax tabs for my site

Discussion in 'HTML & Website Design' started by neeshu, May 18, 2008.

  1. #1
    I am making a site where I want to add ajax tabs inside the main content area which when clicked should show aim, definition and other external pages inside it without page being refreshed I used some scripts on dynamic drive and other sites, they were not allowing me to embed images inside tabs for some reason.

    Please help me find a code by which I can embed tabs inside the content area along with images and video inside the tabbed panes

    here is the snap of the tabs which I am using right now.

    [​IMG]

    code for tabs
    
     <div class="tabbed-pane">
    	<ol class="tabs">
    	<li><a href="#" class="active" id="pane1">Aim</a></li>
    	<li><a href="#" id="pane2">Definition</a></li>
      	<li><a href="#" id="pane3">Setting Up Tray</a></li>
    	<li><a href="#" id="pane4">Procedure</a></li>
    	</ol>
    	<div id="MyPane_container" class="tabbed-container">
    	<div id="MyPane_overlay" class="overlay" style="display: none">
    	<h3>Loading…</h3>
    	</div>
    	<div id="MyPane" class="pane"></div>
    	</div>
    	<p><script type="text/javascript">
    	new TabbedPane('MyPane', 
    		{
    			'pane1': 'pages/steamaim.html',
    			'pane2': 'pages/steamdefi.html',
    			'pane3': 'pages/steamtray.html',
    			'pane4': 'pages/steampro.html'
    		},
    		{
    			onClick: function(e) {
    				$('MyPane_overlay').show();
    			},
    			
    			onSuccess: function(e) {
    				$('MyPane_overlay').hide();
    			}
    		});
    	</script>
    	</div>
    HTML:

    Please help me My job is at stake

     
    neeshu, May 18, 2008 IP
  2. webblab

    webblab Guest

    Messages:
    394
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    webblab, May 18, 2008 IP
  3. wendong

    wendong Peon

    Messages:
    36
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thanks for sharing....
     
    wendong, May 18, 2008 IP
  4. data_lore

    data_lore Peon

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    data_lore, May 18, 2008 IP
  5. neeshu

    neeshu Well-Known Member

    Messages:
    648
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    130
    #5
    my purpose is very small thanks for framework webblab it doesnt do me any good I just want a small coding for tabs in ajax :( its damn frustrating here
     
    neeshu, May 18, 2008 IP
  6. manHa

    manHa Peon

    Messages:
    677
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thanks for the link weblab, I've added a tabbed navigation on my forums (signature).

    Thanks again! ;)
     
    manHa, May 18, 2008 IP