Solved

tabs with text rather than links

Posted on 2009-04-02
3
242 Views
Last Modified: 2012-05-06
instead of using links for each tab... how could I make each tab use <div id="countrydivcontainer" style="border:1px solid gray; width:800px; margin-bottom: 1em; padding: 10px">
<?php echo $getuserprofile['about_me']?></div>

as I need to use the url to get the profile name and can't do this with using links
<div align="center" class="style5">
            <p class="style9"><u>Welcome to Admins profile</u></p>
            <p class="style9">&nbsp;</p>
          </div>
            <ul id="countrytabs" class="shadetabs">
<li><a href="#" rel="#default" class="selected">About me</a></li>
<li><a href="include/profiletab/showgoals.php" rel="countrycontainer">Goals</a></li>
<li><a href="include/profiletab/external3.htm" rel="countrycontainer">Idols</a></li>
<li><a href="include/profiletab/external4.htm" rel="#iframe">Thanks to</a> </li>
</ul>
 
<div id="countrydivcontainer" style="border:1px solid gray; width:800px; margin-bottom: 1em; padding: 10px">
<?php echo $getuserprofile['about_me']?></div>
<script type="text/javascript">
 
var countries=new ddajaxtabs("countrytabs", "countrydivcontainer")
countries.setpersist(true)
countries.setselectedClassTarget("link") //"link" or "linkparent"
countries.init()
 
</script>

Open in new window

0
Comment
Question by:runnerjp
3 Comments
 
LVL 18

Accepted Solution

by:
Pawel Witkowski earned 500 total points
ID: 24086941
well it depend on your javascript structure - if you cant change <a href> element to something else then... well - then add styles so it will display same way as DIV:

css:

.links a
{
display: block;
border: 1px solid gray;
width: 800px;
margin-bottom:1em;
padding:10px;
}

html:

<ul id="countrytabs" class="shadetabs links">
<li><a href="#" rel="#default" class="selected">About me</a></li>
<li><a href="include/profiletab/showgoals.php" rel="countrycontainer">Goals</a></li>
<li><a href="include/profiletab/external3.htm" rel="countrycontainer">Idols</a></li>
<li><a href="include/profiletab/external4.htm" rel="#iframe">Thanks to</a> </li>
</ul>
0
 
LVL 16

Expert Comment

by:CWS (haripriya)
ID: 37169579
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
key press alert 2 32
Hide Table in merge 3 32
AJAX Wordpress Not Reading Variable 2 28
Responsive Font Size 6 29
The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question