Jump to content

please help with tabs


contra10

Recommended Posts

i'm trying to input tabs...when i inlude php files i can only allow two fro some reason

 

<ul id="countrytabs" class="shadetabs">
<li><a href="#" rel="country1" class="selected">Find Events</a></li>
<li><a href="#" rel="country2">My Events</a></li>
<li><a href="#" rel="country3">City Events</a></li>
<li><a href="#" rel="country4">Create Events</a></li>
<li><a href="http://www.aaa.com">Tab</a></li>
</ul>

<div style="border:1px solid gray; width:450px; margin-bottom: 1em; padding: 10px">

<div id="country1" style="vertical-align:top;" class="tabcontent">
<?php

include 'findevent.php';

?>
</div>

<div id="country2" style="vertical-align:top;" class="tabcontent">
<?php

include 'mycityevents.php';

?>
</div>

<div id="country3" style="vertical-align:top;" class="tabcontent">
<?php

include 'mycityevents.php';

?>

</div>

<div id="country4" style="vertical-align:top;" class="tabcontent">
kjk
</div>

</div>

<script type="text/javascript">

var countries=new ddtabcontent("countrytabs")
countries.setpersist(true)
countries.setselectedClassTarget("link") //"link" or "linkparent"
countries.init()

</script>

 

if i place a php file in lets say div country3 or country4 nothing loads if i place a php file in div 1 and div 3 it will work or div 2 and 4...it must be a length issue

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.