dannthr
02-10-2010, 07:38 PM
Hey guys,
I'm attempting to use the Tab Content script v2.2, which I've actually used successfully before on another webpage, and which is not working for me now on a new page, which has become a very confusing circumstance.
I literally can not see why it won't work and I feel like I'm just missing some simple implementation piece of the puzzle--it's been fairly frustrating to look at one page that works, mimic the implementation and not have it work--even though I made the other page!
So I'm hoping that I can have another set of eyes point out some HORRIBLY SIMPLE AND STUPID oversight on my part.
Let me know what you guys think:
index
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1" xml:lang="en" lang="en">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<head>
<title>Dan Reynolds - Composer</title>
<link rel="stylesheet" type="text/css" href="music_blizzard.css" />
<script type="text/javascript" src="tabcontent.js">
/***********************************************
* Tab Content script v2.2- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
</script>
</head>
<body>
<div class="clearfix"></div>
<div id="macrotainer">
<div id="container">
<div id="about" class="tabcontent">
<div id="winabout"></div>
Here's some more text.
</div>
<div id="news" class="tabcontent">
<div id="winnews"></div>
Here's some text.
</div>
<div id="music" class="tabcontent">
<div id="winmusic"></div>
Text, text, text.
</div>
<div id="credit" class="tabcontent">
<div id="wincredit"></div>
Never-ending text.
</div>
<script type="text/javascript">
var countries=new ddtabcontent("countrytabs")
countries.setpersist(true)
countries.setselectedClassTarget("link") //"link" or "linkparent"
countries.init()
</script>
</div>
<div id="right_side">
<div id="title">
</div>
<div id="player">
</div>
<div id="menu">
<ul id="countrytabs" class="shadetabs">
<li><a id="aboutlink" href="#" rel="about" class="selected"></a></li>
<li><a id="contactlink" href="mailto:dan@musicianeer.com"></a></li>
<li><a id="newslink" href="#" rel="news"></a></li>
<li><a id="musiclink" href="#" rel="music"></a></li>
<li><a id="creditlink" href="#" rel="credit"></a></li>
</ul>
</div>
</div>
</div>
</body>
</html>
css:
BODY{
top:0px;
margin:0px;
padding:0px;
border:0px;
font-family:sans-serif;
color:#4F6DC7;
font-size:medium;
background-color:#FFFFFF;
}
#macrotainer{
margin-top: 0px;
margin-left: auto;
margin-right: auto;
margin-bottom: auto;
border: 0px;
width:1000px;
height:562px;
position: relative;
}
#container{
float:left;
margin-top: 0px;
margin-left: 0px;
margin-right: auto;
margin-bottom: 0px;
border:0px;
width:625px;
height:562px;
position: relative;
background: url(music_blizzard_main_win_bg.jpg) no-repeat top center;
}
#about{
margin-top: 0px;
margin-left: 0px;
margin-right: auto;
margin-bottom: 0px;
border:0px;
width:625px;
position: relative;
}
#winabout{
margin-top: 0px;
margin-left: 0px;
margin-right: auto;
margin-bottom: 0px;
border:0px;
width:625px;
height:100px;
background: url(music_blizzard_about_header.jpg) no-repeat top left;
position: relative;
}
#news{
margin-top: 0px;
margin-left: 0px;
margin-right: auto;
margin-bottom: 0px;
border:0px;
width:625px;
position: relative;
}
#winnews{
margin-top: 0px;
margin-left: 0px;
margin-right: auto;
margin-bottom: 0px;
border:0px;
width:625px;
height:100px;
background: url(music_blizzard_news_header.jpg) no-repeat top left;
position: relative;
}
#music{
margin-top: 0px;
margin-left: 0px;
margin-right: auto;
margin-bottom: 0px;
border:0px;
width:625px;
position: relative;
}
#winmusic{
margin-top: 0px;
margin-left: 0px;
margin-right: auto;
margin-bottom: 0px;
border:0px;
width:625px;
height:100px;
background: url(music_blizzard_music_header.jpg) no-repeat top left;
position: relative;
}
#credit{
margin-top: 0px;
margin-left: 0px;
margin-right: auto;
margin-bottom: 0px;
border:0px;
width:625px;
position: relative;
}
#wincredit{
margin-top: 0px;
margin-left: 0px;
margin-right: auto;
margin-bottom: 0px;
border:0px;
width:625px;
height:100px;
background: url(music_blizzard_credit_header.jpg) no-repeat top left;
position: relative;
}
#right_side{
float:right;
margin-top: 0px;
margin-left: auto;
margin-right: 0px;
margin-bottom: 0px;
border:0px;
width:375px;
height:562px;
position: relative;
background-color:#FFFFFF;
}
#title{
margin-top: 0px;
margin-left: auto;
margin-right: 0px;
margin-bottom: 0px;
border:0px;
width:375px;
height:187px;
position: relative;
background: url(music_blizzard_title_win_bg.jpg) no-repeat top center;
}
#player{
margin-top: 0px;
margin-left: auto;
margin-right: 0px;
margin-bottom: 0px;
border:0px;
width:375px;
height:275px;
position: relative;
background: url(music_blizzard_player_win_bg.jpg) no-repeat top center;
}
#menu{
margin-top: 0px;
margin-left: auto;
margin-right: 0px;
margin-bottom: 0px;
border:0px;
width:375px;
height:100px;
position: relative;
background: url(music_blizzard_menu_win_bg.jpg) no-repeat top center;
}
#menu ul{
margin-top: 0px;
margin-left: auto;
margin-right: 0px;
margin-bottom: 0px;
border:0px;
width:375px;
height:100px;
position: relative;
}
#menu ul li{display:inline;}
#aboutlink{
display:block;
top:10px;
left:45px;
width:118px;
height:28px;
position:absolute;
background-color:transparent;}
#contactlink{
top:10px;
left:165px;
display:block;
width:180px;
height:28px;
position:absolute;
background-color:transparent;}
#newslink{
display:block;
top:40px;
left:20px;
width:100px;
height:28px;
position:absolute;
background-color:transparent;}
#musiclink{
display:block;
top:40px;
left:121px;
width:112px;
height:28px;
position:absolute;
background-color:transparent;}
#creditlink{
display:block;
top:40px;
left:235px;
width:128px;
height:28px;
position:absolute;
background-color:transparent;}
.clearfix:after{
content:".";
display:block;
height:0;
clear:both;
visibility:hidden;
}
.clearfix {display: inline-table;}
/* backslash hack hides from IE mac\*/
* html .clearfix{height:1%;}
.clearfix {display:block;}
/* end backslash hack*/
I appreciate any insight you guys can give me here.
(And sorry if this is the wrong forum, while I'm using css and dhtml, I felt like this was primarily a javascript issue--maybe not!)
- Dan Reynolds
PS: Tabcontent.js on next post
I'm attempting to use the Tab Content script v2.2, which I've actually used successfully before on another webpage, and which is not working for me now on a new page, which has become a very confusing circumstance.
I literally can not see why it won't work and I feel like I'm just missing some simple implementation piece of the puzzle--it's been fairly frustrating to look at one page that works, mimic the implementation and not have it work--even though I made the other page!
So I'm hoping that I can have another set of eyes point out some HORRIBLY SIMPLE AND STUPID oversight on my part.
Let me know what you guys think:
index
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1" xml:lang="en" lang="en">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<head>
<title>Dan Reynolds - Composer</title>
<link rel="stylesheet" type="text/css" href="music_blizzard.css" />
<script type="text/javascript" src="tabcontent.js">
/***********************************************
* Tab Content script v2.2- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
</script>
</head>
<body>
<div class="clearfix"></div>
<div id="macrotainer">
<div id="container">
<div id="about" class="tabcontent">
<div id="winabout"></div>
Here's some more text.
</div>
<div id="news" class="tabcontent">
<div id="winnews"></div>
Here's some text.
</div>
<div id="music" class="tabcontent">
<div id="winmusic"></div>
Text, text, text.
</div>
<div id="credit" class="tabcontent">
<div id="wincredit"></div>
Never-ending text.
</div>
<script type="text/javascript">
var countries=new ddtabcontent("countrytabs")
countries.setpersist(true)
countries.setselectedClassTarget("link") //"link" or "linkparent"
countries.init()
</script>
</div>
<div id="right_side">
<div id="title">
</div>
<div id="player">
</div>
<div id="menu">
<ul id="countrytabs" class="shadetabs">
<li><a id="aboutlink" href="#" rel="about" class="selected"></a></li>
<li><a id="contactlink" href="mailto:dan@musicianeer.com"></a></li>
<li><a id="newslink" href="#" rel="news"></a></li>
<li><a id="musiclink" href="#" rel="music"></a></li>
<li><a id="creditlink" href="#" rel="credit"></a></li>
</ul>
</div>
</div>
</div>
</body>
</html>
css:
BODY{
top:0px;
margin:0px;
padding:0px;
border:0px;
font-family:sans-serif;
color:#4F6DC7;
font-size:medium;
background-color:#FFFFFF;
}
#macrotainer{
margin-top: 0px;
margin-left: auto;
margin-right: auto;
margin-bottom: auto;
border: 0px;
width:1000px;
height:562px;
position: relative;
}
#container{
float:left;
margin-top: 0px;
margin-left: 0px;
margin-right: auto;
margin-bottom: 0px;
border:0px;
width:625px;
height:562px;
position: relative;
background: url(music_blizzard_main_win_bg.jpg) no-repeat top center;
}
#about{
margin-top: 0px;
margin-left: 0px;
margin-right: auto;
margin-bottom: 0px;
border:0px;
width:625px;
position: relative;
}
#winabout{
margin-top: 0px;
margin-left: 0px;
margin-right: auto;
margin-bottom: 0px;
border:0px;
width:625px;
height:100px;
background: url(music_blizzard_about_header.jpg) no-repeat top left;
position: relative;
}
#news{
margin-top: 0px;
margin-left: 0px;
margin-right: auto;
margin-bottom: 0px;
border:0px;
width:625px;
position: relative;
}
#winnews{
margin-top: 0px;
margin-left: 0px;
margin-right: auto;
margin-bottom: 0px;
border:0px;
width:625px;
height:100px;
background: url(music_blizzard_news_header.jpg) no-repeat top left;
position: relative;
}
#music{
margin-top: 0px;
margin-left: 0px;
margin-right: auto;
margin-bottom: 0px;
border:0px;
width:625px;
position: relative;
}
#winmusic{
margin-top: 0px;
margin-left: 0px;
margin-right: auto;
margin-bottom: 0px;
border:0px;
width:625px;
height:100px;
background: url(music_blizzard_music_header.jpg) no-repeat top left;
position: relative;
}
#credit{
margin-top: 0px;
margin-left: 0px;
margin-right: auto;
margin-bottom: 0px;
border:0px;
width:625px;
position: relative;
}
#wincredit{
margin-top: 0px;
margin-left: 0px;
margin-right: auto;
margin-bottom: 0px;
border:0px;
width:625px;
height:100px;
background: url(music_blizzard_credit_header.jpg) no-repeat top left;
position: relative;
}
#right_side{
float:right;
margin-top: 0px;
margin-left: auto;
margin-right: 0px;
margin-bottom: 0px;
border:0px;
width:375px;
height:562px;
position: relative;
background-color:#FFFFFF;
}
#title{
margin-top: 0px;
margin-left: auto;
margin-right: 0px;
margin-bottom: 0px;
border:0px;
width:375px;
height:187px;
position: relative;
background: url(music_blizzard_title_win_bg.jpg) no-repeat top center;
}
#player{
margin-top: 0px;
margin-left: auto;
margin-right: 0px;
margin-bottom: 0px;
border:0px;
width:375px;
height:275px;
position: relative;
background: url(music_blizzard_player_win_bg.jpg) no-repeat top center;
}
#menu{
margin-top: 0px;
margin-left: auto;
margin-right: 0px;
margin-bottom: 0px;
border:0px;
width:375px;
height:100px;
position: relative;
background: url(music_blizzard_menu_win_bg.jpg) no-repeat top center;
}
#menu ul{
margin-top: 0px;
margin-left: auto;
margin-right: 0px;
margin-bottom: 0px;
border:0px;
width:375px;
height:100px;
position: relative;
}
#menu ul li{display:inline;}
#aboutlink{
display:block;
top:10px;
left:45px;
width:118px;
height:28px;
position:absolute;
background-color:transparent;}
#contactlink{
top:10px;
left:165px;
display:block;
width:180px;
height:28px;
position:absolute;
background-color:transparent;}
#newslink{
display:block;
top:40px;
left:20px;
width:100px;
height:28px;
position:absolute;
background-color:transparent;}
#musiclink{
display:block;
top:40px;
left:121px;
width:112px;
height:28px;
position:absolute;
background-color:transparent;}
#creditlink{
display:block;
top:40px;
left:235px;
width:128px;
height:28px;
position:absolute;
background-color:transparent;}
.clearfix:after{
content:".";
display:block;
height:0;
clear:both;
visibility:hidden;
}
.clearfix {display: inline-table;}
/* backslash hack hides from IE mac\*/
* html .clearfix{height:1%;}
.clearfix {display:block;}
/* end backslash hack*/
I appreciate any insight you guys can give me here.
(And sorry if this is the wrong forum, while I'm using css and dhtml, I felt like this was primarily a javascript issue--maybe not!)
- Dan Reynolds
PS: Tabcontent.js on next post